;-| Super Motions |--------------------------------------------------------
;Special
[Command]
name = "Special"
command = U,U,D,D,F,B,F,B,s
time = 120

;-| Special Motions |------------------------------------------------------
[Command]
name = "ai"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 1

[Command]
name = "ai2"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,a
time = 1

[Command]
name = "ai3"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,z
time = 1

[Command]
name = "ai4"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,y
time = 1

[Command]
name = "ai5"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,x
time = 1

[Command]
name = "ai6"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,c
time = 1

[Command]
name = "ai7"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,b
time = 1

[Command]
name = "ai8"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,a
time = 1

[Command]
name = "ai9"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,z
time = 1

[Command]
name = "ai10"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,y
time = 1

[Command]
name = "ai11"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,x
time = 1

[Command]
name = "ai12"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,c
time = 1

[Command]
name = "ai13"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,b
time = 1

[Command]
name = "ai14"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,a
time = 1

[Command]
name = "ai15"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,z
time = 1

[Command]
name = "ai16"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,y
time = 1

[Command]
name = "ai17"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,x
time = 1

[Command]
name = "ai18"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,c
time = 1

[Command]
name = "ai19"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,b
time = 1

[Command]
name = "ai20"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,a
time = 1

[Command]
name = "holda"
command = /$a
time = 1

[Command]
name = "x+y"
command = x+y
time = 1

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"       ;Required (do not remove)
command = F, F
time = 10

[Command]
name = "BB"       ;Required (do not remove)
command = B, B
time = 10

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery" ;Required (do not remove)
command = a+b
time = 1

[Command]
name = "ab"
command = a+b
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "fwd_a"
command = /F,a
time = 1

[Command]
name = "fwd_b"
command = /F,b
time = 1

[Command]
name = "fwd_c"
command = /F,c
time = 1

[Command]
name = "downfwd_a"
command = /DF,a
time = 1

[Command]
name = "downfwd_b"
command = /DF,b
time = 1

[Command]
name = "back_a"
command = /B,a
time = 1

[Command]
name = "back_b"
command = /B,b
time = 1

[Command]
name = "back_c"
command = /B,c
time = 1

[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_b"
command = /$D,b
time = 1

[Command]
name = "down_c"
command = /$D,c
time = 1

[Command]
name = "fwd_ab"
command = /F, a+b
time = 1

[Command]
name = "back_ab"
command = /B, a+b
time = 1

;-| Single Button |---------------------------------------------------------
[Command]
name = "a"
command = a
time = 1

[Command]
name = "b"
command = b
time = 1

[Command]
name = "c"
command = c
time = 1

[Command]
name = "x"
command = x
time = 1

[Command]
name = "y"
command = y
time = 1

[Command]
name = "z"
command = z
time = 1

[Command]
name = "start"
command = s
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd"  ;Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback" ;Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup"   ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown" ;Required (do not remove)
command = /$D
time = 1

;======================================================================
[Statedef -1]

;----------------------------------------------------------------------------------------------------------------
;Catch
[State -1]
type = ChangeState
triggerall = NumHelper(10400) = 0
triggerall = NumHelper(10600) = 0
triggerall = Var(58) || (Helper(90000),Anim!=10200)
triggerall = StateNo = 10000
trigger1 = !Var(59)
trigger1 = Command = "x+y"
trigger2 = Var(59)
trigger2 = Random = [0,200]
trigger2 = P2Dist X = [-20,120]
value = 10600
ctrl = 0

;----------------------------------------------------------------------------------------------------------------
;Punch2
[State -1]
type = Helper
triggerall = NumHelper(10400) = 0
triggerall = NumHelper(10600) = 0
triggerall = Var(58) || (Helper(90000),Anim!=10200)
triggerall = Var(58) || (StateNo!=10300)
trigger1 = !Var(59)
trigger1 = Command = "y"
trigger2 = Var(59)
trigger2 = Random = [0,333]
trigger2 = P2Dist X = [120,180]
name = "arm1"
stateno = 10500
keyctrl = 0
id = 10400

;----------------------------------------------------------------------------------------------------------------
;Punch
[State -1]
type = Helper
triggerall = NumHelper(10400) = 0
triggerall = NumHelper(10600) = 0
triggerall = Var(58) || (Helper(90000),Anim!=10200)
triggerall = Var(58) || (StateNo!=10300)
trigger1 = !Var(59)
trigger1 = Command = "x"
trigger2 = Var(59)
trigger2 = Random = [0,500]
trigger2 = P2Dist X >= 200
name = "arm1"
stateno = 10400
keyctrl = 0
id = 10400

;----------------------------------------------------------------------------------------------------------------
;Shout
[State -1]
type = ChangeState
triggerall = !Var(59)
triggerall = RoundState = 2
triggerall = Command = "b"
triggerall = Var(58) || (Helper(90000),Anim!=10200)
triggerall = Var(58) || (NumHelper(10400)=0)
trigger1 = StateNo = 10000
trigger2 = StateNo = 10020
ignorehitpause = 1
value = 10300
ctrl = 0

;Shout --AI
[State -1]
type = ChangeState
triggerall = Var(59)
triggerall = RoundState = 2
triggerall = Var(58) || (Helper(90000),Anim!=10200)
triggerall = Var(58) || (NumHelper(10400)=0)
triggerall = Power < 100
triggerall = P2Dist X > 60
trigger1 = StateNo = 10000
trigger2 = StateNo = 10020
ignorehitpause = 1
value = 10300
ctrl = 0

;----------------------------------------------------------------------------------------------------------------
;Fire
[State -1]
type = Helper
trigger1 = Power >= 10
trigger1 = Helper(90000), Anim = 10200
trigger1 = Helper(90000), AnimElem = 10,>0
trigger1 = (Helper(10200), TimeMod = 4,0) || (NumHelper(10200) = 0)
name = "fire"
pos = 53,-115+Helper(90000), Pos Y
stateno = 10200
keyctrl = 0
ownpal = 1
id = 10200
size.xscale = 1.5
size.yscale = 1.5

[State -1]
type = PlaySnd
trigger1 = Power >= 10
trigger1 = Helper(90000), Anim = 10200
trigger1 = Helper(90000), AnimElem = 1,1
value = 3000,2
channel = 1

[State -1]
type = PlaySnd
trigger1 = Power >= 10
trigger1 = Helper(90000), Anim = 10200
trigger1 = Helper(90000), AnimElem = 10,>0
trigger1 = (Helper(10200), TimeMod = 4,0) || (NumHelper(10200) = 0)
value = 3000,3
channel = 2

[State -1]
type = PlaySnd
trigger1 = Power >= 10
trigger1 = Helper(90000), Anim = 10201
trigger1 = Helper(90000), AnimElem = 1,1
value = 3000,4
channel = 2


;----------------------------------------------------------------------------------------------------------------
;Walk
[State -1]
type = ChangeState
triggerall = RoundState = 2
triggerall = StateNo = 10000
trigger1 = !Var(59)
trigger1 = Command = "holdfwd"
trigger2 = !Var(59)
trigger2 = Command = "holdback"
trigger3 = Var(59)
trigger3 = P2Dist X = [0,100]
trigger3 = BackEdgeDist >= 100
trigger4 = Var(59)
trigger4 = Helper(90000), Anim = 10200
trigger4 = (P2Dist X >= 250) || ((P2StateType = C)&&(P2Dist X<=60))
trigger5 = Var(59)
trigger5 = NumHelper(10400) = 1
trigger5 = Helper(10400), StateNo = 10500
trigger5 = P2Dist X <= 100
trigger5 = BackEdgeDist >= 100
ignorehitpause = 1
value = 10020
ctrl = 0

;----------------------------------------------------------------------------------------------------------------
;AI
[State -1]
type = VarSet
trigger1 = Command = "ai"
trigger2 = Command = "ai2"
trigger3 = Command = "ai3"
trigger4 = Command = "ai4"
trigger5 = Command = "ai5"
trigger6 = Command = "ai6"
trigger7 = Command = "ai7"
trigger8 = Command = "ai8"
trigger9 = Command = "ai9"
trigger10 = Command = "ai10"
trigger11 = Command = "ai11"
trigger12 = Command = "ai12"
trigger13 = Command = "ai13"
trigger14 = Command = "ai14"
trigger15 = Command = "ai15"
trigger16 = Command = "ai16"
trigger17 = Command = "ai17"
trigger18 = Command = "ai18"
trigger19 = Command = "ai19"
trigger20 = Command = "ai20"
ignorehitpause = 1
var(59) = 1