|
Post by breakdancebob on Jul 23, 2007 14:01:09 GMT -5
I am new to these boards but I have had the game for a while now and I still haven't figured out how to use flags. Could someone tell me how to use them or just tell me a good guide that will help me. I know what they are and what they do I just don't know how to use them in scripts. I am seriously going to go insane if I don't figure it out soon. (hehe fun smily)
|
|
|
Post by Rodak on Jul 23, 2007 15:21:27 GMT -5
Check the "Doors" tutorial in my VFX Guide (link in my signature).
It uses flags and multiple page events!
Plus more...
The guide tries to include scripting the effects as well as making them.
Good Luck with it.
Let us know if that is not enough!
Peace.
|
|
|
Post by breakdancebob on Jul 24, 2007 13:24:56 GMT -5
Thanks that gave me all the information I needed right now. I never knew that you could open more than one page in events.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jul 28, 2007 22:13:47 GMT -5
Flags/Variables 101, or rather Flags 101.
Think of a Flag as a light switch - it is either On or Off... it can hold one value out of two possible values (On or Off out of On and Off). A Variable is like a Flag, but holds a number value instead... and can hold one value out of thousands of values. In this way a Flag is like a Variable that can only hold two values, 1 or 0 (On or Off).
If you stop and think for a second, you'll realize that you should be able to have the Event run once, turn on a Flag, then make it so that the Event never runs again because that Flag is On now (as opposed to before that Event ran). This can be done in a few ways such as different Event Pages or Script Branch: Condition script commands. Data: Flag will allow you to turn the Flag On or Off.
Note: All Flags start Off, All Flags and Variables can be renamed under Game Settings, and you can change the starting value of Flags or Variables under General Settings.
|
|