In the said hitdef i see this:
[state ]
type=hitdef
trigger1=animelemtime(11)%2=0
trigger1=animelem=11,>=0&&animelem=66,<0
trigger2=animelem=66
attr=s,ha
hitflag=maf
guardflag=
guard.dist=0
damage=0
getpower=0
givepower=0
animtype=light
ground.type=high
air.type=low
priority=3,hit
pausetime=0,12
ground.hittime=17
guard.hittime=17
air.hittime=1
ground.slidetime=17
ground.velocity=0
air.velocity=0,0
fall=0
numhits=0
yaccel=.6
fall.recovertime=45
ground.cornerpush.veloff=0
kill=0
sparkno=-1
hitsound=-1
guard.sparkno=-1
guardsound=-1
The attack consists in 66 punches and a 67th (and final) high kick.
After the hitdef, come a few hitsparks and then, this:
[state ]
type=assertspecial
trigger1=animelem=67,<0
flag=noko
[state ]
type=targetstate
trigger1=numtarget
trigger1=movehit=1||animelemtime(11)%2=1
trigger1=animelem=11,>=0&&animelem=66,<0
value=3152
[state ]
type=targetstate
trigger1=numtarget
trigger1=animelem=66,>0
trigger1=movehit=1
value=3153
[state ]
type=targetstate
trigger1=numtarget
trigger1=animelem=67
value=3154
[state ]
type=envshake
trigger1=animelemtime(11)%4=0
trigger1=animelem=11,>=0&&animelem=66,<0
time=2
ampl=10
freq=60
phase=90
[state ]
type=envshake
trigger1=animelem=66
time=24
ampl=12
freq=75
phase=90
States 3152 and 3153 are moving p2 from p1's position onscreen.
State 3154 from that last targetstate does this:
[statedef 3154]
movetype=h
[state ]
type=changeanim
trigger1=1
value=5030
[state ]
type=nothitby
trigger1=1
value=sac
time=1
[state ]
type=velset
trigger1=time>=15
x=-7
y=-9
[state ]
type=selfstate
trigger1=time>=15
value=5050
From what i've figured, state 3154 is the one that kills p2...
Posted: June 11, 2014, 07:52:04 pm
Make 2 hitdefs, one that triggers to all characters except "X", and the other one exclusive when hitting "X" character
The specific hitdef for "X" character will contain the line p2stateno = 2600
Can you please make it a little more simpler than that?
Am i supposed to do something like:
[state ]
type=hitdef
trigger1=enemy,name!="x"
bla-bla
and right below it
[state ]
type=hitdef
trigger1=enemy,name="x"
[....]
p2stateno=2600
?