Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Need help with Booleans

Page: 1 of 1
 JebusJM
05-12-2011, 12:42 PM
#1
I just followed this tutorial on how to create journal entires:

http://www.lucasforums.com/showthread.php?t=143372)

At the very end, it says I need to keep track of the plot by booleans. Now unless I've missed one, but is there any indepth tutorial on how to tackle booleans? I've managed to create the journal entries, I just need to be able to open up new conversation options when the plot is advanced.

Thanks!
 TimBob12
05-12-2011, 1:36 PM
#2
This is what you're after.

http://www.lucasforums.com/showthread.php?t=206642)

I also noticed this a while back so wrote this :)
 JebusJM
05-12-2011, 8:49 PM
#3
Thanks for the reply, but unfortunately I'm still having a hard time trying to wrap my head around it all. I've got a few more questions:

1. Do I need to edit globalcats.2d at all?
2. In regards to #1, if I do, do I need to add my own Booleans or can I use the ones already there?
3. After I attach the script found in your tutorial, do I add the same script to the conversation I wanted it to open up, or do I use a different script?

Thanks again TimBob, your help is much appreciated.
 TimBob12
05-15-2011, 4:19 PM
#4
For questions 1 + 2: No you don't have to edit it if you are using existing ones but you have to be careful to make sure that the ones you choose are obselete. It is easier to add your own ones especially with the use of TSL Patcher.

For question 3 I am not entirely sure what you are getting at so I will explain it from scratch.

The script that begins


int StartingConditional()


Goes in the Script that determines availability box in K1 or Conditional #1 in K2 of the option that you ONLY WANT TO BE DISPLAYED WHEN THE CONDITION HAS BEEN MET.

You will need to use a script like


SetGlobalBoolean("your_boolean", TRUE);


to set the conditional therefore making the option from the above example available. What you set this to is up to you.

You can see this in the script source of my Tatooine Job Office which is all helpfully commented - http://deadlystream.com/forum/files/file/34-tatooine-job-office/)
 JebusJM
05-15-2011, 8:43 PM
#5
Thanks for the reply, you've cleared a lot up for me. Much appreciated :)
Page: 1 of 1