Troubles with scripting!

Started by allison, September 12, 2014, 01:13:08 AM

Previous topic - Next topic

allison

Getting this error with keycard scripts in my level. When redcheck_tokens tries to load redyes_tokens, nothing happens.

Code (redcheck_tokens) Select
say(2)
[SCANNER]
Scanning for [RED] keycard...
delay(30)
ifflag(1,redyes_tokens)
say(2)
[ERROR]
[RED] keycard not found!


Code (redyes_tokens) Select
say(2)
[KEYCARD]
[RED] keycard found!
iftrinkets(0,keydestroy_warptokens)


Code (keydestroy_warptokens) Select
say(2)
[COMMAND]
What is your command?
reply
Destroy warp tokens!
say(2)
[COMMAND]
Command received!
say(2)
[ACTION]
Removing warp tokens...
delay(15)
flash
destroy(warptokens)


Anyone know what causes this/how to fix it?

moth ✨

when you tested this, flag 1 was on, right? Even if it was, try again.  ;)

allison

#2
Yes, it was on, and redyes_tokens still doesn't seem to work. (I tested it with flag 1 off as well, but it showed "[RED] keycard not found!" like it should.) Maybe I'm accidentally triggering the internal scripting exploit? It seems like it would spit out garbage in that case though, and sticking a delay at the beginning of redyes_tokens doesn't fix the problem.

Dav999

You need to add another blank line at the end of redyes_tokens, because you're actually triggering the internal scripting exploit.

allison

Quote from: Dav999 on September 12, 2014, 06:29:01 AM
You need to add another blank line at the end of redyes_tokens, because you're actually triggering the internal scripting exploit.
That fixed it! Thanks!

Lollipop

So will the demo for 000001 come out?