Author Topic: Troubles with scripting!  (Read 2246 times)

allison

  • Captain
  • *****
  • Posts: 925
  • monolithic since 2012??
    • View Profile
    • Allison Fleischer
Troubles with scripting!
« on: September 12, 2014, 01:13:08 am »
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?

shiny

  • Captain
  • *****
  • Posts: 1559
  • Welcome to the MOTHER3 world
    • View Profile
    • my msuic
Re: Troubles with scripting!
« Reply #1 on: September 12, 2014, 01:38:30 am »
when you tested this, flag 1 was on, right? Even if it was, try again.  ;)

allison

  • Captain
  • *****
  • Posts: 925
  • monolithic since 2012??
    • View Profile
    • Allison Fleischer
Re: Troubles with scripting!
« Reply #2 on: September 12, 2014, 02:19:04 am »
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.
« Last Edit: September 12, 2014, 08:53:45 pm by crazyal02 »

Dav999

  • Global Moderator
  • Captain
  • *****
  • Posts: 2181
    • View Profile
    • The Open Level Project
Re: Troubles with scripting!
« Reply #3 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.

allison

  • Captain
  • *****
  • Posts: 925
  • monolithic since 2012??
    • View Profile
    • Allison Fleischer
Re: Troubles with scripting!
« Reply #4 on: September 12, 2014, 08:53:59 pm »
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

  • Captain
  • *****
  • Posts: 422
  • fornite funnys
    • View Profile
Re: Troubles with scripting!
« Reply #5 on: September 12, 2014, 10:29:02 pm »
So will the demo for 000001 come out?