[Command]
name = "cpu"
command = D, F, U, UF, D, F, x+y
time = 0

[Command]
name = "cpu2"
command = B, F, U, DB, D, F, a+b
time = 0

[Command]
name = "cpu3"
command = B, U, DB, D, F, D, c
time = 0

[Command]
name = "cpu4"
command = F, D, UB, F, B, D, a
time = 0

[Command]
name = "cpu5"
command = F+a, b+c+D, c+x+a+UB
time = 0

[Command]
name = "cpu6"
command = F+b+c, D, UB, c+a, c+x+UF
time = 0

[Command]
name = "cpu7"
command = F, U, B, F, UF, U, B, DF, c+z
time = 0

[Command]
name = "cpu8"
command = F, U, B, F, UF, U, B, DU, c+z
time = 0

[Command]
name = "cpu9"
command = F, U, B, F, UF, U, B, D, D, c+z
time = 0

[Command]
name = "cpu10"
command = F, U, B, F, UF, U, B, c+z+UB
time = 0

[Command]
name = "cpu11"
command = F, U, B, F, UF, U, B, c+z+UD
time = 0

[Command]
name = "cpu12"
command = F, U, B, F, UF, U, B, a+b
time = 0

[Command]
name = "cpu13"
command = F, U, B, F, UF, U, B, c+y
time = 0

[Command]
name = "cpu14"
command = F, U, B, F, UF, U, B, c+x
time = 0

[Command]
name = "cpu15"
command = F, U, B, F, UF, U, B, c+b
time = 0

[Command]
name = "cpu16"
command = F, U, B, F, UF, U, B, c+a
time = 0

[Command]
name = "cpu17"
command = F, U, B, F, UF, U, B, c+z+b
time = 0

[Command]
name = "cpu18"
command = F, U, B, F, UF, U, B, c+z+a
time = 0

[Command]
name = "cpu19"
command = F, U, B, F, UF, U, B, c+z+x
time = 0

[Command]
name = "cpu20"
command = F, U, B, F, UF, U, B, c+z+B
time = 0

[Command]
name = "cpu21"
command = F, U, B, F, UF, U, B, c+z+y
time = 0

[Command]
name = "cpu22"
command = F, U, B, F, UF, U, B, a+b
time = 0

[Command]
name = "cpu23"
command = F, U, B, F, UF, U, B, c+y
time = 0

[Command]
name = "cpu24"
command = F, U, B, F, UF, U, B, c+x
time = 0

[Command]
name = "cpu25"
command = F, U, B, F, UF, U, B, c+b
time = 0

[Command]
name = "cpu26"
command = F, U, B, F, UF, U, B, c+a
time = 0

[Command]
name = "cpu27"
command = F, U, B, F, UF, U, B, c+z+b
time = 0

[Command]
name = "cpu28"
command = F, U, B, F, UF, U, B, c+z+a
time = 0

[Command]
name = "cpu29"
command = F, U, B, F, UF, U, B, c+z+x
time = 0

[Command]
name = "cpu30"
command = F, U, B, F, UF, U, B, c+z+B
time = 0

[Command]
name = "cpu31"
command = F, UD, B, F, UF, U, B, c+z+y
time = 0

[Command]
name = "cpu32"
command = F, U, BD, F, UF, U, B, c+z+y
time = 0

[Command]
name = "cpu33"
command = F, UF, B, F, UF, U, B, c+z+y
time = 0

[Command]
name = "cpu34"
command = D, D, D, D, D, D, D, x
time = 1
[Command]
name = "cpu"
command = D, F, U, UF, D, F, x+y
time = 0

[Command]
name = "cpu2"
command = B, F, U, DB, D, F, a+b
time = 0

[Command]
name = "cpu3"
command = B, U, DB, D, F, D, c
time = 0

[Command]
name = "cpu4"
command = F, D, UB, F, B, D, a
time = 0

[Command]
name = "cpu5"
command = F+a, b+c+D, c+x+a+UB
time = 0

[Command]
name = "cpu6"
command = F+b+c, D, UB, c+a, c+x+UF
time = 0

[Command]
name = "cpu7"
command = F, U, B, F, UF, U, B, DF, c+z
time = 0

[Command]
name = "cpu8"
command = F, U, B, F, UF, U, B, DU, c+z
time = 0

[Command]
name = "cpu9"
command = F, U, B, F, UF, U, B, D, D, c+z
time = 0

[Command]
name = "cpu10"
command = F, U, B, F, UF, U, B, c+z+UB
time = 0

[Command]
name = "cpu11"
command = F, U, B, F, UF, U, B, c+z+UD
time = 0

[Command]
name = "cpu12"
command = F, U, B, F, UF, U, B, a+b
time = 0

[Command]
name = "cpu13"
command = F, U, B, F, UF, U, B, c+y
time = 0

[Command]
name = "cpu14"
command = F, U, B, F, UF, U, B, c+x
time = 0

[Command]
name = "cpu15"
command = F, U, B, F, UF, U, B, c+b
time = 0

[Command]
name = "cpu16"
command = F, U, B, F, UF, U, B, c+a
time = 0

[Command]
name = "cpu17"
command = F, U, B, F, UF, U, B, c+z+b
time = 0

[Command]
name = "cpu18"
command = F, U, B, F, UF, U, B, c+z+a
time = 0

[Command]
name = "cpu19"
command = F, U, B, F, UF, U, B, c+z+x
time = 0

[Command]
name = "cpu20"
command = F, U, B, F, UF, U, B, c+z+B
time = 0

[Command]
name = "cpu21"
command = F, U, B, F, UF, U, B, c+z+y
time = 0

[Command]
name = "cpu22"
command = F, U, B, F, UF, U, B, a+b
time = 0

[Command]
name = "cpu23"
command = F, U, B, F, UF, U, B, c+y
time = 0

[Command]
name = "cpu24"
command = F, U, B, F, UF, U, B, c+x
time = 0

[Command]
name = "cpu25"
command = F, U, B, F, UF, U, B, c+b
time = 0

[Command]
name = "cpu26"
command = F, U, B, F, UF, U, B, c+a
time = 0

[Command]
name = "cpu27"
command = F, U, B, F, UF, U, B, c+z+b
time = 0

[Command]
name = "cpu28"
command = F, U, B, F, UF, U, B, c+z+a
time = 0

[Command]
name = "cpu29"
command = F, U, B, F, UF, U, B, c+z+x
time = 0

[Command]
name = "cpu30"
command = F, U, B, F, UF, U, B, c+z+B
time = 0

[Command]
name = "cpu31"
command = F, UD, B, F, UF, U, B, c+z+y
time = 0

[Command]
name = "cpu32"
command = F, U, BD, F, UF, U, B, c+z+y
time = 0

[Command]
name = "cpu33"
command = F, UF, B, F, UF, U, B, c+z+y
time = 0

[Command]
name = "cpu34"
command = D, D, D, D, D, D, D, x
time = 1

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

[Command]
name = "kischineougi"
command = ~D, D, x+y
time = 35

[Command]
name = "ougi"
command = ~D, D, a+b
time = 35

[Command]
name = "hakuraEX"
command = ~D, F, D, F, a+b
time = 35

[Command]
name = "gokusaEX"
command = ~D, F, D, F, x+y
time = 35

[Command]
name = "MAX2C"
command = ~D, B, D, B, x
time = 35

[Command]
name = "MAX2O"
command = ~D, B, D, B, y
time = 35

[Command]
name = "gokusa"
command = ~D, F, D, F, x
time = 35

[Command]
name = "gokusa2"
command = ~D, F, D, F, y
time = 35

[Command]
name = "cj"
command = ~D, D, c
time = 25

[Command]
name = "gc"
command = ~D, F, c
time = 25

[Command]
name = "dwue"
command = ~D, B, c
time = 25

[Command]
name = "sinhakura"
command = ~D, B, D, B, a
time = 35

[Command]
name = "hakura"
command = ~D, F, D, F, a
time = 35

[Command]
name = "hakura2001"
command = ~D, F, D, F, b
time = 35

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

[Command]
name = "taiku1"
command = ~D, B, x
time = 20

[Command]
name = "taiku2"
command = ~D, B, y
time = 20

[Command]
name = "mant1"
command = ~D, F, x
time = 15

[Command]
name = "mant2"
command = ~D, F, y
time = 15

[Command]
name = "he"
command = ~D, B, a
time = 15

[Command]
name = "he2"
command = ~D, B, b
time = 15

[Command]
name = "kage"
command = ~D, F, a
time = 15

[Command]
name = "kage2"
command = ~D, F, b
time = 15


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

[Command]
name = "Hjump"
command = $D, $U
time = 13

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

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

[Command]
name = "x+a"
command = x+a
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

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

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

;---------------------------------------------------------------------------
; 2. State entry
; --------------
; This is where you define what commands bring you to what states.
;
; Each state entry block looks like:
;   [State -1, Label]           ;Change Label to any name you want to use to
;                               ;identify the state with.
;   type = ChangeState          ;Don't change this
;   value = new_state_number
;   trigger1 = command = command_name
;   . . .  (any additional triggers)
;
; - new_state_number is the number of the state to change to
; - command_name is the name of the command (from the section above)
; - Useful triggers to know:
;   - statetype
;       S, C or A : current state-type of player (stand, crouch, air)
;   - ctrl
;       0 or 1 : 1 if player has control. Unless "interrupting" another
;                move, you'll want ctrl = 1
;   - stateno
;       number of state player is in - useful for "move interrupts"
;   - movecontact
;       0 or 1 : 1 if player's last attack touched the opponent
;                useful for "move interrupts"
;
; Note: The order of state entry is important.
;   State entry with a certain command must come before another state
;   entry with a command that is the subset of the first.
;   For example, command "fwd_a" must be listed before "a", and
;   "fwd_ab" should come before both of the others.
;
; For reference on triggers, see CNS documentation.
;
; Just for your information (skip if you're not interested):
; This part is an extension of the CNS. "State -1" is a special state
; that is executed once every game-tick, regardless of what other state
; you are in.


; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]

;===========================================================================
;---------------------------------------------------------------------------
;獄鎖斬陣・砕魂
[State -1, ]
type = ChangeState
value = 3250
triggerall = command = "gokusaEX"
triggerall = (power>=4000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654
trigger11 = movecontact
trigger11 = stateno = 1000
trigger12 = movecontact
trigger12 = stateno = 1001
trigger13 = stateno = 1012
trigger14 = stateno = 1022
trigger15 = time = [16,46]
trigger15 = stateno = 2052
trigger16 = movecontact
trigger16 = stateno = 2063
trigger17 = movecontact
trigger17 = stateno = 3000
trigger18 = movecontact
trigger18 = stateno = 3200

;白羅滅精・金剛破滅
[State -1, ]
type = ChangeState
value = 3110
triggerall = command = "hakuraEX"
triggerall = (power>=4000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654
trigger11 = movecontact
trigger11 = stateno = 1000
trigger12 = movecontact
trigger12 = stateno = 1001
trigger13 = stateno = 1012
trigger14 = stateno = 1022
trigger15 = time = [16,46]
trigger15 = stateno = 2052
trigger16 = movecontact
trigger16 = stateno = 2063
trigger17 = stateno = 3022
trigger18 = stateno = 3102

;極星滅界陣
[State -1, ]
type = ChangeState
value = 3600
triggerall = command = "MAX2O"
triggerall = (power>=3000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654
trigger11 = movecontact
trigger11 = stateno = 1000
trigger12 = movecontact
trigger12 = stateno = 1001
trigger13 = stateno = 1012
trigger14 = stateno = 1022
trigger15 = time = [16,46]
trigger15 = stateno = 2052
trigger16 = movecontact
trigger16 = stateno = 2063
trigger17 = stateno = [120,155]
trigger17 = (power>=4000)||(power=powermax)||(powermax<=0)||(palno=12)

;暗琉天破
[State -1, ]
type = ChangeState
value = 3800
triggerall = command = "MAX2C"
triggerall = (power>=3000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654
trigger11 = movecontact
trigger11 = stateno = 1000
trigger12 = movecontact
trigger12 = stateno = 1001
trigger13 = stateno = 1012
trigger14 = stateno = 1022
trigger15 = time = [16,46]
trigger15 = stateno = 2052
trigger16 = movecontact
trigger16 = stateno = 2063
trigger17 = stateno = [120,155]
trigger17 = (power>=4000)||(power=powermax)||(powermax<=0)||(palno=12)

;獄鎖斬陣・煉獄
[State -1, ]
type = ChangeState
value = 3200
triggerall = command = "gokusa2"
triggerall = (power>=3000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654
trigger11 = movecontact
trigger11 = stateno = 1000
trigger12 = movecontact
trigger12 = stateno = 1001
trigger13 = stateno = 1012
trigger14 = stateno = 1022
trigger15 = time = [16,46]
trigger15 = stateno = 2052
trigger16 = movecontact
trigger16 = stateno = 2063
trigger17 = movecontact
trigger17 = stateno = 3000

;白羅滅精・森羅万象
[State -1, ]
type = ChangeState
value = 3100
triggerall = command = "hakura2001"
triggerall = (power>=3000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654
trigger11 = movecontact
trigger11 = stateno = 1000
trigger12 = movecontact
trigger12 = stateno = 1001
trigger13 = stateno = 1012
trigger14 = stateno = 1022
trigger15 = time = [16,46]
trigger15 = stateno = 2052
trigger16 = movecontact
trigger16 = stateno = 2063
trigger17 = stateno = 3022

;獄鎖斬陣
[State -1, ]
type = ChangeState
value = 3000
triggerall = command = "gokusa"
triggerall = (power>=1000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = statetype != A
triggerall = var(59) = 0
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654
trigger11 = movecontact
trigger11 = stateno = 1000
trigger12 = movecontact
trigger12 = stateno = 1001
trigger13 = stateno = 1012
trigger14 = stateno = 1022
trigger15 = time = [16,46]
trigger15 = stateno = 2052
trigger16 = movecontact
trigger16 = stateno = 2063

;真・白羅滅精
[State -1, ]
type = ChangeState
value = 3050
triggerall = command = "sinhakura"
triggerall = (power>=2000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype != A
trigger1 = ctrl

;白羅滅精
[State -1, ]
type = ChangeState
value = 3020
triggerall = command = "hakura"
triggerall = (power>=1000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654
trigger11 = movecontact
trigger11 = stateno = 1000
trigger12 = movecontact
trigger12 = stateno = 1001
trigger13 = stateno = 1012
trigger14 = stateno = 1022
trigger15 = time = [16,46]
trigger15 = stateno = 2052
trigger16 = movecontact
trigger16 = stateno = 2063

;グランドクロス
[State -1, ]
type = ChangeState
value = 4000
triggerall = command = "gc"
triggerall = (power>=2000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype != A
trigger1 = ctrl

;アクセラレーション・ドゥエ(地上)
[State -1, ]
type = ChangeState
value = 4200
triggerall = command = "dwue"
triggerall = (power>=2000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654
trigger11 = movecontact
trigger11 = stateno = 1000
trigger12 = movecontact
trigger12 = stateno = 1001
trigger13 = stateno = 1012
trigger14 = stateno = 1022
trigger15 = time = [16,46]
trigger15 = stateno = 2052
trigger16 = movecontact
trigger16 = stateno = 2063

;アクセラレーション・ドゥエ(空中)
[State -1, ]
type = ChangeState
value = 4210
triggerall = command = "dwue"
triggerall = (power>=2000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype = A
trigger1 = ctrl

;クロスジャッジメント
[State -1, ]
type = ChangeState
value = 4050
triggerall = command = "cj"
triggerall = (power>=5000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype != A
triggerall = ctrl
trigger1 = life < lifemax/10
trigger2 = palno = 12
trigger3 = numexplod(1300000000)

;キシン流奥義
[State -1, ]
type = ChangeState
value = 6100
triggerall = command = "kischineougi"
triggerall = (power>=5000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype != A
triggerall = ctrl
trigger1 = life < lifemax/10
trigger2 = palno = 12
trigger3 = numexplod(1300000000)

;キシン流奥義
[State -1, ]
type = ChangeState
value = 6110
triggerall = command = "kischineougi"
triggerall = (power>=5000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype = A
triggerall = ctrl
trigger1 = life < lifemax/10
trigger2 = palno = 12
trigger3 = numexplod(1300000000)

;回復奥義
[State -1, ]
type = ChangeState
value = 6000
triggerall = command = "ougi"
triggerall = (power>=4000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype != A
triggerall = ctrl
trigger1 = life < lifemax/5
trigger1 = (sysvar(3)&512)=0
trigger2 = palno = 12
trigger3 = numexplod(1300000000)

;回復奥義
[State -1, ]
type = ChangeState
value = 6010
triggerall = command = "ougi"
triggerall = (power>=4000)||(power=powermax)||(powermax<=0)||(palno=12)
triggerall = var(59) = 0
triggerall = statetype = A
triggerall = ctrl
trigger1 = life < lifemax/5
trigger1 = (sysvar(3)&512)=0
trigger2 = palno = 12
trigger3 = numexplod(1300000000)

;===========================================================================
;===========================================================================
;斬風燕破 鳳牙
[State -1]
type = ChangeState
value = 1010
triggerall = command = "taiku1"
triggerall = var(59) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654


;斬風燕破 翔覇
[State -1]
type = ChangeState
value = 1020
triggerall = command = "taiku2"
triggerall = var(59) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654


;斬風燕破・殺魔
[State -1]
type = ChangeState
value = 1000
triggerall = command = "mant1"
triggerall = var(59) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654


;斬風燕破・叛鏡
[State -1]
type = ChangeState
value = 1001
triggerall = command = "mant2"
triggerall = var(59) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654


;屁
[State -1]
type = ChangeState
value = 2000
triggerall = command = "he"
triggerall = var(59) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654

;屁2
[State -1]
type = ChangeState
value = 2050
triggerall = command = "he2"
triggerall = var(59) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654

;影
[State -1]
type = ChangeState
value = 2010
triggerall = command = "kage"
triggerall = var(59) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654

;影2
[State -1]
type = ChangeState
value = 2060
triggerall = command = "kage2"
triggerall = var(59) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno = 200
trigger3 = movecontact
trigger3 = stateno = [210,211]
trigger4 = movecontact
trigger4 = stateno = 230
trigger5 = movecontact
trigger5 = stateno = 240
trigger6 = movecontact
trigger6 = stateno = 241
trigger7 = movecontact
trigger7 = stateno = 701
trigger8 = movecontact
trigger8 = stateno = 440
trigger9 = movecontact
trigger9 = stateno = 650
trigger10 = movecontact
trigger10 = stateno = 654


;---------------------------------------------------------------------------
;===========================================================================
;---------------------------------------------------------------------------
;色即是空
[State -1,ドゥエ]
type = ChangeState
value = 111
triggerall = var(59) = 0
triggerall = command = "z"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (sysvar(3)&4)
trigger2 = stateno = 112
trigger2 = time > 10

;ドゥエ
[State -1,ドゥエ]
type = ChangeState
value = 101
triggerall = var(59) = 0
trigger1 = command = "c"
trigger1 = statetype != A
trigger1 = ctrl

;Run Fwd
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = var(59) = 0
trigger1 = command = "FF"
trigger1 = statetype != A
trigger1 = ctrl

;Run Fwd
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = var(59) = 0
triggerall = (sysvar(3)&2) = 0
triggerall = command = "FF"
triggerall = statetype != A
triggerall = time
trigger1 = stateno = 112
trigger2 = stateno = 200
trigger3 = stateno = [210,211]
trigger4 = stateno = 230
trigger5 = stateno = 240
trigger6 = stateno = 241
trigger7 = stateno = 440
trigger8 = stateno = 440
trigger9 = stateno = 650
trigger10 = stateno = 654

;---------------------------------------------------------------------------
;Run Back
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = var(59) = 0
triggerall = command = "BB"
triggerall = statetype != A
trigger1 = ctrl

;Run Back
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 106
triggerall = var(59) = 0
triggerall = command = "BB"
triggerall = statetype != A
triggerall = time
trigger1 = stateno = 112
trigger2 = stateno = 200
trigger3 = stateno = [210,211]
trigger4 = stateno = 230
trigger5 = stateno = 240
trigger6 = stateno = 241
trigger7 = stateno = 440
trigger8 = stateno = 440
trigger9 = stateno = 650
trigger10 = stateno = 654

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

;レバー入れ
[State -1, ]
type = ChangeState
value = 700
triggerall = command = "x"
triggerall = statetype != A
triggerall = ctrl
triggerall = var(59) = 0
trigger1 = command = "holdback"
trigger2 = command = "holdfwd"

;レバー入れ2
[State -1, ]
type = ChangeState
value = 701
triggerall = command = "x"
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = command = "holdfwd"
trigger1 = movecontact = 1
trigger1 = stateno = 200
trigger2 = movecontact = 1
trigger2 = stateno = [210,211]
trigger3 = movecontact = 1
trigger3 = stateno = 230
trigger4 = movecontact = 1
trigger4 = stateno = 240
trigger5 = movecontact = 1
trigger5 = stateno = 241
trigger6 = movecontact = 1
trigger6 = stateno = 440
trigger7 = movecontact = 1
trigger7 = stateno = 650
trigger8 = movecontact = 1
trigger8 = stateno = 654

;レバー入れ2
[State -1, ]
type = ChangeState
value = 701
triggerall = command = "x"
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = command = "holdback"
trigger1 = movecontact = 1
trigger1 = stateno = 200
trigger2 = movecontact = 1
trigger2 = stateno = [210,211]
trigger3 = movecontact = 1
trigger3 = stateno = 230
trigger4 = movecontact = 1
trigger4 = stateno = 240
trigger5 = movecontact = 1
trigger5 = stateno = 241
trigger6 = movecontact = 1
trigger6 = stateno = 440
trigger7 = movecontact = 1
trigger7 = stateno = 650
trigger8 = movecontact = 1
trigger8 = stateno = 654

;ふっ飛ばし2
[State -1, Standing Strong Kick]
type = ChangeState
value = 654
triggerall = command = "y+b"
triggerall = var(59) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 150 || stateno = 151) && power >= 500

;ふっ飛ばし
[State -1, Standing Strong Kick]
type = ChangeState
value = 650
triggerall = command = "x+a"
trigger1 = statetype = S
triggerall = var(59) = 0
trigger1 = ctrl
trigger2 = (stateno = 150 || stateno = 151) && power >= 500

;---------------------------------------------------------------------------
;投げ
[State -1,Throw]
type = ChangeState
value = 800
triggerall = command = "b"
triggerall = statetype = S
triggerall = ctrl
triggerall = var(59) = 0
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 5
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 5
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

;投げ2
[State -1,Throw]
type = ChangeState
value = 801
triggerall = command = "y"
triggerall = var(59) = 0
triggerall = statetype = S
triggerall = ctrl
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 5
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, Jump Light Kick]
type = ChangeState
value = 670
triggerall = command = "a"
triggerall = command ="holddown"
triggerall = var(59) = 0
trigger1 = statetype = A
trigger1 = ctrl

[State -1, Jump Strong Kick]
type = ChangeState
value = 671
triggerall = command = "b"
triggerall = command ="holddown"
triggerall = var(59) = 0
trigger1 = statetype = A
trigger1 = ctrl

[State -1, Standing Strong Kick]
type = ChangeState
value = 672
triggerall = command = "c"
triggerall = command ="holddown"
triggerall = var(59) = 0
trigger1 = statetype = A
trigger1 = ctrl

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

;===========================================================================
;---------------------------------------------------------------------------

;Stand Light Punch
;立ち弱パンチ
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = var(59) = 0
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Stand Strong Punch
;立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = command = "y"
trigger1 = statetype = S
triggerall = var(59) = 0
triggerall = p2bodydist X > 30
trigger1 = ctrl

;Stand Strong Punch
;立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 211
triggerall = command = "y"
triggerall = var(59) = 0
trigger1 = statetype = S
trigger1 = ctrl
triggerall = p2bodydist X <= 30

;---------------------------------------------------------------------------
;Stand Light Kick
;立ち弱キック
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = var(59) = 0
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;遠距離立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = var(59) = 0
triggerall = p2bodydist X > 30
trigger1 = statetype = S
trigger1 = ctrl

;近距離立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 241
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = p2bodydist X <= 30
triggerall = var(59) = 0
trigger1 = statetype = S
trigger1 = ctrl


;---------------------------------------------------------------------------
;Taunt
;挑発
[State -1, Taunt]
type = ChangeState
value = 195+random%2
triggerall = command = "start"
triggerall = var(59) = 0
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;しゃがみ弱パンチ
[State -1, Crouching Light Punch]
type = ChangeState
value = 430
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = var(59) = 0
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 430
trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;しゃがみ強パンチ
[State -1, Crouching Strong Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = var(59) = 0
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
;Crouching Light Kick
;しゃがみ弱キック
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = var(59) = 0
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 430
trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;Crouching Strong Kick
;しゃがみ強キック
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = var(59) = 0
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
[State -1, Jump Strong Kick]
type = ChangeState
value = 651
triggerall = command = "c" || command = "y+b"
triggerall = var(59) = 0
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
triggerall = var(59) = 0
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "y"
triggerall = var(59) = 0
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = command = "a"
triggerall = var(59) = 0
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump Strong Kick
;空中強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = command = "b"
triggerall = var(59) = 0
trigger1 = statetype = A
trigger1 = ctrl





