News:

MFG's Character of the Month: September 2026 Voting

Main Menu

Triggering a Helper's Explod

Started by The Lord of the Flies, November 23, 2007, 04:27:10 AM

Previous topic - Next topic

The Lord of the Flies

So I got up my lazy ass and started optimizing my characters' codes here and there. Everything coming just fine. But I got this little problem.

I can't get the var(6) trigger to actually work:
[State 8002, Explod3] ;aro
type = Explod
triggerall = Parent,var(6)>1 || Parent,var(11)>1
trigger1 = Time = 31
anim = 6320
ID = 3002
pos = 0,0
postype = p1
removetime = -1
supermovetime = 100
pausemovetime = 100
scale = .33,.33
sprpriority = 10
ownpal = 0
removeongethit = 0
As you can see, this is inside a Helper's StateDef. Note that the var(11) part works perfectly.

Here's the VarSet of var(6).
[State 3100, VarSet]
type = VarSet
trigger1 = !Time && var(58)<1
v = 6
value = IfElse(Command="Gigantic Pressure1",1,IfElse(command = "Gigantic Pressure2",2,3))

[State 3100, AIVarSet]
type = VarSet
trigger1 = !Time && var(58)=1
v = 6
value = IfElse(Random>=666,1,2)

Any suggestions? If you need more information, please do ask.

Sig made by TempesT :)

Cyanide

Looking at that, it should only trigger when var(6) is 2 or 3, it's not going to trigger when it's 1.

Double check that's what you want and test all the commands.


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.

The Lord of the Flies

#2
Yes, that's what I want.

What this helper does, is the Hyper FX of my character. It has three explods. This one, in particular, is supposed to trigger in lvl2 and lvl3 hypers, hence the ">1".

Commands seem ok. In fact, they're the ones that determine the variable's value (as seen on the coding). Can't figure out what's wrong for now ???.

Edit #1: I've found a solution, though it uses another variable  :S., works for now. However, I'm still very interested to know what was wrong with the original problem.
Edit #2: The above statement is false, don't pay attention to it. Therefore, I still have this problem :P.

Sig made by TempesT :)