;------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
[Command]
name = "AIflag1"
command = ~D,DB,B,D,DF,FD,D,DB,B,D,DF,F,D,DF,F,x+y,D,DF,F,D,DF,F,x+y
time = 1

[Command]
name = "AIflag2"
command = ~D,DF,F,D,DF,F,x+y
time = 1

[Command]
name = "AIflag3"
command = ~D,DB,B,D,DF,F,a+b
time = 1

[Command]
name = "AIflag4"
command = ~D,DB,B,D,DF,F,x+y
time = 1

[Command]
name = "AIflag5"
command = ~D,DB,B,D,DB,B,a+b
time = 1

[Command]
name = "AIflag6"
command = ~D,DB,B,D,DB,B,x+y
time = 1

[Command]
name = "AIflag7"
command = ~D,DF,F,D,DF,FD,DF,F,D,DF,F,a+b
time = 1

[Command]
name = "AIflag8"
command = ~D,DF,F,D,DF,FD,DF,F,D,DF,F,x+y
time = 1

[Command]
name = "AIflag9"
command = ~D,DB,B,D,DF,FD,DF,F,D,DF,F,a+b
time = 1

[Command]
name = "AIflag10"
command = ~D,DB,B,D,DF,FD,D,DB,B,D,DF,F,D,DF,F,x+y
time = 1

[Command]
name = "AIflag11"
command = ~D,DB,B,D,DB,D,DB,B,D,BD,DF,F,D,DF,F,a+b
time = 1

[Command]
name = "AIflag12"
command = ~D,DB,B,D,DB,D,DB,B,D,BD,DF,F,D,DF,F,x+y
time = 1

[Command]
name = "AIflag13"
command = ~D,DB,B,D,DB,B,D,D,DF,FD,DF,F,D,DF,F,a+b
time = 1

[Command]
name = "AIflag14"
command = ~D,DB,B,D,DF,FD,DF,D,DB,B,D,F,D,DF,F,x+y
time = 1

[Command]
name = "AIflag15"
command = ~D,DB,B,D,DB,BD,DF,F,D,D,DB,B,D,DF,F,a+b
time = 1

[Command]
name = "AIflag16"
command = ~D,DB,B,D,DB,BD,DF,F,D,DF,F,D,D,DB,DF,F,x+y
time = 1

[Command]
name = "AIflag17"
command = ~D,DB,B,D,DF,FD,D,DB,B,D,D,DB,B,D,DF,FD,DF,F,D,DF,F,x+y
time = 1

[Command]
name = "AIflag18"
command = ~D,DB,B,D,DB,D,D,DB,B,D,DF,FD,DB,B,D,BD,DF,F,D,DF,F,a+b
time = 1

[Command]
name = "AIflag19"
command = ~D,DB,B,D,DB,B,D,DF,FD,D,DB,D,DB,B,D,BD,DF,F,D,DF,F,x+y
time = 1

[Command]
name = "AIflag20"
command = ~D,DB,B,D,DB,B,D,D,DF,FD,DF,F,D,DF,F,D,DB,B,D,DF,FD,a+b
time = 1

[Command]
name = "AIflag21"
command = ~D,DB,B,D,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,x+y
time = 1

[Command]
name = "AIflag22"
command = ~D,DB,B,D,DF,FD,D,DB,B,D,DB,BD,DF,F,D,D,DB,B,D,DF,F,a+b
time = 1

[Command]
name = "AIflag23"
command = ~D,DB,B,D,DB,BD,DF,D,DB,B,D,DF,FD,F,D,B,D,D,DB,B,D,DF,FD,DF,F,D,DF,F,D,D,DB,DF,F,x+y
time = 1

[Command]
name = "AIflag24"
command = ~D,DB,B,D,DF,FD,B,D,D,DB,B,D,DF,FD,DF,F,D,D,DB,B,D,D,DB,B,D,DF,FD,DF,F,D,DF,F,x+y
time = 1

[Command]
name = "AIflag25"
command = ~D,DB,B,D,DB,D,B,D,D,DB,B,D,DF,FD,DF,F,D,D,DB,B,D,DF,FD,DB,B,D,BD,DF,F,D,DF,F,a+b
time = 1

[Command]
name = "AIflag26"
command = ~D,DB,B,D,DB,B,D,DF,FD,D,DB,D,DB,B,D,BD,DF,F,D,DF,F,B,D,D,DB,B,D,DF,FD,DF,F,D,x+y
time = 1

[Command]
name = "AIflag27"
command = ~D,DB,B,D,B,D,D,DB,B,D,DF,FD,DF,F,D,DB,B,D,D,DF,FD,DF,F,D,DF,F,D,DB,B,D,DF,FD,a+b
time = 1

[Command]
name = "AIflag28"
command = ~D,DB,B,D,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,B,D,D,DB,B,D,DF,FD,DF,F,D,x+y
time = 1

[Command]
name = "AIflag29"
command = ~D,DB,B,D,DF,FD,D,DB,B,D,DB,BD,DF,F,D,B,D,D,DB,B,D,DF,FD,DF,F,D,D,DB,B,D,DF,F,a+b
time = 1

[Command]
name = "AIflag30"
command = ~D,DB,B,D,B,D,D,DB,B,D,DF,FD,DF,F,D,DB,BD,DF,D,DB,B,D,DF,FD,F,D,DF,F,D,D,DB,DF,F,x+y
time = 1

[Command]
name = "AIflag31"
command = ~D,DB,B,D,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,x+y
time = 1

[Command]
name = "AIflag32"
command = ~D,DB,B,D,DF,FD,D,DB,B,D,DB,BD,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,F,D,D,DB,B,D,DF,F,a+b
time = 1

[Command]
name = "AIflag33"
command = ~D,DB,B,D,DB,BD,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,D,DB,B,D,DF,FD,F,D,B,D,D,DB,B,D,DF,FD,DF,F,D,DF,F,D,D,DB,DF,F,x+y
time = 1

[Command]
name = "AIflag34"
command = ~D,DB,B,D,DF,FD,B,D,D,DB,B,D,DF,FD,DF,F,D,D,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,DB,B,D,D,DB,B,D,DF,FD,DF,F,D,DF,F,x+y
time = 1

[Command]
name = "AIflag35"
command = ~D,DB,B,D,DB,D,B,D,D,DB,B,D,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,FD,DF,F,D,D,DB,B,D,DF,FD,DB,B,D,BD,DF,F,D,DF,F,a+b
time = 1

[Command]
name = "AIflag36"
command = ~D,DB,B,D,DB,B,D,DF,FD,D,DB,D,DB,B,D,BD,DF,F,D,DF,F,B,D,D,DB,B,D,DF,FD,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,F,D,x+y
time = 1

[Command]
name = "AIflag37"
command = ~D,DB,B,D,B,D,D,DB,B,D,DF,FD,DF,F,D,DB,B,D,D,DF,FD,DF,F,D,DF,F,D,DB,B,D,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,DF,FD,a+b
time = 1

[Command]
name = "AIflag38"
command = ~D,DB,B,D,DF,FD,DF,D,DB,B,D,F,D,DB,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,B,D,DF,FD,D,DF,F,B,D,D,DB,B,D,DF,FD,DF,F,D,x+y
time = 1

[Command]
name = "AIflag39"
command = ~D,DB,B,D,DF,FD,D,DB,B,D,DB,BD,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,F,D,B,D,D,DB,B,D,DF,FD,DF,F,D,D,DB,B,D,DF,F,a+b
time = 1

[Command]
name = "AIflag40"
command = ~D,DB,B,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,D,B,D,D,DB,B,D,DF,FD,DF,F,D,DB,BD,DF,D,DB,B,D,DF,FD,F,D,DF,F,D,D,DB,DF,F,x+y
time = 1

[Command]
name = "AIflag41"
command = ~D,DB,B,D,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,D,DB,B,D,DF,FD,D,DF,F,DF,FD,D,DF,F,x+y
time = 1

[Command]
name = "AIflag42"
command = ~D,DB,B,D,DF,FD,D,DB,B,D,DB,BD,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,F,D,D,DB,D,DB,B,D,DF,FD,D,DF,F,DF,B,D,DF,F,a+b
time = 1

[Command]
name = "AIflag43"
command = ~D,DB,B,D,DB,BD,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DB,B,D,DF,FD,D,DF,F,DF,D,DF,FD,D,DF,F,D,DB,B,D,DF,FD,F,D,B,D,D,DB,B,D,DF,FD,DF,F,D,DF,F,D,D,DB,DF,F,x+y
time = 1

[Command]
name = "AIflag44"
command = ~D,DB,D,DB,B,D,DF,FD,D,DF,F,DF,B,D,DF,FD,B,D,D,DB,B,D,DF,FD,DF,F,D,D,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,DB,B,D,D,DB,B,D,DF,FD,DF,F,D,DF,F,x+y
time = 1

[Command]
name = "AIflag45"
command = ~D,DB,B,D,DB,D,DB,B,D,DF,FD,D,DF,F,DF,D,B,D,D,DB,B,D,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,FD,DF,F,D,D,DB,B,D,DF,FD,DB,B,D,BD,DF,F,D,DF,F,a+b
time = 1

[Command]
name = "AIflag46"
command = ~D,DB,B,D,DB,B,D,DF,FD,D,DB,D,DB,B,D,BD,DF,D,DB,B,D,DF,FD,D,DF,F,DF,F,D,DF,F,B,D,D,DB,B,D,DF,FD,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,F,D,x+y
time = 1

[Command]
name = "AIflag47"
command = ~D,DB,B,D,B,D,D,DB,B,D,DF,D,DB,B,D,DF,FD,D,DF,F,DF,FD,DF,F,D,DB,B,D,D,DF,FD,DF,F,D,DF,F,D,DB,B,D,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,DF,FD,a+b
time = 1

[Command]
name = "AIflag48"
command = ~D,DB,B,D,DF,FD,DF,D,DB,B,D,F,D,DB,FD,DF,D,DB,B,D,F,D,DB,B,D,D,DB,B,D,DF,FD,D,DF,F,DF,DF,FD,D,DF,F,B,D,DF,FD,D,DF,F,B,D,D,DB,B,D,DF,FD,DF,F,D,x+y
time = 1

[Command]
name = "AIflag49"
command = ~D,DB,B,D,DF,FD,D,D,DB,B,D,DF,FD,D,DF,F,DF,DB,B,D,DB,BD,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,F,D,B,D,D,DB,B,D,DF,FD,DF,F,D,D,DB,B,D,DF,F,a+b
time = 1

[Command]
name = "AIflag50"
command = ~D,DB,B,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,D,B,D,D,D,DB,B,D,DF,FD,D,DF,F,DF,DB,B,D,DF,FD,DF,F,D,DB,BD,DF,D,DB,B,D,DF,FD,F,D,DF,F,D,D,DB,DF,F,x+y
time = 1

[Command]
name = "AIflag51"
command = ~D,DB,B,D,FD,DF,D,DB,B,D,F,D,DF,FD,D,DF,F,DF,FD,DF,D,DB,B,D,DF,FD,D,DF,F,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,D,DB,B,D,DF,FD,D,DF,F,DF,FD,D,DF,F,x+y
time = 1

[Command]
name = "AIflag52"
command = ~D,DB,B,D,DF,FD,D,DB,B,D,DB,BD,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,D,DF,FD,D,DF,F,DF,FD,DF,F,F,D,D,DB,D,DB,B,D,DF,FD,D,DF,F,DF,B,D,DF,F,a+b
time = 1

[Command]
name = "AIflag53"
command = ~D,DB,B,D,DB,BD,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DB,B,D,DF,FD,D,DF,F,DF,FD,DF,D,DF,FD,D,DF,F,DF,D,DF,FD,D,DF,F,D,DB,B,D,DF,FD,F,D,B,D,D,DB,B,D,DF,FD,DF,F,D,DF,F,D,D,DB,DF,F,x+y
time = 1

[Command]
name = "AIflag54"
command = ~D,DB,D,DF,FD,D,DF,F,DF,FD,DF,D,DB,B,D,DF,FD,D,DF,F,DF,B,D,DF,FD,B,D,D,DB,B,D,DF,FD,DF,F,D,D,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,DB,B,D,D,DB,B,D,DF,FD,DF,F,D,DF,F,x+y
time = 1

[Command]
name = "AIflag55"
command = ~D,D,DF,FD,D,DF,F,DF,FD,DF,DB,B,D,DB,D,DB,B,D,DF,FD,D,DF,F,DF,D,B,D,D,DB,B,D,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,FD,DF,F,D,D,DB,B,D,DF,FD,DB,B,D,BD,DF,F,D,DF,F,a+b
time = 1

[Command]
name = "AIflag56"
command = ~D,DB,B,D,DB,B,D,DF,FD,D,DB,D,DB,B,D,BD,DF,D,DB,B,D,DF,FD,D,DF,F,DF,F,D,DF,F,B,D,D,DB,B,D,DF,FD,DF,FD,DF,D,DF,FD,D,DF,F,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,F,D,x+y
time = 1

[Command]
name = "AIflag57"
command = ~D,DB,B,D,B,D,D,DB,B,D,DF,D,DB,B,D,DF,FD,D,DF,F,DF,FD,DF,F,D,DB,B,D,D,DF,FD,DF,F,D,DF,F,D,DB,B,D,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,DF,FD,D,DF,FD,D,DF,F,DF,FD,DF,a+b
time = 1

[Command]
name = "AIflag58"
command = ~D,DB,D,DF,FD,D,DF,F,DF,FD,DF,B,D,DF,FD,DF,D,DB,B,D,F,D,DB,FD,DF,D,DB,B,D,F,D,DB,B,D,D,DB,B,D,DF,FD,D,DF,F,DF,DF,FD,D,DF,F,B,D,DF,FD,D,DF,F,B,D,D,DB,B,D,DF,FD,DF,F,D,x+y
time = 1

[Command]
name = "AIflag59"
command = ~D,DB,B,D,DF,D,DF,FD,D,DF,F,DF,FD,DF,FD,D,D,DB,B,D,DF,FD,D,DF,F,DF,DB,B,D,DB,BD,DF,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,F,D,B,D,D,DB,B,D,DF,FD,DF,F,D,D,DB,B,D,DF,F,a+b
time = 1

[Command]
name = "AIflag60"
command = ~D,DB,B,FD,DF,D,DB,B,D,F,D,DB,B,D,DF,FD,D,DF,F,D,B,D,D,DF,FD,D,DF,F,DF,FD,DF,D,D,DB,B,D,DF,FD,D,DF,F,DF,DB,B,D,DF,FD,DF,F,D,DB,BD,DF,D,DB,B,D,DF,FD,F,D,DF,F,D,D,DB,DF,F,x+y
time = 1
;-| キー２回連続入力 |---------------------------------------------------------

[Command]
name = "FF"       ;必須コマンド名
command = F, F
time = 10

[Command]
name = "BB"       ;必須コマンド名
command = B, B
time = 10

;------------------------------------------------------------------------------
;-| 同時押し |-----------------------------------------------------------------

[Command]
name = "recovery" ;必須コマンド名
command = x+y
time = 1

[Command]
name = "ab" ;必須コマンド名
command = a+b
time = 1

;------------------------------------------------------------------------------
;-| 方向キー＋ボタン |---------------------------------------------------------

[Command]
name = "down_a"
command = /$D,a
time = 1

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

[Command]
name = "F_a"
command = /$F,a
time = 1

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

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

[Command]
name = "F_z"
command = /$F,z
time = 1

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

[Command]
name = "B_b"
command = /$B,b
time = 1

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

[Command]
name = "B_z"
command = /$B,z
time = 1
;------------------------------------------------------------------------------
;-| ボタン単発 |---------------------------------------------------------------
[Command]
name = "a"
command = a
time = 1
[Command]
name = "b"
command = b
time = 1
[Command]
name = "c"
command = c
time = 1
[Command]
name = "x"
command = x
time = 1
[Command]
name = "y"
command = y
time = 1
[Command]
name = "z"
command = z
time = 1
[Command]
name = "start"
command = s
time = 1

;判定用[Command]
[Command]
name = "F"
command = $F
time = 1
[Command]
name = "B"
command = $B
time = 1
[Command]
name = "U"
command = $U
time = 1
[Command]
name = "D"
command = $D
time = 1

;人操作フラグ用[Command]：ラベルは同一で問題ない。
[Command]
name = "AI"
command = a
time = 1
[Command]
name = "AI"
command = b
time = 1
[Command]
name = "AI"
command = c
time = 1
[Command]
name = "AI"
command = x
time = 1
[Command]
name = "AI"
command = y
time = 1
[Command]
name = "AI"
command = z
time = 1
[Command]
name = "AI"
command = s
time = 1
[Command]
name = "AI"
command = $F
time = 1
[Command]
name = "AI"
command = $B
time = 1
[Command]
name = "AI"
command = $U
time = 1
[Command]
name = "AI"
command = $D
time = 1

;AI判定用[Command]：ラベルは同一で問題ない。
[Command]
name = "/command"
command = /a
time = 1
[Command]
name = "/command"
command = /b
time = 1
[Command]
name = "/command"
command = /c
time = 1
[Command]
name = "/command"
command = /x
time = 1
[Command]
name = "/command"
command = /y
time = 1
[Command]
name = "/command"
command = /z
time = 1
[Command]
name = "/command"
command = /s
time = 1
[Command]
name = "/command"
command = /$F
time = 1
[Command]
name = "/command"
command = /$B
time = 1
[Command]
name = "/command"
command = /$U
time = 1
[Command]
name = "/command"
command = /$D
time = 1
;------------------------------------------------------------------------------
;-| 方向キー |-----------------------------------------------------------------

[Command]
name = "holdfwd"   ;必須コマンド名
command = /$F
time = 1

[Command]
name = "holdback"  ;必須コマンド名
command = /$B
time = 1

[Command]
name = "holdup"    ;必須コマンド名
command = /$U
time = 1

[Command]
name = "holddown"  ;必須コマンド名
command = /$D
time = 1
;〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜
[Statedef -1]

[State -1,パワーボンバー(噛みつき)]
type = ChangeState
value = 2010
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "F_z"
triggerall = sysfvar(4) >= 1000
trigger1 = statetype = S
trigger1 = ctrl

[State -1,パワーボンバー(ドロップキック)]
type = ChangeState
value = 2300
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "B_z"
triggerall = sysfvar(4) >= 1000
trigger1 = statetype = S
trigger1 = ctrl

[State -1,パワーボンバー(テールアタック)]
type = ChangeState
value = 2000
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "z"
triggerall = sysfvar(4) >= 1000
trigger1 = statetype = S
trigger1 = ctrl

[State -1,ドロップキック]
type = ChangeState
value = 1300
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "B_x"
trigger1 = statetype = S
trigger1 = ctrl

[State -1,スーパーテールアタック(強)]
type = ChangeState
value = 1010
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "F_x"
trigger1 = statetype = S
trigger1 = ctrl

[State -1,スーパーテールアタック(弱)]
type = ChangeState
value = 1000
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "x"
trigger1 = statetype = S
trigger1 = ctrl

[State -1,スーパーテールアタック(弱)]
type = ChangeState
value = 700000
triggerall = !(palno=12||var(36))
triggerall = !numhelper(700102)
triggerall = var(59)<=0
triggerall = command = "y"
trigger1 = statetype = S
trigger1 = ctrl

[State -1,スーパーテールアタック(弱)]
type = ChangeState
value = 700001
triggerall = !(palno=12||var(36))
triggerall = !numhelper(840000)
triggerall = var(59)<=0
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

[State -1,スーパーテールアタック(弱)]
type = ChangeState
value = 700002
triggerall = !(palno=12||var(36))
triggerall = !(numhelper(1206)||numhelper(1207)||numhelper(1208))
triggerall = var(59)<=0
triggerall = command = "c"
trigger1 = statetype = S
trigger1 = ctrl

[State -1,スーパーテールアタック(弱)]
type = ChangeState
value = 6942067
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

[State -1,スーパーテールアタック(空中)]
type = ChangeState
value = 1200
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl

[State -1,投げ ]
type = ChangeState
value = 800
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "ab"
trigger1 = statetype = S
trigger1 = ctrl
;------------------------------------------------------------------------------
;===========================================================================
; 移動関連
;===========================================================================
[State -1, 走る]
type = ChangeState
value = 100
triggerall = !(palno=12||var(36))
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, バックステップ]
type = ChangeState
value = 105
triggerall = !(palno=12||var(36))
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, 挑発]
type = ChangeState
value = ifelse(random%2,195,ifelse(random%2,800000,11120))
triggerall = !(palno=12||var(36))
triggerall = sysfvar(4) >= 1000
triggerall = command = "start"
triggerall = command != "holddown"
triggerall = var(59)<=0
trigger1 = statetype != A
trigger1 = ctrl

[State -1, 挑発]
type = ChangeState
value = 322221
triggerall = !(palno=12||var(36))
triggerall = !numhelper(322222)
triggerall = command = "start"
triggerall = command = "holddown"
triggerall = var(59)<=0
trigger1 = statetype = C
trigger1 = ctrl
;===========================================================================
; 通常攻撃技
;===========================================================================
[State -1,噛みつき(下段)]
type = ChangeState
value = 220
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "F_a"
trigger1 = statetype = S
trigger1 = ctrl

[State -1,テールアタック]
type = ChangeState
value = 230
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "F_b"
trigger1 = statetype = S
trigger1 = ctrl

[State -1,噛みつき(対空)]
type = ChangeState
value = 240
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "B_a"
trigger1 = statetype = S
trigger1 = ctrl

[State -1,テールアタック(対空)]
type = ChangeState
value = 250
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "B_b"
trigger1 = statetype = S
trigger1 = ctrl

[State -1,噛みつき]
type = ChangeState
value = 200
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "a"
trigger1 = statetype = S
trigger1 = ctrl

[State -1,キック]
type = ChangeState
value = 210
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "b"
trigger1 = statetype = S
trigger1 = ctrl
;------------------------------------------------------------------------------
[State -1,しゃがみ噛みつき]
type = ChangeState
value = 400
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

[State -1,しゃがみテールアタック]
type = ChangeState
value = 410
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
;------------------------------------------------------------------------------
[State -1,ジャンプキック]
type = ChangeState
value = 600
triggerall = !(palno=12||var(36))
triggerall = var(59)<=0
triggerall = statetype = A
triggerall = ctrl 
trigger1 = command = "a"
trigger2 = command = "b"
;AI--------------------------------------------------------------------------
;==============================================================================
; 移動関連
;==============================================================================
[State -1, Walk] 
type = ChangeState 
value = 20 
triggerall = !(palno=12||var(36))
triggerall = var(59) = 1 && RoundState = 2 
trigger1 = statetype != A 
trigger1 = ctrl && stateno != 20 
trigger1 = random <= 100 
ctrl = 1 

[State -1, jump] 
type = ChangeState 
value = 40 
triggerall = !(palno=12||var(36))
triggerall = var(59) = 1 && RoundState = 2 
triggerall = statetype != A && ctrl 
triggerall = random <= 100
trigger1 = p2statetype = A && p2movetype = H 
trigger1 = P2BodyDist X = [0,90] 
trigger1 = enemynear,vel Y = [-1,1] 
ctrl = 1 

[State -1, Dash] 
type = ChangeState 
value = 100 
triggerall = !(palno=12||var(36))
triggerall = var(59) = 1 && RoundState = 2
triggerall = statetype != A && ctrl 
triggerall = P2BodyDist X >= 80 && stateno != 100 
trigger1 = p2movetype = I && random <=50 
trigger2 = p2movetype = H 
trigger3 = p2movetype = I && random <=200
trigger3 = (stateno = 800 ) && time >20
ctrl = 1 

[State -1, Back Step] 
type = ChangeState 
value = 105 
triggerall = !(palno=12||var(36))
triggerall = var(59) = 1 && RoundState = 2 
triggerall = statetype != A && ctrl 
triggerall = P2BodyDist X < 50 && BackEdgeBodyDist > 50 
trigger1 = p2statetype = L && life >= lifemax / 2 
ctrl = 1 

[State ]
type = ChangeState
value = ifelse(random%2,195,ifelse(random%2,800000,11120))
triggerall = !(palno=12||var(36))
triggerall = var(59) = 1 && RoundState = 2
triggerall = ctrl && sysfvar(4) >= 1000
triggerall = statetype != A
triggerall = (Pos Y = 0) && (Vel Y = 0)
triggerall = random <= 175
trigger1 = statetype != A

[State ]
type = ChangeState
value = 700000
triggerall = !(palno=12||var(36))
triggerall = var(59) = 1 && RoundState = 2
triggerall = ctrl
triggerall = (Pos Y = 0) && (Vel Y = 0)
triggerall = random <= 200
trigger1 = !numhelper(700102)

[State ]
type = ChangeState
value = 700001
triggerall = !(palno=12||var(36))
triggerall = var(59) = 1 && RoundState = 2
triggerall = ctrl
triggerall = (Pos Y = 0) && (Vel Y = 0)
triggerall = random <= 200
trigger1 = !numhelper(840000)

[State ]
type = ChangeState
value = 700002
triggerall = !(palno=12||var(36))
triggerall = var(59) = 1 && RoundState = 2
triggerall = ctrl
triggerall = (Pos Y = 0) && (Vel Y = 0)
triggerall = random <= 200
trigger1 = !(numhelper(1206)||numhelper(1207)||numhelper(1208))

[State ]
type = ChangeState
value = 322221
triggerall = !(palno=12||var(36))
triggerall = var(59) = 1 && RoundState = 2
triggerall = ctrl
triggerall = (Pos Y = 0) && (Vel Y = 0)
triggerall = random <= 200
trigger1 = !numhelper(322222)

[State ]
type = ChangeState
value = 6942067
triggerall = !(palno=12||var(36))
triggerall = var(59) = 1 && RoundState = 2
triggerall = ctrl && stateno != 6942067
triggerall = statetype != A
triggerall = (Pos Y = 0) && (Vel Y = 0)
triggerall = random <= 125
trigger1 = statetype != A && P2BodyDist X = [-100,100]
;---------------------------------------------------------------------------
[State -1,パワーボンバー(噛みつき)]
type = ChangeState
value = 2010
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [20,100]
triggerall = random <= 800  
triggerall = sysfvar(4) >= 1000
trigger1 = p2statetype != A 
trigger1 = statetype != A 
trigger1 = ctrl 

[State -1,パワーボンバー(テールアタック)]
type = ChangeState
value = 2000
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [-20,40] 
triggerall = random <= 800  
triggerall = sysfvar(4) >= 1000
trigger1 = p2statetype != A
trigger1 = statetype != A 
trigger1 = ctrl 

[State -1,パワーボンバー(ドロップキック)]
type = ChangeState
value = 2300
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [80,180]
triggerall = random <= 800  
triggerall = sysfvar(4) >= 1000
trigger1 = statetype != A 
trigger1 = ctrl 

[State -1,スーパーテールアタック(弱)]
type = ChangeState
value = 1000
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [40,80]
triggerall = random <= 800  
trigger1 = p2statetype != A 
trigger1 = statetype != A 
trigger1 = ctrl && p2movetype != A

[State -1,スーパーテールアタック(強)]
type = ChangeState
value = 1010
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != A 
triggerall = P2BodyDist X = [60,120] 
triggerall = random <= 800  
triggerall = statetype != A 
trigger1 = ctrl && p2movetype != A 

[State -1,ドロップキック]
type = ChangeState
value = 1300
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != A 
triggerall = P2BodyDist X = [80,160] 
triggerall = random <= 800  
triggerall = statetype != A 
trigger1 = ctrl && p2movetype != A 

[State -1,噛みつき]
type = ChangeState
value = 200
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [-20,20] 
triggerall = random <= 800  
trigger1 = p2statetype != A 
trigger1 = statetype != A 
trigger1 = ctrl && p2movetype != A 

[State -1,キック]
type = ChangeState
value = 210
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [20,60] 
triggerall = random <= 800
trigger1 = p2statetype != A   
trigger1 = statetype != A 
trigger1 = ctrl && p2movetype != A 

[State -1,噛みつき(下段)]
type = ChangeState
value = 220
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [-20,20] 
triggerall = statetype != A 
trigger1 = random <= 800  
trigger1 = p2statetype != A 
trigger1 = ctrl && p2movetype != A 
trigger2 = random <= 500  
trigger2 = (stateno = [200,210]) && time > 10
trigger2 = movehit

[State -1,噛みつき(対空)]
type = ChangeState
value = 240
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [-20,20] 
triggerall = statetype != A 
triggerall =  P2BodyDist X < -40
triggerall = p2statetype = A 
trigger1 = random <= 800  
trigger1 = ctrl && p2movetype != A 
trigger2 = random <= 500  
trigger2 = (stateno = [200,210]) && time > 10
trigger2 = movehit

[State -1,テールアタック]
type = ChangeState
value = 230
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [20,60] 
triggerall = statetype != A 
trigger1 = random <= 800  
trigger1 = p2statetype != A 
trigger1 = ctrl && p2movetype != A 
trigger2 = random <= 500  
trigger2 = (stateno = [200,210]) && time > 10
trigger2 = movehit

[State -1,テールアタック(対空)]
type = ChangeState
value = 250
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [20,60] 
triggerall = statetype != A 
triggerall =  P2BodyDist X < -40
triggerall = p2statetype = A 
trigger1 = random <= 800  
trigger1 = ctrl && p2movetype != A 
trigger2 = random <= 500  
trigger2 = (stateno = [200,210]) && time > 10
trigger2 = movehit

[State -1,しゃがみ噛みつき]
type = ChangeState
value = 400
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [-20,20] 
triggerall = statetype != A
trigger1 = random <= 800    
trigger1 = p2statetype != A 
trigger1 = ctrl && p2movetype != A 
trigger2 = random <= 500  
trigger2 = (stateno = [200,230]) && time > 10
trigger2 = movehit

[State -1,しゃがみテールアタック]
type = ChangeState
value = 410
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall =  P2BodyDist X = [-20,40] 
triggerall = statetype != A
trigger1 = random <= 800    
trigger1 = p2statetype != A 
trigger1 = ctrl && p2movetype != A 
trigger2 = random <= 500  
trigger2 = (stateno = [200,230]) && time > 10
trigger2 = movehit

[State -1,スーパーテールアタック(空中)]
type = ChangeState
value = 1200
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [20,60]
triggerall = random <= 800 
trigger1 = statetype = A 
trigger1 = ctrl && p2movetype != A 

[State -1,投げ ]
type = ChangeState
value = 800
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [-20,20] 
triggerall = random <= 500  
triggerall = statetype != A 
triggerall = P2statetype != A
trigger1 = ctrl && p2movetype != A 
trigger2 = (stateno =[200,410]) && time > 10
trigger2 = movecontact
;------------------------------------------------------------------------------
[State -1,ジャンプキック]
type = ChangeState
value = 600
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall = p2statetype != L && P2BodyDist X = [-20,20] 
triggerall = random <= 800  
trigger1 = statetype = A 
trigger1 = ctrl && p2movetype != A 

[State -1, 挑発]
type = ChangeState
value = ifelse(random%2,195,ifelse(random%2,800000,11120))
triggerall = !(palno=12||var(36))
triggerall = var(59)>0 && roundstate = 2
triggerall =  P2BodyDist X = [180,200] 
triggerall = random <= 5 && sysfvar(4) >= 1000
trigger1 = statetype != A
trigger1 = ctrl
;-------------------------------------------------------------------------------
[State -1, Jump Strong Kick]
type = ChangeState
value = 180
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = alive
triggerall = stateno != 170
triggerall = stateno != [180,183]
triggerall = roundstate = 4
trigger1 = win
ignorehitpause = 1

[State -1, Jump Strong Kick]
type = ChangeState
value = 170
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = alive
triggerall = stateno != 170
triggerall = stateno != [180,183]
triggerall = roundstate = 4
trigger1 = !win
ignorehitpause = 1

[State ] ;bullshit
type = ChangeState
triggerall = (palno=12||var(36))
trigger1 = !ishelper
value = 51505
ignorehitpause = 1

[State -1, Jump Strong Kick]
type = ChangeState
value = 5150
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = stateno != 5150
trigger1 = !alive && sysvar(3) >= 1000
trigger2 = loseko
ignorehitpause = 1
