|
Post by breakdancebob on Jul 28, 2007 14:34:13 GMT -5
ok, i have this event where my character looks around and says some stuff, but after the event is done it repeats. i set the event to auto. what do i do? i used the start:off script at the end but when i exit and re enter my map, it does the event again. can someone tell me how to shut off an a event single handedly without another event?
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jul 28, 2007 22:07:53 GMT -5
It's 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.
|
|
|
Post by breakdancebob on Jul 29, 2007 12:39:52 GMT -5
that doesnt really help, see what i did, i put flag261 on at the end of my script, and in my event, i set start to auto, and my conditions, i put flag261 off, and the second page flag 261 on. did i do something wrong because its not turning off.
|
|
|
Post by NASH7777 on Jul 29, 2007 14:34:35 GMT -5
Auto events are bad for the most part. Try removing the event in the last line of its script or just use a custom enter map script.
|
|
|
Post by breakdancebob on Jul 29, 2007 14:45:36 GMT -5
How do you remove an event in the last line of the script?
|
|
|
Post by doyleman on Jul 29, 2007 23:42:09 GMT -5
Event -> Control -> Temporary Removal
|
|
|
Post by breakdancebob on Aug 5, 2007 16:06:49 GMT -5
that doesnt work, thats the first thing i tried, but what would i need to do in my custom enter map script to shut it off?
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 6, 2007 1:03:40 GMT -5
Script Branch: Condition: Flag "Poop" is Off (what you want to happen goes here) Data: Flag "Poop" = On (and/or here) Condition End
Note that the Condition End appears automatically upon making a Script Branch: Condition command.
|
|
|
Post by breakdancebob on Aug 6, 2007 20:59:39 GMT -5
nvm, i figured out a way to shut it off by inserting a flag on in the script and having the condition on the second page of the script of the flag i put in the script on and inputing no new script.
|
|