;==========================================================================
;コマンド関連ファイル
;==========================================================================

;[Remap]
;x = x
;y = y
;z = z
;a = a
;b = b
;c = c
;s = s

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

;AI
[Command]
name = "AI0"
command = a,a
time = 0
[Command]
name = "AI1"
command = b,b
time = 0
[Command]
name = "AI2"
command = c,c
time = 0
[Command]
name = "AI3"
command = x,x
time = 0
[Command]
name = "AI4"
command = y,y
time = 0
[Command]
name = "AI5"
command = z,z
time = 0
[Command]
name = "AI6"
command = s,s
time = 0
[Command]
name = "AI7"
command = F,F
time = 0
[Command]
name = "AI8"
command = D,D
time = 0
[Command]
name = "AI9"
command = B,B
time = 0
[Command]
name = "AI10"
command = U,U
time = 0
[Command]
name = "AI11"
command = a,a
time = 0
[Command]
name = "AI12"
command = c,c
time = 0
[Command]
name = "AI13"
command = x,x
time = 0
[Command]
name = "AI14"
command = y,y
time = 0
[Command]
name = "AI15"
command = z,z
time = 0
[Command]
name = "AI16"
command = s,s
time = 0
[Command]
name = "AI17"
command = a,B
time = 0
[Command]
name = "AI18"
command = a,a
time = 0
[Command]
name = "AI19"
command = b,b
time = 0
[Command]
name = "AI20"
command = c,c
time = 0
[Command]
name = "AI21"
command = x,x
time = 0
[Command]
name = "AI22"
command = y,y
time = 0
[Command]
name = "AI23"
command = z,z
time = 0
[Command]
name = "AI24"
command = s,s
time = 0
[Command]
name = "AI25"
command = F,F
time = 0
[Command]
name = "AI26"
command = D,D
time = 0
[Command]
name = "AI27"
command = B,B
time = 0
[Command]
name = "AI28"
command = U,U
time = 0
[Command]
name = "AI29"
command = a,a
time = 0
[Command]
name = "AI30"
command = c,c
time = 0

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

[Command]
name = "43"
command = /F,U

[Command]
name = "43"
command = /B,U

[Command]
name = "43"
command = U

[Command]
name = "43"
command = D

[Command]
name = "43"
command = F

[Command]
name = "43"
command = B

[Command]
name = "43"
command = /D

[Command]
name = "43"
command = /F

[Command]
name = "43"
command = /B

[Command]
name = "43"
command = /U

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

[Command]
name = "hissatu"
command = D, x+y, c, s
time = 70

[Command]
name = "mugen"
command = B, F, B, F, B, F, B, F, B, F, B, F, B, F, x+y
time = 150

[Command]
name = "hangetu2"
command = D, DF, F, c
time = 60

[Command]
name = "rengeki"
command = D, DF, F, a+b
time = 60

[Command]
name = "pistol"
command = D, DF, F, x+y
time = 60

[Command]
name = "SDMDP"
command = B, B, B, D, D, D, F, x+y
time = 150

[Command]
name = "mangetu"
command = F, DF, D, DB, B, c
time = 60

[Command]
name = "mikazuki"
command = F, DF, D, DB, B, DB, D, DF, F, c
time = 60

[Command]
name = "hangetu"
command = B, DB, D, DF, F, x
time = 60

[Command]
name = "delete"
command = D, DB, B, D, DB, B, x+y
time = 60

[Command]
name = "SPsyott"
command = D, DF, F, a+b
time = 40

[Command]
name = "kuukan"
command = D, DF, F, D, DF, F, x+y
time = 60

[Command]
name = "METEO"
command = D, DB, B, D, DB, B, a+b
time = 60

[Command]
name = "pointo"
command = D, DB, B, D, DB, B, c
time = 60

[Command]
name = "DDD"
command = D, D, D, z
time = 60

[Command]
name = "haA"
command = c, s
time = 20

[Command]
name = "ha"
command = c, z
time = 20

[Command]
name = "sixteen"
command = D, DF, F, D, DF, F, c
time = 60

[Command]
name = "zikuuha"
command = D, DF, F, z
time = 40

[Command]
name = "kuroihosi"
command = D, DB, B, z
time = 40

[Command]
name = "ZANZANZAN"
command = B, B, B, y
time = 40

[Command]
name = "kiriage"
command = D, DF, F, x
time = 40

[Command]
name = "keri"
command = D, DF, F, y
time = 40

[Command]
name = "keri"
command = D, DF, F, x
time = 40

[Command]
name = "murasaki"
command = D, DB, B, b
time = 40

[Command]
name = "tokeru"
command = x+y
time = 5

[Command]
name = "kyakuha"
command = a+b
time = 5

[Command]
name = "2pant1"
command = x, x
time = 15

[Command]
name = "2pant1"
command = y, x
time = 15

[Command]
name = "2pant2"
command = y, y
time = 15

[Command]
name = "2pant2"
command = x, y
time = 15

[Command]
name = "xy"
command = x 
time = 1

[Command]
name = "xy"
command = y
time = 1

[Command]
name = "pant1"
command = x 
time = 1

[Command]
name = "pant2"
command = y
time = 1

[Command]
name = "syottP"
command = z 
time = 1

[Command]
name = "ab"
command = a
time = 1

[Command]
name = "ab"
command = b
time = 1

[Command]
name = "syott1"
command = a
time = 1

[Command]
name = "syott2"
command = b
time = 1

[Command]
name = "syott3"
command = c
time = 1

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

[Command]
name = "/Fz"
command = /F,z
time = 4

[Command]
name = "/Fnagehiki"
command = /F,a+b
time = 4

[Command]
name = "/FnageE"
command = /F,c
time = 4

[Command]
name = "/Fnage"
command = /F,x
time = 4

[Command]
name = "/Fnage"
command = /F,y
time = 4

[Command]
name = "ff"
command = F, F
time = 15

[Command]
name = "bb"
command = B, B
time = 15

[Command]
name = "/DF"
command = /DF
time = 1

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

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

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

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

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

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

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

[Command]
name = "U"
command = U

[Command]
name = "c nagaosi"
command = /c

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery"
command = a+b
time = 1

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

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "fwd_a"
command = /F,a
time = 1

[Command]
name = "fwd_b"
command = /F,b
time = 1

[Command]
name = "fwd_x"
command = /F,x
time = 1

[Command]
name = "fwd_y"
command = /F,y
time = 1


[Command]
name = "downfwd_a"
command = /DF,a
time = 1

[Command]
name = "downfwd_b"
command = /DF,b
time = 1

[Command]
name = "back_x"
command = /B,x
time = 1

[Command]
name = "back_a"
command = /B,a
time = 1

[Command]
name = "back_b"
command = /B,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_z"
command = /$D,z
time = 1

[Command]
name = "fwd_ab"
command = /F, a+b
time = 1

[Command]
name = "back_ab"
command = /B, a+b
time = 1

;-| 攻撃ボタン押しっぱなし |-----------------------------------------------

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

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

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

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

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

[Command]
name = "hold_x"
command = /y
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 = "s"
command = s
time = 1


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

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd";Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback";Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup";Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
command = /$D
time = 1


[Command]
name = "f_a"
command = F, a
time = 15

[Command]
name = "f_b"
command = F, b
time = 15

[Command]
name = "f_c"
command = F, c
time = 15

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


;===========================================================================
;コマンド実行部分（優先順位が高いものを先に表記）
;===========================================================================
;---------------------------------------------------------------------------

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

[State -1, AI]
type = VarSet
trigger1 = Command = "AI0"
trigger2 = Command = "AI1"
trigger3 = Command = "AI2"
trigger4 = Command = "AI3"
trigger5 = Command = "AI4"
trigger6 = Command = "AI5"
trigger7 = Command = "AI6"
trigger8 = Command = "AI7"
trigger9 = Command = "AI8"
trigger10 = Command = "AI9"
trigger11 = Command = "AI10"
trigger12 = Command = "AI11"
trigger13 = Command = "AI12"
trigger14 = Command = "AI13"
trigger15 = Command = "AI14"
trigger16 = Command = "AI15"
trigger17 = Command = "AI16"
trigger18 = Command = "AI17"
trigger19 = Command = "AI18"
trigger20 = Command = "AI19"
trigger21 = Command = "AI20"
trigger22 = Command = "AI21"
trigger23 = Command = "AI22"
trigger24 = Command = "AI23"
trigger25 = Command = "AI24"
trigger26 = Command = "AI25"
trigger27 = Command = "AI26"
trigger28 = Command = "AI27"
trigger29 = Command = "AI28"
trigger30 = Command = "AI29"
trigger31 = Command = "AI30"
var(59) = 1

[State 43]
type = ChangeState
value = 150400
triggerall = Var(44) = 1
triggerall = command = "U"
trigger1 = ctrl = 1

[State 43]
type = ChangeState
value = 150004
triggerall = PalNo = 6
triggerall = Var(43) = 1
triggerall = Var(59) = 0
triggerall = command = "xy"
trigger1 = ctrl = 1

[State 43]
type = ChangeState
value = 150003
triggerall = PalNo = 6
triggerall = Var(43) = 1
triggerall = Var(59) = 0
triggerall = command = "ab"
trigger1 = ctrl = 1

[State 43]
type = ChangeState
value = 150005
triggerall = PalNo = 6
triggerall = Var(43) = 1
triggerall = Var(59) = 0
triggerall = command = "z"
trigger1 = ctrl = 1

[State 43]
type = ChangeState
value = 150006
triggerall = power >= 3000
triggerall = PalNo = 6
triggerall = Var(43) = 1
triggerall = Var(59) = 0
triggerall = command = "c"
trigger1 = ctrl = 1

[State 43]
type = ChangeState
value = 151000
triggerall = PalNo = 6
triggerall = Var(43) = 1
triggerall = command = "43"
trigger1 = ctrl = 1

[State 43]
type = ChangeState
value = 151000
triggerall = PalNo = 6
triggerall = Var(43) = 1
triggerall = command = "ff"
trigger1 = ctrl = 1

[State syoukan]
type = ChangeState
value = 98500
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(25) = 1
triggerall = Var(59) = 0
triggerall = power >= 6000
triggerall = command = "hissatu"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State change2]
type = ChangeState
value = 150000
triggerall = PalNo = 6
triggerall = Var(59) = 0
triggerall = Var(43) = 0
trigger1 = PalNo != 11
trigger1 = power >= 6000
trigger1 = command = "s"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State change1]
type = ChangeState
value = 150007
triggerall = PalNo = 6
triggerall = Var(59) = 0
triggerall = Var(43) = 1
trigger1 = PalNo != 11
trigger1 = command = "s"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State hissatu]
type = ChangeState
value = 98000
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(25) = 0
triggerall = power >= 6000
triggerall = command = "hissatu"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State SDMDP]
type = ChangeState
value = 96000
triggerall = PalNo != 11
triggerall = command = "SDMDP"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State dassyu]
type = ChangeState
value = 100
triggerall = var(43) = 0
triggerall = PalNo != 11
triggerall = PalNo = 6
triggerall = Var(59) = 0
triggerall = command = "syottP"
trigger1 = statetype != C
trigger1 = ctrl = 1

[State hangetu2]
type = ChangeState
value = 91810
triggerall = var(43) = 0
triggerall = PalNo != 11
triggerall = PalNo = 6
triggerall = Var(59) = 0
triggerall = power >= 3000
triggerall = command = "hangetu2"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State rengeki]
type = ChangeState
value = 196010
triggerall = var(43) = 0
triggerall = PalNo != 11
triggerall = PalNo = 6
triggerall = Var(59) = 0
triggerall = power >= 3000
triggerall = command = "rengeki"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State pistol]
type = ChangeState
value = 195040
triggerall = var(43) = 0
triggerall = PalNo != 11
triggerall = PalNo = 6
triggerall = Var(59) = 0
triggerall = power >= 3000
triggerall = command = "pistol"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State mangetu]
type = ChangeState
value = 94500
triggerall = PalNo != 6
triggerall = Var(59) = 0
trigger1 = PalNo != 11
trigger1 = var(6) = 1
trigger1 = var(7) = 1
trigger1 = power >= 8990
trigger1 = command = "mangetu"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State ha]
type = ChangeState
value = 92000
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "haA"
triggerall = var(2) = 1
trigger1 = statetype = S
trigger1 = ctrl = 1

[State ha]
type = ChangeState
value = 2555
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "ha"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State mikazuki]
type = ChangeState
value = 91200
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power >= 6000
triggerall = command = "mikazuki"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State hangetu]
type = ChangeState
value = 91810
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power >= 1000
triggerall = command = "hangetu"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State mugen]
type = ChangeState
value = 75091
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "mugen"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State delete]
type = ChangeState
value = 196
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = 2500 >= life
triggerall = power >= 6000
triggerall = command = "delete"
trigger1 = statetype != A
trigger1 = ctrl = 1

[State BrightnessSword]
type = ChangeState
value = 11212
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = var(2) = 0  
triggerall = statetype = S && ctrl
triggerall = Alive = 1
trigger1 = Life <= lifemax / 3

[State SPsyott]
type = ChangeState
value = 956
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power >= 2000
triggerall = command = "SPsyott"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State kuukan]
type = ChangeState
value = 95939
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = 2000 >= life
triggerall = power >= 9000
triggerall = command = "kuukan"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State METEO]
type = ChangeState
value = 8888
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power >= 3000
triggerall = command = "METEO"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State DDD]
type = ChangeState
value = 5566
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "DDD"
trigger1 = statetype = C
trigger1 = ctrl = 1

[State pointo]
type = ChangeState
value = 2700
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power >= 6000
triggerall = command = "pointo"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State sixteen]
type = ChangeState
value = 95936
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power >= 50
triggerall = command = "sixteen"
trigger1 = statetype != C
trigger1 = ctrl = 1

[State zikuuha]
type = ChangeState
value = 1919
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power >= 500
triggerall = command = "zikuuha"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State kuroihosi]
type = ChangeState
value = 5959
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "kuroihosi"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State ZANZANZAN]
type = ChangeState
value = 7508
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = 1000 >= life
triggerall = power >= 1000
triggerall = command = "ZANZANZAN"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State murasaki]
type = ChangeState
value = 71500
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power >= 2000
triggerall = command = "murasaki"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State kiriage]
type = ChangeState
value = 1500
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power >= 1000
triggerall = command = "kiriage"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State kiriage2]
type = ChangeState
value = 1502
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power >= 200
triggerall = command = "pant1"
triggerall = stateno = 1500
triggerall = movecontact
trigger1 = statetype = S
trigger1 = ctrl = 0

[State kiriage3]
type = ChangeState
value = 1502
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power >= 200
triggerall = command = "pant1"
triggerall = stateno = 1504
triggerall = movecontact
trigger1 = statetype = S
trigger1 = ctrl = 0

[State 2pant1]
type = ChangeState
value = 9175
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "pant1"
triggerall = stateno = 750
trigger1 = statetype = S
trigger1 = ctrl = 0

[State 2pant2]
type = ChangeState
value = 9175
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "pant2"
triggerall = stateno = 750
trigger1 = statetype = S
trigger1 = ctrl = 0

[State 2pant1]
type = ChangeState
value = 9175
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "2pant1"
triggerall = stateno = 750
trigger1 = statetype = S
trigger1 = ctrl = 1

[State 2pant2]
type = ChangeState
value = 9175
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "2pant2"
triggerall = stateno = 750
trigger1 = statetype = S
trigger1 = ctrl = 1

[State tobikeri]
type = ChangeState
value = 91050
triggerall = PalNo != 11
triggerall = Var(59) = 0
triggerall = command = "keri"
trigger1 = statetype = A
trigger1 = ctrl = 1

[State nagehiki]
type = ChangeState
value = 170047
triggerall = power >= 3000
triggerall = p2bodydist x >= 50
triggerall = PalNo != 11
triggerall = Var(59) = 0
triggerall = PalNo != 6
triggerall = command = "/Fnagehiki"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State nage]
type = ChangeState
value = 170045
triggerall = power >= 6000
triggerall = p2bodydist x <= 100
triggerall = PalNo != 11
triggerall = Var(59) = 0
triggerall = command = "/FnageE"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State nage]
type = ChangeState
value = 170043
triggerall = p2bodydist x <= 100
triggerall = PalNo != 11
triggerall = Var(59) = 0
triggerall = command = "/Fnage"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State dassyu]
type = ChangeState
value = 160100
triggerall = var(43) = 0
triggerall = PalNo != 11
triggerall = Var(59) = 0
triggerall = command = "/Fz"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State keri]
type = ChangeState
value = 295010
triggerall = var(43) = 0
triggerall = PalNo != 11
triggerall = PalNo = 6
triggerall = Var(59) = 0
trigger1 = command = "syott1"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = command = "syott2"
trigger2 = statetype = S
trigger2 = ctrl = 1

[State keri]
type = ChangeState
value = 195020
triggerall = var(43) = 0
triggerall = PalNo != 11
triggerall = PalNo = 6
triggerall = Var(59) = 0
trigger1 = command = "syott1"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = command = "syott2"
trigger2 = statetype = C
trigger2 = ctrl = 1

[State kpant]
type = ChangeState
value = 295011
triggerall = var(43) = 0
triggerall = PalNo != 11
triggerall = PalNo = 6
triggerall = Var(59) = 0
trigger1 = command = "syott1"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = command = "syott2"
trigger2 = statetype = A
trigger2 = ctrl = 1

[State pant1]
type = ChangeState
value = 295000
triggerall = var(43) = 0
triggerall = PalNo != 11
triggerall = PalNo = 6
triggerall = Var(59) = 0
trigger1 = command = "pant1"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = command = "pant2"
trigger2 = statetype = S
trigger2 = ctrl = 1

[State pant1]
type = ChangeState
value = 195030
triggerall = var(43) = 0
triggerall = PalNo != 11
triggerall = PalNo = 6
triggerall = Var(59) = 0
trigger1 = command = "pant1"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = command = "pant2"
trigger2 = statetype = C
trigger2 = ctrl = 1

[State pant1]
type = ChangeState
value = 750
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "pant1"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State pant2]
type = ChangeState
value = 750
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = 1000 <= life
triggerall = command = "pant2"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State pantZAN]
type = ChangeState
value = 7509
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = 1000 >= life
triggerall = command = "pant2"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State kpant]
type = ChangeState
value = 295001
triggerall = PalNo != 11
triggerall = PalNo = 6
triggerall = Var(59) = 0
trigger1 = command = "pant1"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = command = "pant2"
trigger2 = statetype = A
trigger2 = ctrl = 1

[State kpant1]
type = ChangeState
value = 751
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "pant1"
trigger1 = statetype = A
trigger1 = ctrl = 1

[State kpant2]
type = ChangeState
value = 751
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = 1000 <= life
triggerall = command = "pant2"
trigger1 = statetype = A
trigger1 = ctrl = 1

[State kpantZAN]
type = ChangeState
value = 7519
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = 1000 >= life
triggerall = command = "pant2"
trigger1 = statetype = A
trigger1 = ctrl = 1

[State syottP]
type = ChangeState
value = 778
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "syottP"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State ksyottP]
type = ChangeState
value = 779
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "syottP"
trigger1 = statetype = A
trigger1 = ctrl = 1

[State syott1]
type = ChangeState
value = 777
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = 1000 <= life
triggerall = command = "syott1"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State syott2RZ]
type = ChangeState
value = 92200
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "syott2"
triggerall = statetype = S
triggerall = ctrl = 1
trigger1 = PalNo = 12
trigger2 = PalNo = 11

[State syott2]
type = ChangeState
value = 777
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "syott2"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State syottTUKI]
type = ChangeState
value = 7779
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = 1000 >= life
triggerall = command = "syott1"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State sitasyott]
type = ChangeState
value = 887
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "syott3"
trigger1 = statetype != C
trigger1 = ctrl = 1

[State kuuki]
type = ChangeState
value = 2222
triggerall = PalNo != 11
triggerall = Var(59) = 0
triggerall = command = "syott3"
trigger1 = statetype = C
trigger1 = ctrl = 1

[State -1, パワー溜め]
type = ChangeState
value = 197000
triggerall = PalNo != 11
triggerall = PalNo = 6
triggerall = var(43) = 0
triggerall = command = "c nagaosi"
triggerall = Life < 2999 
trigger1 = statetype = S && ctrl

[State tokeru]
type = ChangeState
value = 2210
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power >= 500
triggerall = command = "tokeru"
trigger1 = statetype = C
trigger1 = ctrl = 1

[State kyakuha]
type = ChangeState
value = 1222
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "kyakuha"
trigger1 = statetype = C
trigger1 = ctrl = 1

[State kuukiidou]
type = ChangeState
value = 2223
triggerall = PalNo != 11
triggerall = Var(59) = 0
triggerall = command = "syottP"
trigger1 = statetype = C
trigger1 = ctrl = 1

[State ksyott1]
type = ChangeState
value = 677
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = 1000 <= life
triggerall = command = "syott1"
trigger1 = statetype = A
trigger1 = ctrl = 1

[State ksyott2]
type = ChangeState
value = 677
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "syott2"
trigger1 = statetype = A
trigger1 = ctrl = 1

[State ksyottTUKI]
type = ChangeState
value = 6779
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = 1000 >= life
triggerall = command = "syott1"
trigger1 = statetype = A
trigger1 = ctrl = 1

[State s]
type = ChangeState
value = 195
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = command = "s"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State s2]
type = ChangeState
value = 1952
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power <= 8999
triggerall = command = "s"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 195

[State s3]
type = ChangeState
value = 1952
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 0
triggerall = power <= 8999
triggerall = command = "s"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 1952

;前方ダッシュ
[State -1]
type = ChangeState
value = 100
triggerall = Var(59) = 0
trigger1 = command = "ff"
trigger1 = statetype = S
trigger1 = ctrl = 1

;後方ダッシュ
[State -1]
type = ChangeState
value = 105
triggerall = Var(59) = 0
trigger1 = command = "bb"
trigger1 = statetype = S
trigger1 = ctrl = 1

;-----------------------
;AI

;格闘モード２＝Var43が1の状態

[State 43]
type = ChangeState
value = 150004
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = Var(43) = 1
triggerall = Var(59) = 1
triggerall = p2statetype != L 
trigger1 = ctrl
trigger1 = random < 200

[State 43]
type = ChangeState
value = 150003
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = Var(43) = 1
triggerall = Var(59) = 1
triggerall = p2statetype != L 
trigger1 = ctrl
trigger1 = random < 700

[State 43]
type = ChangeState
value = 150005
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = Var(43) = 1
triggerall = Var(59) = 1
triggerall = p2statetype != L 
trigger1 = ctrl
trigger1 = random < 500

;格闘モード２発動
[State change2]
type = ChangeState
value = 150000
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = Var(59) = 1
triggerall = Var(43) = 0
triggerall = PalNo != 11
triggerall = power >= 6000
triggerall = statetype = S
triggerall = p2statetype != L 
triggerall = ctrl
trigger1 = random < 200
trigger1 = PalNo = 6
trigger2 = p2bodydist x = [0,100]
trigger2 = random < 900
trigger2 = PalNo = 6
;trigger3 = p2bodydist x = [0,100]
;trigger3 = random < 500
;trigger3 = PalNo != 6
;trigger3 = var(40) = 2

;他

;満月
[State mangetu]
type = ChangeState
value = 94500
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = PalNo != 6
triggerall = var(59) = 1  
triggerall = statetype = S
triggerall = p2statetype != L 
trigger1 = var(6) = 1
trigger1 = var(7) = 1
trigger1 = PalNo != 11
trigger1 = ctrl
trigger1 = 8999 <= power
trigger1 = random < 600

;三日月
[State mikazuki]
type = ChangeState
value = 91200
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = PalNo != 6
triggerall = PalNo != 11
triggerall = PalNo != 12
triggerall = var(59) = 1  
triggerall = statetype = S
triggerall = p2statetype != L 
triggerall = p2bodydist x >= 100
trigger1 = ctrl
trigger1 = 6000 <= power
trigger1 = random < 150

;半月
[State hangetu]
type = ChangeState
value = 91810
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = PalNo != 11
triggerall = PalNo != 12
triggerall = PalNo != 6
triggerall = var(59) = 1  
triggerall = statetype = S
triggerall = p2statetype != L 
triggerall = p2bodydist x <= 110
trigger1 = ctrl
trigger1 = 3000 <= power
trigger1 = random < 110

;半月（弱）
[State hangetu]
type = ChangeState
value = 91810
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = PalNo = 6
triggerall = Var(43) = 0
triggerall = var(59) = 1  
triggerall = statetype = S
triggerall = p2statetype != L 
triggerall = p2bodydist x = [0,90]
trigger1 = ctrl
trigger1 = 4000 <= power
trigger1 = power <= 6000
trigger1 = random < 110

[State pantZAN]
type = ChangeState
value = 7509
triggerall = alive != 0
triggerall = PalNo != 11
triggerall = 0 <= p2life
triggerall = Var(59) = 1
triggerall = p2statetype != L
triggerall = 1000 >= life
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = random < 300 

;引き寄せ
[State nagehiki]
type = ChangeState
value = 170047
triggerall = power >= 3000
triggerall = alive != 0
triggerall = p2bodydist x >= 150
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = 0 <= p2life
triggerall = p2statetype != L
triggerall = Var(59) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = random < 100 

;投げ E
[State nage]
type = ChangeState
value = 170045
triggerall = power >= 6000
triggerall = alive != 0
triggerall = p2bodydist x <= 100
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = 2000 >= life
triggerall = 5 <= p2life
triggerall = p2statetype != L
triggerall = Var(59) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = random < 160 

;投げ
[State nage]
type = ChangeState
value = 170043
triggerall = alive != 0
triggerall = p2bodydist x <= 105
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = 0 <= p2life
triggerall = p2statetype != L
triggerall = Var(59) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = random < 120 

[State syottTUKI]
type = ChangeState
value = 7779
triggerall = alive != 0
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = 0 <= p2life
triggerall = Var(59) = 1
triggerall = p2statetype != L
triggerall = 1000 >= life
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = random < 300 

;紫色の炎
[State murasaki]
type = ChangeState
value = 71500
triggerall = alive != 0
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 1
triggerall = power >= 2000
triggerall = 0 <= p2life
triggerall = p2statetype != L 
triggerall = p2bodydist x >= 400
trigger1 = ctrl
trigger1 = random < 130 
trigger1 = statetype = S

;空気同化移動
[State kuukiidou]
type = ChangeState
value = 2223
triggerall = alive != 0
triggerall = PalNo != 11
triggerall = 2000 >= life
triggerall = 0 <= p2life
triggerall = p2statetype != L
triggerall = Var(59) = 1
trigger1 = random < 150 
trigger1 = statetype != A
trigger1 = ctrl

[State dassyu]
type = ChangeState
value = 160100
triggerall = alive != 0
triggerall = var(43) = 0
triggerall = PalNo != 11
triggerall = 0 <= p2life
triggerall = Var(59) = 1
triggerall = p2statetype != L
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = random < 300 

;メテオ
[State METEO]
type = ChangeState
value = 8888
triggerall = alive != 0
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 1
triggerall = 0 <= p2life
triggerall = p2bodydist x >= 300
triggerall = p2statetype != L
triggerall = power >= 3000
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = random < 100 

;空中蹴り
[State tobikeri]
type = ChangeState
value = 91050
triggerall = alive != 0
triggerall = PalNo != 11
triggerall = 0 <= p2life
triggerall = p2statetype != L
triggerall = Var(59) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = random < 130 

;レーザー
[State RZ]
type = ChangeState
value = 92200
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = PalNo != 11
triggerall = var(59) = 1  
triggerall = statetype = S
triggerall = p2statetype != L 
triggerall = p2bodydist x >= 1
trigger1 = PalNo = 8
trigger1 = ctrl
trigger1 = random < 710 

;レーザー
[State RZ]
type = ChangeState
value = 92200
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = var(59) = 1  
triggerall = statetype = S
triggerall = p2statetype != L 
triggerall = p2movetype != A 
triggerall = p2bodydist x >= 70
triggerall = p2bodydist y = [-300,300]
trigger1 = PalNo = 11
trigger1 = ctrl
trigger1 = random < 710 
trigger2 = PalNo = 12
trigger2 = ctrl
trigger2 = random < 710 

;跳ね返し
[State ha]
type = ChangeState
value = 92000
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = life <= 500
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = Var(59) = 1
triggerall = p2statetype != L 
triggerall = var(2) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = power <= 3000
trigger1 = random < 150

;挑発
[State s]
type = ChangeState
value = 195
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = PalNo != 6
triggerall = PalNo != 11
triggerall = var(59) = 1  
triggerall = statetype = S
triggerall = p2statetype != L 
triggerall = p2bodydist x = [100,800]
triggerall = p2bodydist y = [-20,50]
trigger1 = ctrl
trigger1 = power <= 3000
trigger1 = random < 10

;液体化
[State tokeru]
type = ChangeState
value = 2210
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = PalNo != 6
triggerall = PalNo != 11
triggerall = var(59) = 1  
triggerall = statetype = S
triggerall = power >= 3000
triggerall = p2statetype != L 
triggerall = p2bodydist x = [0,500]
triggerall = p2bodydist y = [-20,50]
trigger1 = ctrl
trigger1 = random < 100 

;SIXTEEN
[State sixteen]
type = ChangeState
value = 95936
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = var(59) = 1  
triggerall = statetype = S
triggerall = power >= 1000
triggerall = p2statetype != L 
triggerall = p2bodydist x >= 150
triggerall = p2bodydist y = [-300,300]
trigger1 = ctrl
trigger1 = random < 230 

;通常攻撃
[State pant1]
type = ChangeState
value = 750
triggerall = alive != 0
triggerall = 1000 <= life
triggerall = 0 <= p2life
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = var(59) = 1  
triggerall = statetype = S
triggerall = p2statetype != L 
triggerall = p2bodydist x = [0,80]
triggerall = p2bodydist y = [-100,100]
trigger1 = ctrl
trigger1 = random < 250 

;通常攻撃（空中）
[State -1, kpant1]
type = ChangeState
value = 751
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = var(59) = 1  
triggerall = statetype = A
triggerall = p2statetype != L 
triggerall = p2bodydist x = [0,70]
triggerall = p2bodydist y = [-50,50]
trigger1 = ctrl
trigger1 = random < 300 

;ショット
[State -1, syott1]
type = ChangeState
value = 777
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = PalNo != 6
triggerall = PalNo != 11
triggerall = var(59) = 1  
triggerall = statetype = S
triggerall = p2statetype != L 
triggerall = p2movetype != A 
triggerall = p2bodydist x >= 100
triggerall = p2bodydist y = [-200,200]
trigger1 = ctrl
trigger1 = random < 200 

;ダッシュ
[State -1, ff]
type = ChangeState
value = 100
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = PalNo != 11
triggerall = var(59) = 1  
triggerall = Var(43) = 0
triggerall = statetype = S
triggerall = p2statetype != L 
triggerall = p2movetype != A 
triggerall = p2bodydist x >= 400
trigger1 = ctrl
trigger1 = random < 300 

;バックステップ
[State -1, bb]
type = ChangeState
value = 105
triggerall = alive != 0
triggerall = 0 <= p2life
triggerall = PalNo != 11
triggerall = var(59) = 1  
triggerall = statetype = S
triggerall = p2statetype != L 
triggerall = p2bodydist x = [100,300]
trigger1 = ctrl
trigger1 = random < 100 

[State ha]
type = ChangeState
value = 2555
triggerall = PalNo != 11
triggerall = PalNo != 6
triggerall = p2statetype != L 
triggerall = p2movetype = A 
triggerall = p2bodydist x <= -30
triggerall = p2bodydist x >= 300
triggerall = Var(59) = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = random < 180 

;カウンター1
[State -3]
type = ReversalDef
triggerall = var(59) = 1  
triggerall = 2800 >= life
triggerall = 1
triggerall = alive != 0
triggerall = random < 450 
triggerall = P1name = "MUDAI kun"
triggerall = GetHitVar(hitcount) >= 3
trigger1 = stateno = 5000
trigger2 = stateno = 5001
trigger3 = stateno = 5010
trigger4 = stateno = 5011
trigger5 = stateno = 5020
trigger6 = stateno = 5030
trigger7 = stateno = 5035
trigger8 = stateno = 5040
trigger9 = stateno = 5050
trigger10 = stateno = 5070
trigger11 = stateno = 5071
trigger12 = stateno = 5080
trigger13 = stateno = 5081
trigger14 = stateno = 5100
trigger15 = stateno = 5101
trigger16 = stateno = 5110
trigger17 = stateno = 5120
trigger18 = stateno = 5150
trigger19 = stateno = 5200
trigger20 = stateno = 5201
trigger21 = stateno = 5210
reversal.attr = SCA,AA,AT,AP
p1stateno = 160100
ID = 50

;カウンター2
[State -3]
type = ReversalDef
triggerall = var(59) = 1  
triggerall = 2500 >= life
triggerall = 1
triggerall = alive != 0
triggerall = random < 450 
triggerall = P1name = "MUDAI kun"
triggerall = GetHitVar(hitcount) <= 2
triggerall = GetHitVar(fall.damage) >= 800
trigger1 = stateno = 5000
trigger2 = stateno = 5001
trigger3 = stateno = 5010
trigger4 = stateno = 5011
trigger5 = stateno = 5020
trigger6 = stateno = 5030
trigger7 = stateno = 5035
trigger8 = stateno = 5040
trigger9 = stateno = 5050
trigger10 = stateno = 5070
trigger11 = stateno = 5071
trigger12 = stateno = 5080
trigger13 = stateno = 5081
trigger14 = stateno = 5100
trigger15 = stateno = 5101
trigger16 = stateno = 5110
trigger17 = stateno = 5120
trigger18 = stateno = 5150
trigger19 = stateno = 5200
trigger20 = stateno = 5201
trigger21 = stateno = 5210
reversal.attr = SCA,AA,AT,AP
p1stateno = 95939
p2stateno = 820
ID = 50

;カウンター3
[State -3]
type = ReversalDef
triggerall = var(59) = 1  
triggerall = 2500 >= life
triggerall = alive != 0
triggerall = 1
triggerall = random < 400 
triggerall = P1name = "MUDAI kun"
triggerall = GetHitVar(hitcount) <= 2
triggerall = GetHitVar(damage) >= 800
trigger1 = stateno = 5000
trigger2 = stateno = 5001
trigger3 = stateno = 5010
trigger4 = stateno = 5011
trigger5 = stateno = 5020
trigger6 = stateno = 5030
trigger7 = stateno = 5035
trigger8 = stateno = 5040
trigger9 = stateno = 5050
trigger10 = stateno = 5070
trigger11 = stateno = 5071
trigger12 = stateno = 5080
trigger13 = stateno = 5081
trigger14 = stateno = 5100
trigger15 = stateno = 5101
trigger16 = stateno = 5110
trigger17 = stateno = 5120
trigger18 = stateno = 5150
trigger19 = stateno = 5200
trigger20 = stateno = 5201
trigger21 = stateno = 5210
reversal.attr = SCA,AA,AT,AP
p1stateno = 95939
p2stateno = 820
ID = 50

;カウンター4
[State -3]
type = ReversalDef
triggerall = var(59) = 1  
triggerall = 2500 >= life
triggerall = 1
triggerall = alive != 0
triggerall = random < 450 
triggerall = P1name = "MUDAI kun"
trigger1 = stateno = 120
trigger2 = stateno = 121
trigger3 = stateno = 122
trigger4 = stateno = 130
trigger5 = stateno = 131
trigger6 = stateno = 132
trigger7 = stateno = 140
trigger8 = stateno = 141
trigger9 = stateno = 142
trigger10 = stateno = 150
trigger11 = stateno = 151
trigger12 = stateno = 152
triggerall = stateno != 170042
triggerall = stateno != 196010
reversal.attr = SCA,AA,AT,AP
p1stateno = 170042
p2stateno = 820
ID = 50

;カウンター5
[State -3]
type = ReversalDef
triggerall = var(59) = 1  
triggerall = 300 >= life
triggerall = power >= 8000
triggerall = 1
triggerall = alive != 0
triggerall = random < 90 
trigger1 = P1name = "MUDAI"
trigger2 = P1name = "MUDAI kun"
reversal.attr = SCA,AA,AT,AP
p1stateno = 95939
p2stateno = 820
ID = 50

;ショット
[State syott1]
type = ChangeState
value = 887
triggerall = PalNo != 6
triggerall = PalNo != 11
triggerall = var(59) = 1  
triggerall = statetype = A
triggerall = 0 <= p2life
triggerall = alive != 0
triggerall = p2statetype != L 
triggerall = p2bodydist x >= 500
triggerall = p2bodydist y = [-10,100]
trigger1 = ctrl
trigger1 = random < 10 

;タック
;[State syott1]
;type = ChangeState
;value = 
;triggerall = var(59) = 1  
;triggerall = statetype = S
;triggerall = 0 <= p2life
;triggerall = 2000 >= life
;triggerall = alive != 0
;triggerall = p2statetype != L 
;trigger1 = P3name = "MUMEI"
;trigger2 = P3name = "MUMEI kun"
;triggerall = ctrl





 