ifelse problem

Started by WooshaQ, July 26, 2011, 08:38:33 PM

Previous topic - Next topic

WooshaQ

envshake.time = ifelse(roundstate=3,0,25)
envshake.ampl = ifelse(roundstate=3,0,8)
envshake.freq = ifelse(roundstate=3,0,176)


Why is it not working? The hitdef seems to be not effected by the roundstate, and I need to eliminate envshake when roundstate = 3 in on.

Алексей

The problem with that is that the values of EnvShake were established before roundstate=3. The HitDef is defined when the trigger for it is true. It will only be redefined when the trigger is true again. Check the HitDef trigger, make sure it's active with the correct values when roundstate is equal to 3.

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

Cyanide

You would need to trigger the envshake seperately. And even then, in order to turn one off the only way to do it would be to override it with a new one. So you'd have 2, one on hit, and another on roundstate = 3. And then hope cos i havent' tried this.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.