After I heard about the level editor, I decided to buy this game for myself
expect some levels from me soon ^^
Is there a way to check if a flag is off? It would help me make a script only activate once.
Here's how I'm doing scripts that only activate once.
At the start of the game, trigger a script which sets flag x to "on"
Put a trigger zone for the once-only script, hitting a very simple script called scriptconditional.
Set up the script itself separately.
... (all the other script stuff)
The name of "script" has to be lowercase or the jump from ifflag() won't hit it. You also have to do it this way round, as when ifflag() triggers, it puts black borders around the screen which don't disappear until a say() or a reply() - so your script needs at least one of those in, too!
But isn't it more simple to keep you from turning on flags in the beginning? Now, the following example sounds like the easiest and best way to script this to me:
I will activate something for you!
Here you go!
Sorry, you used this already.
Now it misses the redirection the first time because script 1 is off, at the end of the script it gets turned on so the next time you read it, you will see script 2. It's also easier to see script1 as main script than script2 I guess.
Also, question.. If you use Iftrinketsless(1,scriptname), shouldn't it go to 'scriptname' if you have 0 or 1 trinket(s)? Iftrinkets(2,scriptname) works if you get 2 trinkets, but Iftrinketsless doesn't seem to work for me.