;-| 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 = "SR"
command = D, DF, F, x+y
time = 30
[Command]
name = "SR"
command = D, DF, F, x+z
time = 30
[Command]
name = "SR"
command = D, DF, F, y+z
time = 30

[Command]
name = "SZ"
command = D, DB, B, a+b
time = 25
[Command]
name = "SZ"
command = D, DB, B, c+b
time = 25
[Command]
name = "SZ"
command = D, DB, B, a+c
time = 25

[Command]
name = "SK"
command = D, DF, F, a+b
time = 20
[Command]
name = "SK"
command = D, DF, F, a+b
time = 20
[Command]
name = "SK"
command = D, DF, F, a+b
time = 20


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

[Command]
name = "hadoux"
command = D, DF, F, x
time = 20
[Command]
name = "hadouy"
command = D, DF, F, y
time = 20
[Command]
name = "hadouz"
command = D, DF, F, z
time = 20

[Command]
name = "sx"
command = F, D, DF, x
time = 25
[Command]
name = "sy"
command = F, D, DF, y
time = 25
[Command]
name = "sz"
command = F, D, DF, z
time = 25

[Command]
name = "ta"
command = D, DB, B, a
time = 25
[Command]
name = "tb"
command = D, DB, B, b
time = 25
[Command]
name = "tc"
command = D, DB, B, c
time = 25

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

[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

[Command] ;Tap b rapidly
name = "5b"
command = a, a, a, a
time = 30

[Command] ;Tap b rapidly
name = "5b"
command = b, b, b, b
time = 30

[Command] ;Tap b rapidly
name = "5b"
command = c, c, c, c
time = 30

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

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

;-| 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 = "up_c"
command = /$U,c
time = 1

[Command]
name = "up_b"
command = /$U,b
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 = "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]
;コマンド------------------------------------------------------------------

;---------------------------------------------------------------------------
; レッパ
[State -1]
type = ChangeState
value = 3000
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = power >= 1000
triggerall = command = "SR"
triggerall = statetype !=A
trigger1 = ctrl
trigger2 = stateno = [200,650]
trigger3 = stateno = [1000,1600]


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

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

;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 = "sx"
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 = "sy"
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 = "sz"
trigger1 = ctrl
trigger2 = stateno = [200,450]


;---------------------------------------------------------------------------
; 空中昇竜X
[State -1]
type = ChangeState
value = 1500
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype = A
triggerall = command = "sx"
trigger1 = ctrl
trigger2 = stateno = [600,651]

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



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

;---------------------------------------------------------------------------
; 波動
[State -1]
type = ChangeState
value = 1000
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype != A
triggerall = command = "hadoux"
trigger1 = ctrl
trigger2 = stateno = [200,450]

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

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

;---------------------------------------------------------------------------
; 空中波動
[State -1]
type = ChangeState
value = 1100
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype = A
triggerall = command = "hadoux"
trigger1 = ctrl
trigger2 = stateno = [600,651]

;---------------------------------------------------------------------------
; 中
[State -1]
type = ChangeState
value = 1110
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype = A
triggerall = command = "hadouy"
trigger1 = ctrl
trigger2 = stateno = [600,651]

;---------------------------------------------------------------------------
; 強
[State -1]
type = ChangeState
value = 1111
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype = A
triggerall = command = "hadouz"
trigger1 = ctrl
trigger2 = stateno = [600,651]


;---------------------------------------------------------------------------
; 竜巻
[State -1]
type = ChangeState
value = 1200
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype != A
triggerall = command = "ta"
trigger1 = ctrl
trigger2 = stateno = [200,450]

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

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

;---------------------------------------------------------------------------
; 空中竜巻
[State -1]
type = ChangeState
value = 1300
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype = A
triggerall = command = "ta"
trigger1 = ctrl
trigger2 = stateno = [600,651]

;---------------------------------------------------------------------------
; 中
[State -1]
type = ChangeState
value = 1301
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype = A
triggerall = command = "tb"
trigger1 = ctrl
trigger2 = stateno = [600,651]

;---------------------------------------------------------------------------
; 強
[State -1]
type = ChangeState
value = 1302
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype = A
triggerall = command = "tc"
trigger1 = ctrl
trigger2 = stateno = [600,651]


;---------------------------------------------------------------------------
; 前転
[State -1]
type = ChangeState
value = 1600
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype != A
triggerall = command = "fr"
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 <= 35
;triggerall = p2dist X > 0
triggerall = p2dist Y <= 50
triggerall = p2dist Y > -50
triggerall = StateNo != [100,107]
triggerall = enemyNear, movetype !=H
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 <= 45
;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 = 802
triggerall = !var(59)
triggerall = StateType = A
triggerall = p2StateType = A
triggerall = command = "holdfwd2" || command = "holdback2"
triggerall = command = "z"
triggerall = p2bodydist X <= 50
triggerall = p2bodydist X >= -5
triggerall = p2bodydist Y <= 60
triggerall = p2bodydist Y > -60
triggerall = enemyNear, StateNo != [120,159]
triggerall = enemyNear, movetype =H
trigger1 = ctrl

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


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

;Super Jump
[State -1]
type = ChangeState
value = 10022
triggerall = !var(59)
triggerall = var(43) = 0
triggerall = statetype!=A
trigger1 = command = "up"
trigger1 = stateno = 420 
trigger1 = movehit = 1
trigger2 = command = "UF"
trigger2 = stateno = 420 
trigger2 = movehit = 1
trigger3 = command = "UB"
trigger3 = stateno = 420 
trigger3 = movehit = 1



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


;--|[ 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 = Movecontact
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 = 241
triggerall = !var(59)
triggerall = statetype != A
triggerall = command = "b" && command = "holdfwd"
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. 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 = Movecontact
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 = Movecontact
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
trigger10 = stateno = 220
trigger10 = 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 = Movecontact
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


;---------------------------------------------------------------------------
; 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 = Movecontact
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 = Movecontact
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 = Movecontact

;--|[ 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
trigger6 = stateno = 641 
trigger6 = 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 = 641
triggerall = !var(59)
triggerall = statetype = A
triggerall = command = "up_b"
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = MoveContact
trigger3 = stateno = 610 
trigger3 = MoveContact
trigger4 = stateno = 630 
trigger4 = 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 Special
[State -1]
type = ChangeState
value = 651
triggerall = !var(59)
triggerall = statetype = A
triggerall = command = "up_c"
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = MoveContact
trigger3 = stateno = 610 
trigger3 = MoveContact
trigger4 = stateno = 620 
trigger4 = MoveContact
trigger5 = stateno = 630 
trigger5 = MoveContact
trigger6 = stateno = 640 || stateno = 641
trigger6 = 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
trigger5 = stateno = 630 
trigger5 = MoveContact
trigger6 = stateno = 640 || stateno = 641
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]
