Jump to content

Home

Need help with Booleans


JebusJM

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...