Author Topic: My Script Doesn't Work?!  (Read 615 times)

Zephyrite

  • Crewmate
  • **
  • Posts: 39
    • View Profile
My Script Doesn't Work?!
« on: October 07, 2018, 03:53:52 AM »
I'm working on my 10x10 mini level, when I ran into a problem...
A script doesn't work!
Here's the script,
maybe some of you guys on this mb could help me?
activate purple:
ifflag(70,active purple)
say(2)
Error
purple already active!


active purple:
flag(70,off)
say(2)
purple
has been activated!

the problem is that when i use the terminal with the activate purple, with flag 70 on, nothing happens, and flag 70 stays on

Balneor

  • Professor
  • ****
  • Posts: 108
    • View Profile
Re: My Script Doesn't Work?!
« Reply #1 on: October 07, 2018, 06:44:59 AM »
What do you mean exactly by "using terminal with the activate purple".

Putting the line "flag(70,off)" at the end of the script should successfully deactivate it, give it a try.

Zephyrite

  • Crewmate
  • **
  • Posts: 39
    • View Profile
Re: My Script Doesn't Work?!
« Reply #2 on: October 07, 2018, 07:09:59 AM »
did you read the script?
The terminal with the script has the script "activate purple"
i posted what is in the script activate purple.
it does include flag 70 off.
but when i activated it, not only did it not turn flag 70 off, it didn't even say the dialogue!
Oh, and yes, I tested it while flag 70 was on
« Last Edit: October 07, 2018, 07:13:14 AM by Zephyrite »

Dav999

  • Global Moderator
  • Captain
  • *****
  • Posts: 2173
    • View Profile
    • The Open Level Project
Re: My Script Doesn't Work?!
« Reply #3 on: October 07, 2018, 07:51:07 AM »
You're trying to jump to a script name with a space in it, ifflag (and others like iftrinkets) doesn't support script names with capital letters or spaces. Try renaming "active purple" to have neither.

Zephyrite

  • Crewmate
  • **
  • Posts: 39
    • View Profile
Re: My Script Doesn't Work?!
« Reply #4 on: October 07, 2018, 07:58:38 AM »
ooohh
thanks dav999!
renaming my scripts now