; _____________________________________
;| Shin Gouki by Phantom.of.the.Server |
; ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
;================================================================================================
;=====================================<EX SPECIAL STATES>========================================
;================================================================================================

;========================<SHINKUU TATSUMAKI>=============================
[Statedef 1210]
type=A
physics=N
movetype=A
anim=1200
ctrl=0
velset=0,0
poweradd=-500
juggle=5

[State 1210, strengthvar]
type=varset
trigger1=!time
var(10)=4

[State 1210, width]
type=width
trigger1=anim=1210&&movehit
edge=50,35

[State 1210, snd]
type=playsnd
trigger1=anim=1200&&!animelemtime(1)
value=4,7
channel=0
[State 1210, snd]
type=playsnd
trigger1=anim=1200&&!animelemtime(1)
value=0,41
[State 1210, dust]
type=explod
trigger1=anim=1200&&!animelemtime(1)
anim=6022
ID=6022
sprpriority=3
postype=p1
pos=0,0
vel=0,0
removetime=-2
ownpal=1
scale=.75,.75

[State 1210, dust]
type=explod
trigger1=anim=1210&&!(time%2)
anim=1212
ID=1212
sprpriority=3
postype=p1
pos=0,-70
random=100,0
vel=-1,0
removetime=-2
ownpal=1

[State 1210, anim]
type=changeanim
trigger1=anim=1200&&!animtime
value=1210
[State 1210, vel]
type=velset
trigger1=anim=1200&&!animelemtime(1)
x=3
y=-3.5

[State 1210, vel]
type=velset
trigger1=anim=1210
x=0
y=.5
[State 1210, push]
type=playerpush
trigger1=anim=1210
value=0

[State 1210, vel]
type=velset
trigger1=anim=1205
x=1.5

[State 1210, spin]
type=playsnd
triggerall=anim=1210
trigger1=animelem=1||animelem=7||animelem=13
value=1,5

[State 1210, anim]
type=changeanim
trigger1=anim=1210&&!animtime&&var(0)>=3
value=1205
persistent=0
[State 1210, statetype]
type=statetypeset
trigger1=anim=1200&&animelemtime(1)>1
trigger2=anim=1205&&animelemtime(1)>1
statetype=A
physics=A
[State 1210, statetype]
type=statetypeset
trigger1=anim=1210
statetype=A
physics=N

[State 1210, var]
type=varset
trigger1=!time
var(0)=0
[State 1210, var]
type=varadd
trigger1=anim=1210&&!animtime
var(0)=1

[State 1210, hit]
type=hitdef
trigger1=anim=1200&&animelemtime(2)=-1
trigger1=var(11):=5&&var(12):=-10&&var(13):=-62
attr=S,SA                   
damage=27,5    
animtype=Hard        
guardflag=MA
hitflag=MAF           
priority=5,Hit             
pausetime=5,0
hitsound=s2,6     
guardsound=s2,0
ground.type=High
ground.slidetime=22
ground.hittime=22
p2facing=1
ground.velocity=0,-5
air.type=Low
air.velocity=0,-5
getpower=0
envshake.time=16
envshake.freq=60
envshake.ampl=4
fall=1
sprpriority=-1

[State 1210, hit]
type=hitdef
trigger1=anim=1210&&(animelem=2||animelem=8||animelem=14)
trigger1=var(11):=5&&var(12):=-10&&var(13):=-70
attr=S,SA                   
damage=27,5    
animtype=Hard        
guardflag=MA
hitflag=MAF           
priority=5,Hit             
pausetime=5,0
hitsound=s2,6     
guardsound=s2,0
ground.type=High
ground.slidetime=22
ground.hittime=22
p2facing=1
ground.velocity=ifelse(p2dist x>30,12,11),ifelse(p2dist y<(enemy,const(size.mid.pos.y))+60,0,-3)+vel y
air.type=Low
air.velocity=ifelse(p2dist x>30,12,11),ifelse(p2dist y<(enemy,const(size.mid.pos.y))+60,0,-3)+vel y
getpower=0
envshake.time=16
envshake.freq=60
envshake.ampl=4
fall=1
sprpriority=-1
palfx.color=32
palfx.sinadd=40,20,60,8
palfx.mul=384,128,512
palfx.time=32

[State 1210, hit]
type=hitdef
trigger1=anim=1210&&(animelem=5||animelem=11)
trigger1=var(11):=5&&var(12):=-10&&var(13):=-70
attr=S,SA                   
damage=27,5    
animtype=Hard        
guardflag=MA
hitflag=MAF           
priority=5,Hit             
pausetime=5,0
hitsound=s2,6     
guardsound=s2,0
ground.type=High
ground.slidetime=22
ground.hittime=22
p2facing=-1
ground.velocity=ifelse(p2dist x>30,-12,-11),ifelse(p2dist y<(enemy,const(size.mid.pos.y))+60,0,-3)+vel y
air.type=Low
air.velocity=ifelse(p2dist x>30,-12,-11),ifelse(p2dist y<(enemy,const(size.mid.pos.y))+60,0,-3)+vel y
getpower=0
envshake.time=16
envshake.freq=60
envshake.ampl=4
fall=1
sprpriority=1
palfx.color=32
palfx.sinadd=40,20,60,8
palfx.mul=384,128,512
palfx.time=32

[State 1210, hit]
type=hitdef
trigger1=anim=1210&&animelem=17
trigger1=var(11):=5&&var(12):=-10&&var(13):=-70
attr=S,SA                   
damage=27,5    
animtype=Hard        
guardflag=MA
hitflag=MAF           
priority=5,Hit             
pausetime=5,0
hitsound=s2,6     
guardsound=s2,0
ground.type=High
ground.slidetime=22
ground.hittime=22
p2facing=-1
ground.velocity=-8,1
air.type=Low
air.velocity=-8,1
getpower=0
envshake.time=16
envshake.freq=60
envshake.ampl=4
fall=1
sprpriority=1
palfx.color=32
palfx.sinadd=40,20,60,8
palfx.mul=384,128,512
palfx.time=32

[State 1210, pushhelper]
type=helper
trigger1=anim=1210&&!numhelper(1213)
helpertype=normal
stateno=1213
ID=1213
name="Vaccum"
postype=p2
pos=enemynear,const(size.ground.back)-25,-ceil(enemy,pos y)
persistent=0
size.ground.back=5
size.ground.front=5
size.height=240

[State 1210, dust]
type=explod
trigger1=anim=1210&&!(time%6)
anim=1214
ID=1214
sprpriority=-2
postype=p1
pos=0,-ceil(pos y)
scale=1,1
removetime=-2
ownpal=1

[State 1210, fire]
type=helper
trigger1=anim=1210&&(animelem=1||animelem=7||animelem=13)
helpertype=normal
stateno=1212
ID=1212
name="Tatsumaki Flames"
postype=p1
pos=23,-69
ownpal=1
[State 1210, fire]
type=helper
trigger1=anim=1210&&(animelem=2||animelem=8||animelem=14)
helpertype=normal
stateno=1212
ID=1212
name="Tatsumaki Flames"
postype=p1
pos=57,-69
ownpal=1
[State 1210, fire]
type=helper
trigger1=anim=1210&&(animelem=3||animelem=9||animelem=15)
helpertype=normal
stateno=1212
ID=1212
name="Tatsumaki Flames"
postype=p1
pos=16,-69
ownpal=1
[State 1210, fire]
type=helper
trigger1=anim=1210&&(animelem=4||animelem=10||animelem=16)
helpertype=normal
stateno=1212
ID=1212
name="Tatsumaki Flames"
postype=p1
pos=-15,-69
ownpal=1
[State 1210, fire]
type=helper
trigger1=anim=1210&&(animelem=5||animelem=11||animelem=17)
helpertype=normal
stateno=1212
ID=1212
name="Tatsumaki Flames"
postype=p1
pos=-46,-69
ownpal=1
[State 1210, flames]
type=helper
trigger1=anim=1210&&(animelem=6||animelem=14)
helpertype=normal
stateno=1212
ID=1212
name="Tatsumaki Flames"
postype=p1
pos=-11,-69
ownpal=1

[State 1210, flames]
type=helper
triggerall=anim=1210&&movehit&&numtarget&&numhelper(6041)<1
trigger1=(target,time=0)&&(target,movetype=H)
helpertype=normal
stateno=6041
ID=6041
name="flames"
postype=p2
bindtime=1000
ownpal=1
facing=-1
size.ground.front=0
size.ground.back=0
ignorehitpause=1
persistent=0