YesNoOk
avatar

Forcing a superpause as soon as roundstate = 2 (Read 177 times)

Started by Ultimaetus, January 21, 2014, 07:05:04 pm
Share this topic:
Forcing a superpause as soon as roundstate = 2
#1  January 21, 2014, 07:05:04 pm
  • *
    • USA
    • derric.vinhage@gmail.com
I must be overthinking this, but I can't find any suitable triggers to make this happen without repeatedly superpausing over and over.

Code:
type = SuperPause
trigger1 = roundstate = 2
time = 300
movetime = 300
darken = 1
unhittable = 1
ignorehitpause = 1
Last Edit: January 22, 2014, 09:51:51 pm by Ultimaetus
Re: Forcing a superpause as soon as roundstate = 2
#2  January 22, 2014, 09:57:54 pm
  • ****
  • Target Acquired.
    • Ukraine
    • mugencoder.com
You'd want that code in one of the negative states like -2 or -3, firstly. Secondly, it's a common problem that can be solved by using a variable. You would dedicate some variable... let's say var(13)... to be your trigger. Initially, this var would have a value of 0, so what you can do is set it to something else in the triggers of your code. Example:

Code:
triggerall = roundstate=2 && var(13)!=-1
trigger1 = var(13):=-1

The first triggerall will activate at your desired time and then following it: your trigger1. This is a special syntax that allows you to set variables within trigger statements. When that trigger1 is activated, your var(13) will have a value of -1, causing your first triggerall to be false when it's called again, in the next tick of time.

-[Все слова это только слова.]-