;-| Button Remapping |-----------------------------------------------------
; This section lets you remap the player's buttons (to easily change the
; button configuration). The format is:
;   old_button = new_button
; If new_button is left blank, the button cannot be pressed.
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

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

;-| Super Motions |--------------------------------------------------------
;-| commands |-


[Command]
name = "MS"
command = D, DF, F, x+y
time = 30
[Command]
name = "MS"
command = D, DF, F, x+z
time = 30
[Command]
name = "MS"
command = D, DF, F, y+z
time = 30

[Command]
name = "MS"
command = D, DB, B, x+y
time = 30
[Command]
name = "MS"
command = D, DB, B, x+z
time = 30
[Command]
name = "MS"
command = D, DB, B, y+z
time = 30

[Command]
name = "CA"
command = D, DF, F, a+b
time = 30
[Command]
name = "CA"
command = D, DF, F, a+b
time = 30
[Command]
name = "CA"
command = D, DF, F, a+b
time = 30


;-| Special Motions |------------------------------------------------------
;-| commands |-

[Command]
name = "wbx"
command = D, DF, F, x
time = 20
[Command]
name = "wby"
command = D, DF, F, y
time = 20
[Command]
name = "wbz"
command = D, DF, F, z
time = 20

[Command]
name = "SSX"
command = F, D, DF, x
time = 25
[Command]
name = "SSY"
command = F, D, DF, y
time = 25
[Command]
name = "SSZ"
command = F, D, DF, z
time = 25

[Command]
name = "WSA"
command = D, DB, B, a
time = 25
[Command]
name = "WSB"
command = D, DB, B, b
time = 25
[Command]
name = "WSC"
command = D, DB, B, c
time = 25

[Command]
name = "WTX"
command = F, DF, D, DB, B, x
time = 30
[Command]
name = "WTY"
command = F, DF, D, DB, B, y
time = 30
[Command]
name = "WTZ"
command = F, DF, D, DB, B, z
time = 30

[Command]
name = "RecoveryRoll"
command = B, DB, D, x
time = 20
[Command]
name = "RecoveryRoll"
command = B, DB, D, y
time = 20
[Command]
name = "RecoveryRoll"
command = B, DB, D, z
time = 20
[Command]
name = "RecoveryRoll2"
command = B, DB, D, a
time = 20
[Command]
name = "RecoveryRoll2"
command = B, DB, D, b
time = 20
[Command]
name = "RecoveryRoll2"
command = B, DB, D, c
time = 20

[Command]
name = "VC1"
command = B, DB, D, x
time = 20
[Command]
name = "VC1"
command = B, DB, D, y
time = 20
[Command]
name = "VC1"
command = B, DB, D, z
time = 20

[Command]
name = "VC1"
command = y+b
time = 1

;-| Double Tap |-----------------------------------------------------------
;-| Eight commands |-

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

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

[Command]
name = "DU"
command = D, U
time = 10

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

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

[Command]
name = "DUF"
command = D, UF
time = 10

[Command]
name = "DUB"
command = D, UB
time = 10

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

[Command]
name = "SJ"
command = $D,$U
time = 15

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



;-| Dir + Button |---------------------------------------------------------
;-| Five commands |-

[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 = "down_y"
command = /$D,y
time = 1

[Command]
name = "down_z"
command = /$D,z
time = 1

;-| 2/3 Button Combination |-----------------------------------------------
;-| Four commands |-

[Command]
name = "recovery" ;Required (do not remove)
command = a+b
time = 1

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

[command] 
name = "Advguard"
command = x+y
time = 5

[Command]
name = "SJ"
command = a+b
time = 2

;-| Single Button |---------------------------------------------------------
;-| Fourteen commands |-

[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 = "s"
command = s
time = 1

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

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

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

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

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

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

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

[Command]
name = "GemCursor"
command = ~5s
time = 1

;-| Hold Dir |--------------------------------------------------------------
;-| Twelve commands |-

[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 = "holddownfwd"
command = /DF
time = 1

[Command]
name = "holddownback"
command = /DB
time = 1

[Command]
name = "holdupfwd"
command = /UF
time = 1

[Command]
name = "holdupback"
command = /UB
time = 1

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

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

[Command]
name = "holdup2"
command = /U
time = 1

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

[Command] 
name = "hold_a" 
command = /$a 
[Command] 
name = "hold_b" 
command = /$b 
[Command] 
name = "hold_x" 
command = /$x 
[Command] 
name = "hold_y" 
command = /$y 
[Command] 
name = "hold_c" 
command = /$c 
[Command] 
name = "hold_z" 
command = /$z

;-| CPU Commands |----------------------------------------------------------
;-| Commands |-

[Command]
name = "cpu1"
command = U, U, U, U
time = 1
[Command]
name = "cpu2"
command = U, U, U, D
time = 1
[Command]
name = "cpu3"
command = U, U, D, D
time = 1
[Command]
name = "cpu4"
command = U, D, D, D
time = 1
[Command]
name = "cpu5"
command = D, D, D, D
time = 1
[Command]
name = "cpu6"
command = D, D, D, U
time = 1
[Command]
name = "cpu7"
command = D, D, U, U
time = 1
[Command]
name = "cpu8"
command = D, U, U, U
time = 1
[Command]
name = "cpu9"
command = U, D, U, U
time = 1
[Command]
name = "cpu10"
command = U, U, D, U
time = 1
[Command]
name = "cpu11"
command = D, U, U, D
time = 1
[Command]
name = "cpu12"
command = U, D, D, U
time = 1
[Command]
name = "cpu13"
command = D, U, D, U
time = 1
[Command]
name = "cpu14"
command = U, D, U, D
time = 1
[Command]
name = "cpu15"
command = F, F, F, F
time = 1
[Command]
name = "cpu16"
command = B, B, B, B
time = 1
[Command]
name = "cpu17"
command = F, B, F, F
time = 1
[Command]
name = "cpu18"
command = F, F, B, F
time = 1
[Command]
name = "cpu19"
command = B, F, F, F
time = 1
[Command]
name = "cpu20"
command = F, F, F, B
time = 1
[Command]
name = "cpu21"
command = F, B, B, F
time = 1
[Command]
name = "cpu22"
command = B, F, F, B
time = 1
[Command]
name = "cpu23"
command = F, B, F, B
time = 1
[Command]
name = "cpu24"
command = B, F, B, F
time = 1
[Command]
name = "cpu25"
command = D, F, D, F
time = 1
[Command]
name = "cpu26"
command = D, B, D, B
time = 1
[Command]
name = "cpu27"
command = D, B, D, F
time = 1
[Command]
name = "cpu28"
command = D, F, D, B
time = 1
[Command]
name = "cpu29"
command = U, F, D, B
time = 1
[Command]
name = "cpu30"
command = U, B, D, F
time = 1
[Command]
name = "cpu31"
command = B, D, F, U
time = 1
[Command]
name = "cpu32"
command = F, D, B, U
time = 1

[Statedef -1]
;コマンド------------------------------------------------------------------

;---------------------------------------------------------------------------
; MS
[State -1]
type = ChangeState
value = 2000
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = power >= 1000
triggerall = command = "MS"
trigger1 = ctrl
trigger2 = stateno = [200,650]
trigger3 = stateno = [1000,1420]


;---------------------------------------------------------------------------
; CA
[State -1]
type = ChangeState
value = 3000
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = power >= 1000
triggerall = command = "CA"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [200,450]
trigger3 = stateno = [1000,1420]


;RunBack
[State -1]
type = ChangeState
value = 105
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = (command = "holdback2" && command = "TwoPunch") || (StateType != A && command = "BB")
trigger1 = StateType = S
trigger1 = ctrl
trigger1 = StateNo != [105,106]




;RunFwd
[State -1]
type = ChangeState
value = 100
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = (command = "TwoPunch") || (StateType != A && command = "FF")
trigger1 = StateType = S
trigger1 = StateNo != 100
trigger1 = ctrl
trigger2 = StateNo = 10


;AirRunFwd
[State -1]
type = ChangeState
value = 340
triggerall = !var(59)
triggerall = var(45) = 0
triggerall = (command = "TwoPunch") || ( command = "FF")
trigger1 = StateType = A
trigger1 = StateNo != 340
trigger1 = ctrl

;---------------------------------------------------------------------------
; Guard Push (Stand)
[State -1, Guard Push]
type = ChangeState
value = 7610
triggerall = !var(59)
triggerall = command = "Advguard"
trigger1 = stateno = [150,151]

;Guard Push (Crouch)
[State -1, Guard Push]
type = ChangeState
value = 7615
triggerall = !var(59)
triggerall = command = "Advguard"
trigger1 = stateno = [152,153]

;Guard Push (Air)
[State -1, Guard Push]
type = ChangeState
value = 7620
triggerall = !var(59)
triggerall = command = "Advguard"
trigger1 = stateno = 154
trigger2 = stateno = 155

;---------------------------------------------------------------------------
;-------------------------------Specials------------------------------------
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
; スパイダースティングX
[State -1]
type = ChangeState
value = 1400
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype != A
triggerall = command = "SSX"
trigger1 = ctrl
trigger2 = stateno = [200,450]



;---------------------------------------------------------------------------
; アッパー Y
[State -1]
type = ChangeState
value = 1410
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype != A
triggerall = command = "SSY"
trigger1 = ctrl
trigger2 = stateno = [200,450]



;---------------------------------------------------------------------------
; アッパー Z
[State -1]
type = ChangeState
value = 1420
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype != A
triggerall = command = "SSZ"
trigger1 = ctrl
trigger2 = stateno = [200,450]


;---------------------------------------------------------------------------
; ウェブボール弱
[State -1]
type = ChangeState
value = 1000
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype != A
triggerall = command = "wbx"
triggerall = NumHelper(1005) <= 2
trigger1 = ctrl
trigger2 = stateno = [200,450]

;---------------------------------------------------------------------------
; ウェブボール中
[State -1]
type = ChangeState
value = 1010
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype != A
triggerall = command = "wby"
trigger1 = ctrl
trigger2 = stateno = [200,450]

;---------------------------------------------------------------------------
; ウェブボール強
[State -1]
type = ChangeState
value = 1020
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype != A
triggerall = command = "wbz"
trigger1 = ctrl
trigger2 = stateno = [200,450]

;---------------------------------------------------------------------------
; 空中ウェブボール弱
[State -1]
type = ChangeState
value = 1100
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype = A
triggerall = command = "wbx"
triggerall = NumHelper(1005) <= 2
trigger1 = ctrl
trigger2 = stateno = [600,650]

;---------------------------------------------------------------------------
; ウェブボール中
[State -1]
type = ChangeState
value = 1110
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype = A
triggerall = command = "wby"
triggerall = NumHelper(1005) <= 3
trigger1 = ctrl
trigger2 = stateno = [600,650]

;---------------------------------------------------------------------------
; ウェブボール強
[State -1]
type = ChangeState
value = 1120
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype = A
triggerall = command = "wbz"
triggerall = NumHelper(1005) <= 3
trigger1 = ctrl
trigger2 = stateno = [600,650]


;---------------------------------------------------------------------------
; ウェブスイング弱
[State -1]
type = ChangeState
value = 1300
triggerall = !var(59)
triggerall = var(43) = 0
;triggerall = statetype != A
triggerall = command = "WSA"
trigger1 = ctrl
trigger2 = stateno = [200,650]

;---------------------------------------------------------------------------
; ウェブスイング中
[State -1]
type = ChangeState
value = 1310
triggerall = !var(59)
triggerall = var(43) = 0
;triggerall = statetype != A
triggerall = command = "WSB"
trigger1 = ctrl
trigger2 = stateno = [200,650]

;---------------------------------------------------------------------------
; ウェブスイング強
[State -1]
type = ChangeState
value = 1320
triggerall = !var(59)
triggerall = var(43) = 0
;triggerall = statetype != A
triggerall = command = "WSC"
trigger1 = ctrl
trigger2 = stateno = [200,650]


;---------------------------------------------------------------------------
; ウェブスロー
[State -1]
type = ChangeState
value = 1500
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype != A
triggerall = command = "WTX"
trigger1 = ctrl
trigger2 = stateno = [200,450]

;---------------------------------------------------------------------------
; ウェブスロー
[State -1]
type = ChangeState
value = 1510
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype != A
triggerall = command = "WTY"
trigger1 = ctrl
trigger2 = stateno = [200,450]

;---------------------------------------------------------------------------
; ウェブスロー
[State -1]
type = ChangeState
value = 1520
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype != A
triggerall = command = "WTZ"
trigger1 = ctrl
trigger2 = stateno = [200,450]



;---------------------------------------------------------------------------
;--------------------------------Basics-------------------------------------
;---------------------------------------------------------------------------

;投げ
;---------------------------------------------------------------------------
; P投げ
[State -1]
type = ChangeState
value = 800
triggerall = !var(59)
triggerall = StateType = S
triggerall = p2StateType != A
triggerall = p2bodydist X <= 40
;triggerall = p2dist X > 0
triggerall = p2dist Y <= 50
triggerall = p2dist Y > -50
triggerall = StateNo != 100
trigger1 = enemyNear, StateNo != [120,159]
trigger1 = command = "holdfwd2" || command = "holdback2"
trigger1 = command = "z"
trigger1 = ctrl
trigger2 = command = "x" && command = "a"
trigger2 = ctrl

;---------------------------------------------------------------------------
; K投げ
[State -1]
type = ChangeState
value = 830
triggerall = !var(59)
triggerall = StateType = S
triggerall = p2StateType != A
triggerall = command = "holdfwd2" || command = "holdback2"
triggerall = command = "c"
triggerall = p2bodydist X <= 40
;triggerall = p2dist X > 0
triggerall = p2dist Y <= 50
triggerall = p2dist Y > -50
triggerall = StateNo != 100
triggerall = enemyNear, StateNo != [120,159]
trigger1 = ctrl


;---------------------------------------------------------------------------
; j. Fierce Throw Forward
[State -1]
type = ChangeState
value = 920
triggerall = !var(59)
triggerall = StateType = A
triggerall = p2StateType = A
triggerall = command = "holdfwd2" || command = "holdback2"
triggerall = command = "z"
triggerall = p2bodydist X <= 40
triggerall = p2bodydist X >= -5
triggerall = p2bodydist Y <= 60
triggerall = p2bodydist Y > -60
triggerall = enemyNear, StateNo != [120,159]
trigger1 = ctrl


;---------------------------------------------------------------------------

;Super Jump
[State -1]
type = ChangeState
value = 10022
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype!=A
trigger1 = command = "holdup"
trigger1 = stateno = 210 || stateno = 250
trigger1 = movehit = 1
trigger2 = command = "holdupfwd"
trigger2 = stateno = 210 || stateno = 250
trigger2 = movehit = 1
trigger3 = command = "holdupback"
trigger3 = stateno = 210 || stateno = 250
trigger3 = movehit = 1



[State -1]
type = ChangeState
value = 10023
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype!=A
trigger1 = stateno = [200,450]
trigger1 = movecontact
trigger1 = command = "SJ"
trigger2 = ctrl
trigger2 = command = "SJ"


[State -1]
type =null; ChangeState
value = 10025
triggerall = !var(59)
triggerall = var(44)=1
triggerall = statetype=A && time>12
triggerall = pos Y < -65
triggerall = command = "UF"
trigger1 = ctrl

[State -1]
type =null; ChangeState
value = 10024
triggerall = !var(59)
triggerall = var(44)=1
triggerall = statetype=A && time>12
triggerall = pos Y < -65
triggerall = command = "up" 
trigger1 = ctrl


[State -1]
type = null;ChangeState
value = 10026
triggerall = !var(59)
triggerall = var(44)=1
triggerall = var(41)=1
triggerall = statetype=A 
triggerall = pos Y < -65
triggerall = command = "UB"
trigger1 = ctrl

[State -1]
type = null;ChangeState
value = 10025
triggerall = !var(59)
triggerall = var(44)=1
triggerall = var(41)=1
triggerall = statetype=A 
triggerall = pos Y < -65
triggerall = command = "UF"
trigger1 = ctrl

[State -1]
type = null;ChangeState
value = 10024
triggerall = !var(59)
triggerall = var(44)=1
triggerall = var(41)=1
triggerall = statetype=A 
triggerall = pos Y < -65
triggerall = command = "up" 
trigger1 = ctrl


[State -1]
type = null;ChangeState
value = 10026
triggerall = !var(59)
triggerall = var(44)=1
triggerall = statetype=A && time>12
triggerall = pos Y < -65
triggerall = command = "UB"
trigger1 = ctrl


[State -1]
type = null;ChangeState
value = 10025
triggerall = !var(59)
triggerall = var(44)=1
triggerall = statetype=A
triggerall = command = "UF"
trigger1 = stateno = 600 && time>6
trigger2 = stateno = 610 && time>6
trigger3 = stateno = 611 && time>6
trigger4 = stateno = 620 && time>6
trigger5 = stateno = 630 && time>6
trigger6 = stateno = 631 && time>6
trigger7 = stateno = 640 && time>6
trigger8 = stateno = 650 && time>6

[State -1]
type = null;ChangeState
value = 10024
triggerall = !var(59)
triggerall = var(44)=1
triggerall = statetype=A
triggerall = command = "up" 
trigger1 = stateno = 600 && time>6
trigger2 = stateno = 610 && time>6
trigger3 = stateno = 611 && time>6
trigger4 = stateno = 620 && time>6
trigger5 = stateno = 630 && time>6
trigger6 = stateno = 631 && time>6
trigger7 = stateno = 640 && time>6
trigger8 = stateno = 650 && time>6

[State -1]
type = null;ChangeState
value = 10026
triggerall = !var(59)
triggerall = var(44)=1
triggerall = statetype=A
triggerall = command = "UB"
trigger1 = stateno = 600 && time>6
trigger2 = stateno = 610 && time>6
trigger3 = stateno = 611 && time>6
trigger4 = stateno = 620 && time>6
trigger5 = stateno = 630 && time>6
trigger6 = stateno = 631 && time>6
trigger7 = stateno = 640 && time>6
trigger8 = stateno = 650 && time>6

;--|[ Standing ]|--
;---------------------------------------------------------------------------
; s. Jab
[State -1]
type = ChangeState
value = 200
triggerall = !var(59)
triggerall = statetype != A
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = ctrl

;---------------------------------------------------------------------------
; s. Strong
[State -1]
type = ChangeState
value = 210
triggerall = !var(59)
triggerall = statetype != A
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 230
trigger3 = MoveContact
trigger4 = stateno = 400
trigger4 = MoveContact
trigger5 = stateno = 430
trigger5 = MoveContact


;---------------------------------------------------------------------------
; s. Fierce
[State -1]
type = ChangeState
value = 220
triggerall = !var(59)
triggerall = statetype != A
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveGuarded
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 240
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact


;---------------------------------------------------------------------------
; s. Short
[State -1]
type = ChangeState
value = 230
triggerall = !var(59)
triggerall = statetype != A
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 400
trigger3 = MoveContact

;---------------------------------------------------------------------------
; s. Forward
[State -1]
type = ChangeState
value = 240
triggerall = !var(59)
triggerall = statetype != A
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveGuarded
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 400
trigger5 = MoveContact
trigger6 = stateno = 410
trigger6 = MoveContact
trigger7 = stateno = 430
trigger7 = MoveContact


;---------------------------------------------------------------------------
; s. Roundhouse
[State -1]
type = ChangeState
value = 250
triggerall = !var(59)
triggerall = statetype != A
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveGuarded
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 240
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact

;--|[ Crouching ]|--
;---------------------------------------------------------------------------
; c. Jab
[State -1]
type = ChangeState
value = 400
triggerall = !var(59)
triggerall = statetype != A
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = ctrl


;---------------------------------------------------------------------------
; c. Strong
[State -1]
type = ChangeState
value = 410
triggerall = !var(59)
triggerall = statetype != A
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 230
trigger3 = MoveContact
trigger4 = stateno = 400
trigger4 = MoveContact
trigger5 = stateno = 430
trigger5 = MoveContact


;---------------------------------------------------------------------------
; c. Fierce
[State -1]
type = ChangeState
value = 420
triggerall = !var(59)
triggerall = statetype != A
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveGuarded
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 240
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveGuarded


;---------------------------------------------------------------------------
; c. Short
[State -1]
triggerall = !var(59)
type = ChangeState
value = 430
triggerall = statetype != A
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 400
trigger3 = MoveContact


;---------------------------------------------------------------------------
; c. Forward
[State -1]
type = ChangeState
value = 440
triggerall = !var(59)
triggerall = statetype != A
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveGuarded
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 400
trigger5 = MoveContact
trigger6 = stateno = 410
trigger6 = MoveContact
trigger7 = stateno = 430
trigger7 = MoveContact


;---------------------------------------------------------------------------
; c. Roundhouse
[State -1]
type = ChangeState
value = 450
triggerall = !var(59)
triggerall = statetype != A
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveGuarded
trigger4 = stateno = 220
trigger4 = MoveContact
trigger5 = stateno = 230
trigger5 = MoveContact
trigger6 = stateno = 240
trigger6 = MoveContact
trigger7 = stateno = 400
trigger7 = MoveContact
trigger8 = stateno = 410
trigger8 = MoveContact
trigger9 = stateno = 420
trigger9 = MoveContact
trigger10 = stateno = 430
trigger10 = MoveContact
trigger11 = stateno = 440
trigger11 = MoveGuarded

;--|[ Jumping ]|--
;---------------------------------------------------------------------------
; j. Jab
[State -1]
type = ChangeState
value = 600
triggerall = !var(59)
triggerall = statetype = A
triggerall = command = "x"
trigger1 = ctrl


;---------------------------------------------------------------------------
; j. Strong
[State -1]
type = ChangeState
value = 610
triggerall = !var(59)
triggerall = statetype = A
triggerall = command = "y"
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = MoveContact
trigger3 = stateno = 630
trigger3 = MoveContact




;---------------------------------------------------------------------------
; j. Fierce
[State -1]
type = ChangeState
value = 620
triggerall = !var(59)
triggerall = statetype = A
triggerall = command = "z"
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = MoveContact
trigger3 = stateno = 610 
trigger3 = MoveContact
trigger4 = stateno = 630 
trigger4 = MoveContact
trigger5 = stateno = 640 
trigger5 = MoveContact



;---------------------------------------------------------------------------
; j. Short
[State -1]
type = ChangeState
value = 630
triggerall = !var(59)
triggerall = statetype = A
triggerall = command = "a"
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = MoveContact



;---------------------------------------------------------------------------
; j. Forward
[State -1]
type = ChangeState
value = 640
triggerall = !var(59)
triggerall = statetype = A
triggerall = command = "b"
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = MoveContact
trigger3 = stateno = 610 
trigger3 = MoveContact
trigger4 = stateno = 630 
trigger4 = MoveContact



;---------------------------------------------------------------------------
; j. Roundhouse
[State -1]
triggerall = !var(59)
type = ChangeState
value = 650
triggerall = statetype = A
triggerall = command = "c"
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = MoveContact
trigger3 = stateno = 610 
trigger3 = MoveContact
trigger4 = stateno = 620 
trigger4 = MoveContact
trigger4 = var(47)=0
trigger5 = stateno = 630 
trigger5 = MoveContact
trigger6 = stateno = 640 
trigger6 = MoveContact




;---------------------------------------------------------------------------
;Taunt
[State -1]
type = ChangeState
value = 195
triggerall = !var(59)
triggerall = command = "s"
triggerall = StateType != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;ダウン回避
----------------------------------------------------------------------------------------
; Recovery Roll
[State -1, Falling]
type = VarSet
triggerall = !var(59)
triggerall = alive
triggerall = (StateNo = 5035) || (StateNo = 5050) || (StateNo = 5071)
triggerall = Stateno != 5040
trigger1 = (Command = "RecoveryRoll")
var(57) = 1

[State -1, Rolling]
type = ChangeState
value = 705
triggerall = !var(59)
triggerall = Var(57) = 1 
triggerall = (StateNo = 5035) || (StateNo = 5050) || (StateNo = 5071)
trigger1 = (Pos Y >= 0) && (Vel Y > 0)

; Recovery Roll
[State -1, Falling]
type = VarSet
triggerall = !var(59)
triggerall = alive
triggerall = (StateNo = 5035) || (StateNo = 5050) || (StateNo = 5071)
triggerall = Stateno != 5040
trigger1 = (Command = "RecoveryRoll2")
var(57) = 2

[State -1, Rolling]
type = ChangeState
value = 706
triggerall = !var(59)
triggerall = Var(57) = 2
triggerall = (StateNo = 5035) || (StateNo = 5050) || (StateNo = 5071)
trigger1 = (Pos Y >= 0) && (Vel Y > 0)

;---------------------------------------------------------------------------
[State -1, Rolling]
type       = ChangeState
triggerall = var(59)=0
triggerall = stateno=5100||stateno=5110||stateno=5120
trigger1   = command="RecoveryRoll"
value      = 705

[State -1, Rolling]
type       = ChangeState
triggerall = var(59)=0
triggerall = stateno=5100||stateno=5110||stateno=5120
trigger1   = command="RecoveryRoll2"
value      = 706


; カウンター
[State -1]
type = ChangeState
value = 2222
triggerall = power > 1000
triggerall = command = "VC1"
trigger1 = stateno = [150,153]
