Well, I'm trying to code the UT of Terry Bogard for SeanAltly's Capcom vs The World, but I get this problem:
The opponent doesn't want to go to the custom hit state, no matter what. The opponent takes damage, but that's it.
By the way, here is the code:
;-------------------------
;Heat Blow (from Wild Ambition)
[StateDef 990]
type = S
movetype= A
physics = S
velset = 0,0
ctrl = 0
anim = 990
poweradd = 0
sprpriority = 2
;[State 0, VarAdd]
;type = VarAdd
;trigger1 = time = 0
;v = 37
;value = -4
[State 0, Explod]
type = Explod
trigger1 = animelem = 6
anim = 999
ID = 60
pos = -27,27;-35,0
postype = p1 ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
supermove
pausemove
scale = 0.5,0.5
sprpriority = 3
ontop = 0
shadow = 0,0,0
ownpal = 0
removeongethit = 0
;ignorehitpause =
;persistent =
;Generated by Fighter Factory PalFX Editor
[State 0, PalFXWiz]
type = PalFX
trigger1 = time = 13 || time = 18 || time = 23 || time = 28
time = 2
add = 250,0,0
mul = 256,256,256
;sinadd = 250,0,0
invertall = 0
color = 256
;ignorehitpause = 0
;persistent = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 2
value = S0,2
volume = 255
channel = -1
;lowpriority = -1
freqmul = 1.0
loop = 0
pan = 0
;abspan =
;ignorehitpause =
;persistent =
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 6
value = S9,5
volume = 255
channel = -1
;lowpriority = -1
freqmul = 1.0
loop = 0
pan = 0
;abspan =
;ignorehitpause =
;persistent =
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 6
value = S45,2
volume = 255
channel = -1
;lowpriority = -1
freqmul = 1.0
loop = 0
pan = 0
;abspan =
;ignorehitpause =
;persistent =
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 3
value = S63,3
volume = 255
channel = 0
;lowpriority = -1
freqmul = 1.0
loop = 0
pan = 0
;abspan =
;ignorehitpause =
;persistent =
[State 0, EnvShake]
type = EnvShake
trigger1 = animelem = 13
time = 15
freq = 80
ampl = 3
phase = 90
;ignorehitpause =
;persistent =
[State 0, CtrlSet]
type = CtrlSet
trigger1 = animelem = 15
trigger1 = movehit
value = 1
;ignorehitpause =
;persistent =
[State 440, 1]
type = HitDef
trigger1 = AnimElem = 12
trigger2 = AnimElem = 13
attr = S, NA
damage = 91
animtype = heavy
guardflag =
hitflag = MAF
priority = 3, Hit
pausetime = 10, 10
sparkno = 2
sparkxy = -10, -16
hitsound = s5, 3
guardsound = s6, 0
ground.type = trip
ground.slidetime = 5
ground.hittime = 18
ground.velocity = -3,-3
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -4.4,-3
air.hittime = 18
p2stateno = 991
[State 990, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
;Heat Blow Hit State
[StateDef 991]
type = S
movetype= H
physics = S
velset = 0,0
ctrl = 0
anim = 991
poweradd = 0
sprpriority = 2
[State 990, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 5300
ctrl = 1
;---------------------
;Dizzy State
[Statedef 5300]
type = S
movetype = I
physics = S
velset = 0, 0
anim = 5300
[State 5300, Timer]
type = varadd
trigger1 = time
sysfvar(4) = -1
[State 5300, Timer]
type = varadd
trigger1 = sysfvar(4) > 0
trigger1 = command = "up" || command = "down" || command = "back" || command = "fwd"
sysfvar(4) = -2
[State 5300, Timer]
type = varadd
trigger1 = sysfvar(4) > 0
trigger1 = command = "x" || command = "y" || command = "z" || command = "a" || command = "b" || command = "c"
sysfvar(4) = -1
[State 5300, Skip]
type = varset
trigger1 = !time
sysfvar(3) = 0
[State 5300, Skip]
type = varadd
trigger1 = command = "up" || command = "down" || command = "back" || command = "fwd"
trigger2 = command = "a" || command = "b" || command = "c" || command = "x" || command = "y" || command = "z"
sysfvar(3) = 1
[State 5300, Skip]
type = changeanim
trigger1 = animelemtime(animelemno(0)) > 0 && animelemtime(animelemno(0) + 1) < 0
trigger1 = animelemtime(animelemno(0) + 1) >= -sysfvar(3)
value = 5300
elem = animelemno(0) + 1
[State 5300, Skip]
type = varset
trigger1 = animelemtime(1) >= 0 && !animelemtime(animelemno(0))
sysfvar(3) = 0
[State 5300, End]
type = varset
trigger1 = sysfvar(4) < 0
sysfvar(4) = 0
[State 5300, End]
type = selfstate
trigger1 = sysfvar(4) <= 0 || time >= 300 || roundstate != 2
value = 0
ctrl = 1
Please help me there. Thanks in advance!