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.

Global Variables

Page: 1 of 1
 TimBob12
11-04-2010, 1:49 PM
#1
Hi there can someone please tell me how to create a conditional script that uses a global variable and also how to just get what is in the global variable so that i can use it in other scripts. Thanks

TimBob12
 harIII
11-04-2010, 2:00 PM
#2
Global variable are an easy thing the figure out. First of all global variables are divided into two categories, Booleans and Numbers.

Booleans - A statement which has to equal True or False (by default all Booleans are False)
Numbers - A statement which has to equal a number (by default I think they are 0)

I can't pull up the scripts for you but they are pretty easy to find since they are the most common type of scripts you'll find. I haven't played around with Numbers that much but I'm sure it's the same concept. To work with Booleans you need to think in terms of perform this action whenever this condition equals true.

Hope this helps.
 TimBob12
11-04-2010, 3:01 PM
#3
Would this be the same for scripts that determine whether dialog nodes will be displayed.
 harIII
11-04-2010, 5:13 PM
#4
it all really depends on how you define how you change dialog nodes, but yes this is one method
 TimBob12
11-05-2010, 1:02 PM
#5
Hey thanks,

have worked it out thanks to that. I needed it for this:

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

If your interested.
Page: 1 of 1