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

;========================<MESSATSU GOU HADOU>=============================
[Statedef 13000]
type=S
physics=N
movetype=A
anim=13000
ctrl=0
velset=0,0

[State 13000, isP1]
type=changestate
trigger1=!time&&numpartner
trigger1=ID<partner,ID
value=13005

[State 13000, turn]
type=turn
trigger1=!time&&numpartner
trigger1=ID>partner,ID&&facing!=partner,facing

[State 13000, dashforward]
type=velset
trigger1=time=1&&numpartner
trigger1=ID>partner,ID&&((partner,pos x)-pos x+(50*facing))<0
x=3

[State 13000, dashback]
type=velset
trigger1=time=1&&numpartner
trigger1=ID>partner,ID&&((partner,pos x)-pos x+(50*facing))>=0
x=-3

;((partner,pos x)-pos x+(50*facing))/29

[State 13000, ready]
type=changestate
trigger1=((partner,pos x)-pos x+(50*facing))=[50,60]
trigger2=time=30
value=13005

[State 13000, end]
type=changestate
trigger1=!time&&numpartner!=1
trigger2=time>60
value=0
ctrl=1



;---READY---
[Statedef 13005]
type=S
physics=S
movetype=A
anim=13005
ctrl=0
velset=0,0

[State 13005, end]
type=changestate
trigger1=numpartner=1
trigger1=partner,stateno=13005&&var(47):=10
trigger2=partner,var(47)=10&&var(47):=20
value=13006

[State 13005, var]
type=varadd
trigger1=1
var(47)=1

[State 13005, end]
type=changestate
trigger1=!time&&numpartner!=1
trigger2=time>60
value=0
ctrl=1

;---SYNCHRONIZE---
[Statedef 13006]
type=S
physics=S
movetype=A
anim=356
ctrl=0
velset=0,0

[State 13005, end]
type=changestate
trigger1=var(47)=20&&!time
trigger2=var(47)=10&&time=1
value=3000
ctrl=1
