distractionware forums

VVVVVV => VVVVVV Help => Topic started by: Zephyrite on October 07, 2018, 10:53:52 am

Title: My Script Doesn't Work?!
Post by: Zephyrite on October 07, 2018, 10: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
Title: Re: My Script Doesn't Work?!
Post by: Balneor on October 07, 2018, 01:44:59 pm
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.
Title: Re: My Script Doesn't Work?!
Post by: Zephyrite on October 07, 2018, 02:09:59 pm
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
Title: Re: My Script Doesn't Work?!
Post by: Dav999 on October 07, 2018, 02:51:07 pm
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.
Title: Re: My Script Doesn't Work?!
Post by: Zephyrite on October 07, 2018, 02:58:38 pm
ooohh
thanks dav999!
renaming my scripts now