;-| Button Remapping |-----------------------------------------------------
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;-| Default Values |-------------------------------------------------------
[Defaults]
command.time = 15
command.buffer.time = 1


;-| Super Motions |--------------------------------------------------------
;
[Command]
name = "TripleKFPalm"
command = ~D, DF, F, D, DF, F, x
time = 20

[Command]
name = "TripleKFPalm"   ;Same name as above
command = ~D, DF, F, D, DF, F, y
time = 20

[Command]
name = "SmashKFUpper"
command = ~D, DB, B, D, DB, B, x;~F, D, DF, F, D, DF, x
time = 20

[Command]
name = "SmashKFUpper"   ;Same name as above
command = ~D, DB, B, D, DB, B, y;~F, D, DF, F, D, DF, y
time = 20

;-| Special Motions |------------------------------------------------------
;-| 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 = x+y
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_b"
command = /$D,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

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

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

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

[Command]
name = "fwd"
command = F
time = 1

[Command]
name = "back"
command = B
time = 1

[Command]
name = "down"
command = D
time = 1

[Command]
name = "up"
command = U
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

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

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

[Command]
name = "hold_a"
command = /a
time = 1

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

[Statedef -1]

[State -1, VarSet]
type = VarSet
trigger1 = 1
v = 59
value = 1

[State -1, VarSet]
type = VarSet
trigger1 = Var(59) > 0
trigger2 = IsHomeTeam = 1
trigger2 = TeamSide = 2
trigger3 = IsHomeTeam = 1
trigger3 = MatchNo > 1
ignorehitpause = 1
v = 20
value = -1

[State -1, VarRandom];ライドAI
type = VarRandom
triggerall = RoundState = 2
trigger1 = Var(20) < 0
ignorehitpause = 1
v = 52
range = 0,999

[State ]
Type=ChangeState
Value=230
triggerall=var(59)>=1&&numenemy&&roundstate=2&&alive
triggerall=StateType!=A&&Ctrl
trigger1 = var(52) = [850,999]

[State ]
Type=ChangeState
Value=220
triggerall=var(59)>=1&&numenemy&&roundstate=2&&alive
triggerall=StateType!=A&&Ctrl
trigger1 = var(52) = [700,849]

[State ]
Type=ChangeState
Value=210
triggerall=var(59)>=1&&numenemy&&roundstate=2&&alive
triggerall=StateType!=A&&Ctrl
trigger1 = var(52) = [490,699]

[State ]
Type=ChangeState
Value=200
triggerall=var(59)>=1&&numenemy&&roundstate=2&&alive
triggerall=StateType!=A&&Ctrl
trigger1 = var(52) = [240,489]
[State ]
Type=ChangeState
Value=60
triggerall=var(59)>=1&&numenemy&&roundstate=2&&alive
triggerall=StateType!=A&&Ctrl
triggerall = pos Y >= 0
trigger1 = var(52) = [120,239]
[State ]
Type=ChangeState
Value=50
triggerall=var(59)>=1&&numenemy&&roundstate=2&&alive
triggerall=StateType!=A&&Ctrl
triggerall = pos Y >= 0
trigger1 = var(52) = [0,119]

[State -1, ]
type = ChangeState
value = 230
triggerall = command = "c"
triggerall = ctrl
trigger1 = stateno = 0

[State -1, ]
type = ChangeState
value = 220
triggerall = command = "z"
triggerall = ctrl
trigger1 = stateno = 0

[State -1, ]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = ctrl
trigger1 = stateno = 0

[State -1, ]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = ctrl
trigger1 = stateno = 0


[State -1, ]
type = ChangeState
value = 60
triggerall = command = "b"
triggerall = ctrl
trigger1 = stateno = 0

[State -1, ]
type = ChangeState
value = 50
triggerall = command = "a"
triggerall = ctrl
trigger1 = stateno = 0

[State -1]
type=assertspecial
trigger1=1
flag=nowalk
ignorehitpause=1