Var Problem...

Started by jailuis, December 28, 2009, 04:06:18 PM

Previous topic - Next topic

jailuis

So I got a lil prob...im working on lets say a Hyper Mode, where the char gains more strenght by attackmulset, the problem is that it wont work on one of my chars and I dont know why.. So here it goes, I set a var, that its supose to work as a counter, and as the counter is ON your power multiply with the attackmulset, so in one of my char is perfectly does, but in the other one, even when the counter (VAR) is 0 the power is 0 the power its still multiplied...here is the code

GOHAN *THE ONE NOT WORKING...*
-StateDef
[Statedef 0404, Hyper Mode]
type = S
movetype = A
physics = S
anim = 903
poweradd=-3000

[State 0, VarSet]
type = VarSet
trigger1 =time>1
v=20
value=500

[State 0, ChangeState]
type = ChangeState
trigger1 =time=5
value =0
ctrl = 1

-State -2
[State -2, VarSet]
type = VarSet
trigger1 = var(20)<=0
v = 20
value = 0

[State -2, VarAdd]
type = VarAdd
trigger1 = Var(20)>0
v = 20
value = -2

[State -2, AttackMulSet]
type = AttackMulSet
trigger1 = var(20)>0
time = 1
value = 10

H *THE ONE WORKING*
[statedef 4001]
type = S
movetype = A
physics = S
ctrl = 0
anim = anim
elem=1
velset = 0,0

[State 0, VarSet]
type = VarSet
trigger1 =time>1
v = 39
value = 500

[State 0, ChangeState]
type = ChangeState
trigger1 =time=5
value =0
ctrl =1


-State -2
[State -2, VarSet]
type = VarSet
trigger1 = var(39)<=0
v = 39  
value = 0

[State -2, VarAdd]
type = VarAdd
trigger1 = Var(39)>0
v = 39
value = -2

[State -2, AttackMulSet]
type = AttackMulSet
trigger1 = var(39)>0
time = 1
value = 1.5


NOTE: Gohan is Overpowered but its Testing Purposes.. xD

Rajaa Retired

You need to reset the attackmulset once it's over, it doesn't reset itself. Either modify the ocde for the existing attackmulset-sctrl, or creatr another one that activates when the mode is over. In a negative sate of course.

"[Statedef 0404, Hyper Mode]"

I don't know if, "0404," should be the name of your statedef. Try a different number without the zero in the front.




jailuis

when u mean reset u mean set to 1 or 0?? BTW the state works...I thought the same when I added it xD

Rajaa Retired

I mean, make an attackmulset bring your attack power back to normal.

jailuis

ok So that means 1 -.-...Thx...im done :D