vs AI problem

Started by BC, November 03, 2008, 05:54:41 PM

Previous topic - Next topic

BC

on one of my super moves, i have set AI, and this is seperate from the humand command when ever my power is >= 3000

when i do the move it works as normal, then after that, once near(as stated in the AI triggers) the AI keeps doing the move as long as my power is >=3000, why is this? here is my code


[state -1, AI Electric Hug]
type = changestate
value = 9050
triggerall = var(25)=1 && power>= 3000
triggerall = roundstate = 2 && statetype =S && ctrl
triggerall = p2statetype!=A && p2statetype !=L && p2movetype!=H
trigger1 = p2bodydist x <= 31 && p2bodydist y <=0 && random < 250
trigger2= (p2stateno=[120,140]) && p2bodydist x <= 31 && p2bodydist y <=0


[state -1, Electric Hug]
type = changestate
value = 9050
triggerall = var(25)!=1
triggerall = roundstate = 2
triggerall = power>=3000
triggerall = command = "Electric Hug"
triggerall = statetype !=A
triggerall = p2statetype !=A
trigger1 = (statetype = s) && ctrl


the glitch only happens when ive done the move once myself, then after that the AI takes over(keeps doing the move when near and with 3000 power)
Accepting commissions

BC

prob solved....


was using var(25) in a custom state :S lol

Accepting commissions