Scripting help

Started by XnossisX, June 24, 2018, 10:18:57 PM

Previous topic - Next topic

XnossisX

I was attempting to figure out how to make a script that you could not activate again, and I made the following three scripts:
Set Flags:
flag(1,off)

What:
ifflag(1,What1)
say(1,cyan)
What
flag(1,on)

What1:
(empty)

Unfortunately, not only did this not work, my player was suddenly stuck in place (or moving in whatever way he was if moving).
Does anyone have suggestions for what is happening here?

Ally 🌠

thats a bug with the editor
if you press esc to exit playtesting while a script is loaded, controls lock

to get around this
press alt + enter to enter full screen, which should also flip viridian
press escape to get out of playtesting
place a trinket
enter playtesting
and collect the trinket
press z twice, not the normal once
you can delete the trinetk after

also
scripts cannot have capitals in them
or spaces if you needed to know
but this should work fine

SteveGamer68

Quote from: XnossisX on June 24, 2018, 10:18:57 PM
Set Flags:
flag(1,off)

btw, if you plan on making an one-time trigger that only activates only once across the entire level, why bother making a script that set flag 1 off? Unless it's a developer script, there should be no reason why flag 1 need to be turned off. Setting flag 1 off will, basiclly reactivate the one-time trigger if you trigger it again.