;-| {^zu |-----------------------------------------------------
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

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

;-| KEZ |--------------------------------------------------------
[Command]
name = "e_XY"
command = ~F, B, D, F, x+y
time = 20

;-| KEZ |------------------------------------------------------
[Command]
name = "VnԂ_X"
command = ~F, D, $B, F, x
time = 20

[Command]
name = "VnԂ_Y"
command = ~F, D, $B, F, y
time = 20

[Command]
name = "VnԂ_A"
command = ~F, D, $B, F, a
time = 20

[Command]
name = "K_B"
command = ~B, D, F, b
time = 20

[Command]
name = "_X"
command = ~F, D, FD, x

[Command]
name = "_Y"
command = ~F, D, FD, y

[Command]
name = "_A"
command = ~F, D, FD, a

[Command]
name = "t_X"
command = ~B, D, BD, x

[Command]
name = "t_Y"
command = ~B, D, BD, y

[Command]
name = "t_A"
command = ~B, D, BD, a

[Command]
name = "g_X"
command = ~D, FD, F, x

[Command]
name = "g_Y"
command = ~D, FD, F, y

[Command]
name = "_X"
command = ~D, DB, B, x

[Command]
name = "_Y"
command = ~D, DB, B, y

[Command]
name = "_A"
command = ~D, DB, B, a

[Command]
name = "_B"
command = ~D, DB, B, b

;-| Q񉟂Z |-----------------------------------------------------------
[Command]
name = "FF"     
command = F, F
time = 10

[Command]
name = "BB"     
command = B, B
time = 10

;-| QER̓Z |-----------------------------------------------
[Command]
name = "recovery"
command = x+y
time = 1

;-| ƃ{^ŏoZ |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

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

;-| {^ݒiȂj|---------------------------------------------------------
[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 = "fwd"
command = F
time = 1

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

[Command]
name = "up"
command = U
time = 1

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

;-| ςȂݒiȂj-------------------------------------------------------
[Command]
name = "holdfwd"
command = /$F
time = 1

[Command]
name = "holdback"
command = /$B
time = 1

[Command]
name = "holdup" 
command = /$U
time = 1

[Command]
name = "holddown"
command = /$D
time = 1

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

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

;===========================================================================
[Statedef -1]
;===========================================================================
[State -1, ]
type = VarSet
trigger1 = 1
var(1) = 0

[State -1, LZKEZ]
type = VarSet
triggerall = movetype != H
trigger1 = stateno = [200,799]
trigger1 = movecontact
var(1) = 1
ignorehitpause = 1
PauseMoveTime = 99999

[State -1, Random_AIvar]
type = VarRandom
trigger1 = stateno != [120,155]
trigger1 = Time = 1
v = 58
range = 0,99

;===========================================================================
;---------------------------------------------------------------------------
[State -1, oOi]
type = ChangeState
value = 3000
triggerall = command = "e_XY"
triggerall = Power >= 2000
triggerall = StateType != A
trigger1 = ctrl
trigger2 = var(1)

;---------------------------------------------------------------------------
[State -1, 쏢]
type = ChangeState
value = 3500
triggerall = command = "K_B"
triggerall = Power >= 1000
triggerall = StateType != A
trigger1 = ctrl
trigger2 = var(1)

;===========================================================================
;---------------------------------------------------------------------------
[State -1, ij]
type = ChangeState
value = 1200
triggerall = command = "VnԂ_X"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = var(1)

[State -1, ij]
type = ChangeState
value = 1210
triggerall = command = "VnԂ_Y"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = var(1)

[State -1, ij]
type = ChangeState
value = 1220
triggerall = command = "VnԂ_A"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = var(1)

;---------------------------------------------------------------------------
[State -1, ^gij]
type = ChangeState
value = 1100
triggerall = command = "_X"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = var(1)

[State -1, ^gij]
type = ChangeState
value = 1110
triggerall = command = "_Y"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = var(1)

[State -1, ^gij]
type = ChangeState
value = 1120
triggerall = command = "_A"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = var(1)

;---------------------------------------------------------------------------
[State -1, ̉i߁j]
type = ChangeState
value = 1000
triggerall = command = "_X"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = var(1)

[State -1, ̉ij]
type = ChangeState
value = 1010
triggerall = command = "_Y"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = var(1)

[State -1, ̉ij]
type = ChangeState
value = 1020
triggerall = command = "_A"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = var(1)

;===========================================================================
;---------------------------------------------------------------------------
[State -1, p[]
type = ChangeState
value = 900
triggerall = (command = "hold_y" && command = "hold_b")
triggerall = power < 3000
trigger1 = statetype != A
trigger1 = ctrl = 1

[State -1, _bV]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, ރ_bV]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, ]
type = ChangeState
value = 800
triggerall = command = "a"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 5
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

[State -1, _bV˂]
type = ChangeState
value = 300
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = StateNo = 100

[State -1, ]
type = ChangeState
value = 195
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = ctrl

;===========================================================================
;---------------------------------------------------------------------------
[State -1, ]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = StateNo != 100
triggerall = statetype != A
trigger1 = ctrl
trigger2 = StateNo = 200
trigger2 = AnimElem = 5,2 || MoveContact > 2
trigger3 = StateNo = 400
trigger3 = AnimElem = 4,2 || MoveContact > 2

;---------------------------------------------------------------------------
[State -1, ˂]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = StateNo != 100
triggerall = statetype != A
trigger1 = ctrl
trigger2 = var(43) && MoveContact
trigger2 = StateNo = 200 || StateNo = 400

;---------------------------------------------------------------------------
[State -1, a]
type = ChangeState
value = 220
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = StateNo != 100
triggerall = statetype != A
trigger1 = ctrl
trigger2 = var(43) && MoveContact
trigger2 = (StateNo = [200,210]) || StateNo = 300 || (StateNo = [400,410])

;---------------------------------------------------------------------------
[State -1, R]
type = ChangeState
value = 230
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = StateNo != 100
triggerall = statetype != A
trigger1 = ctrl
trigger2 = var(43) && MoveContact
trigger2 = (StateNo = [200,220]) || StateNo = 300 || (StateNo = [400,420])

;---------------------------------------------------------------------------
[State -1, Ⴊݎ]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = StateNo != 100
triggerall = statetype != A
trigger1 = ctrl
trigger2 = StateNo = 200
trigger2 = AnimElem = 5,2 || MoveContact > 2
trigger3 = StateNo = 400
trigger3 = AnimElem = 4,2 || MoveContact > 2

;---------------------------------------------------------------------------
[State -1, Ⴊݓ˂]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = StateNo != 100
triggerall = statetype != A
trigger1 = ctrl
trigger2 = var(43) && MoveContact
trigger2 = StateNo = 200 || StateNo = 400

;---------------------------------------------------------------------------
[State -1, Ⴊݎa]
type = ChangeState
value = 420
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = StateNo != 100
triggerall = statetype != A
trigger1 = ctrl
trigger2 = var(43) && MoveContact
trigger2 = (StateNo = [200,210]) || StateNo = 300 || (StateNo = [400,410])

;---------------------------------------------------------------------------
[State -1, ႪݏR]
type = ChangeState
value = 430
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = StateNo != 100
triggerall = statetype != A
trigger1 = ctrl
trigger2 = var(43) && MoveContact
trigger2 = (StateNo = [200,220]) || StateNo = 300 || (StateNo = [400,420])

;---------------------------------------------------------------------------
[State -1, Wv]
type = ChangeState
value = 600
triggerall = command = "x"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(3) || var(43)
trigger2 = stateno = 600
trigger2 = MoveContact

;---------------------------------------------------------------------------
[State -1, Wv˂]
type = ChangeState
value = 610
triggerall = command = "y"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(3) || var(43)
trigger2 = stateno = 600
trigger2 = MoveContact

;---------------------------------------------------------------------------
[State -1, Wva]
type = ChangeState
value = 620
triggerall = command = "a"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(3) || var(43)
trigger2 = stateno = [600,610]
trigger2 = MoveContact

;---------------------------------------------------------------------------
[State -1, WvR]
type = ChangeState
value = 630
triggerall = command = "b"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = var(3) || var(43)
trigger2 = stateno = [600,620]
trigger2 = MoveContact

;---------------------------------------------------------------------------
[State -1, WvLZ]
type = ChangeState
value = 60
triggerall = command = "holdup"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = stateno = [420,430]
trigger1 = NumTarget
trigger1 = Target,StateType = A
trigger1 = Time >= 18
trigger1 = movecontact

;==============================================================================
[State -1, o[T]
type = ChangeState
value = Var(0)
triggerall = Var(0) > 999
trigger1 = stateno = 5120
trigger1 = AnimTime = 0
trigger2 = statetype = S || statetype = C
trigger2 = stateno = 140
trigger3 = stateno = [150,155]
trigger3 = ctrl = 1

[State -1, Fwp[]
type = Helper
trigger1 = command = "_X"
trigger2 = command = "_Y"
trigger3 = command = "_A"
trigger4 = command = "t_X"
trigger5 = command = "t_Y"
trigger6 = command = "t_A"
id = 999
name = "Reversal"
stateno = 999
helpertype = normal
keyctrl = 0

[State -1, Zbg]
type = Varset
trigger1 = stateno != [120,155]
trigger1 = ctrl
trigger2 = var(0) > 0
trigger2 = Numhelper(999) = 0
v = 0
value = 0

[State -1, oT^gij]
type = Varset
value = 1100
triggerall = MoveType = H
trigger1 = ifelse(P2Dist X<0,command = "t_X",command = "_X")
trigger2 = stateno = 5120
trigger2 = ifelse(P2Dist X<0,command = "t_X",command = "_X")
v = 0

[State -1, oT^gij]
type = Varset
value = 1110
triggerall = MoveType = H
trigger1 = ifelse(P2Dist X<0,command = "t_Y",command = "_Y")
trigger2 = stateno = 5120
trigger2 = ifelse(P2Dist X<0,command = "t_Y",command = "_Y")
v = 0

[State -1, oT^gij]
type = Varset
value = 1120
triggerall = MoveType = H
trigger1 = ifelse(P2Dist X<0,command = "t_A",command = "_A")
trigger2 = stateno = 5120
trigger2 = ifelse(P2Dist X<0,command = "t_A",command = "_A")
v = 0
