;-| デフォルト設定 |----------------------------------------------------------- 

[Remap]
x = x  ;クイック
y = y  ;a+b
z = z  ;d
a = a  ;a
b = b  ;b
c = c  ;c
s = s  ;挑発

[Defaults]
command.time = 20
command.buffer.time = 1
;------------------------------------------------------------------------------
;-| 超必殺技 |-----------------------------------------------------------------

[Command]
name = "41236c"
command = ~B,DB,D,DF,F,c

[Command]
name = "63214c"
command = ~F,DF,D,DB,B,c

;------------------------------------------------------------------------------
;-| 必殺技 |-------------------------------------------------------------------

[Command]
name = "623a"
command = ~F, D, DF, a

[Command]
name = "623b"
command = ~F, D, DF, b

[Command]
name = "623c"
command = ~F, D, DF, c

;***********************************
[Command]
name = "421a"
command = ~B, D, DB, a

[Command]
name = "421b"
command = ~B, D, DB, b
[Command]
name = "421c"
command = ~B, D, DB, c

;***********************************
[Command]
name = "236a"
command = ~D, DF, F, a

[Command]
name = "236b"
command = ~D, DF, F, b

[Command]
name = "236c"
command = ~D, DF, F, c

;***********************************
[Command]
name = "214a"
command = ~D, DB, B, a

[Command]
name = "214b"
command = ~D, DB, B, b

[Command]
name = "214c"
command = ~D, DB, B, c

[Command]
name = "214z"
command = ~D, DB, B, z

;***********************************
[Command]
name = "22a"
command = ~D, D, a

[Command]
name = "22b"
command = ~D, D, b

[Command]
name = "22c"
command = ~D, D, c

;***********************************
;------------------------------------------------------------------------------
;-| キー２回連続入力 |---------------------------------------------------------

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

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

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

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

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

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

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

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

[Command]
name = "a+z" 
command = a+z
time = 2

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

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

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

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

[Command]
name = "2c"
command = /$D,c
time = 1

[Command]
name = "2x"
command = /$D,x
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 = "holda"
command = /a
time = 1

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

[Command]
name = "holdc"
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 = "holdx"
command = /x
time = 1

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

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

[Command]
name = "start"
command = s
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

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

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

[Command]
name = "29"
command = $D,UF

[Command]
name = "28"
command = $D,U

[Statedef -1] ;必須項目

;===========================================================================
; アークドライブ
;===========================================================================

[state -1, アークドライブ]
type = changestate
value = 9000
triggerall = (command = "41236c")
triggerall = ((var(30) = [1,2]) && (var(59) = 1)) || ((power = [powermax/3,powermax)) && (var(59) = 0))
trigger1 = (statetype = s) && (ctrl)
trigger2 = (movecontact > 1) && (stateno = [200,599])
trigger3 = stateno = [1000,2999]

[state -1, アークドライブ（blood heat）]
type = changestate
value = 9100
triggerall = (command = "41236c")
triggerall = ((var(30) = 3) && (var(59) = 1)) || ((power = powermax) && (var(59) = 0))
trigger1 = (statetype = s) && (ctrl)
trigger2 = (movecontact > 1) && (stateno = [200,599])
trigger3 = stateno = [1000,2999]

;===========================================================================
; 必殺技
;===========================================================================
;***********************************

[state -1, aワールウインドスプリング]
type = changestate
value = 1100
triggerall = command = "623a"
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, bワールウインドスプリング]
type = changestate
value = 1110
triggerall = (command = "623b") || ((command = "623c") && (power < 1000) && (var(30) = 0))
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, cワールウインドスプリング]
type = changestate
value = 2150
triggerall = (var(31) >= 1000) || (var(30) = [1,3])
triggerall = (command = "623c")
triggerall = statetype != a
trigger1 = ctrl
trigger2 =(movecontact > 1) && (stateno = [200,599])
trigger3 = (stateno = [1000,1999]) && (movetype = I)

;***********************************

[state -1, 地上aサマーレッド]
type = changestate
value = 1000
triggerall = command = "236a"
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, 地上bサマーレッド]
type = changestate
value = 1010
triggerall = (command = "236b") || ((command = "236c") && (power < 1000) && (var(30) = 0))
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, 地上cサマーレッド]
type = changestate
value = 2020
triggerall = ((power >= 1000) && (var(30) = 0)) || (var(30) = [1,3])
triggerall = (command = "236c")
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])
trigger3 = (statetype = s) && (stateno = [1000,1999]) && (movetype = I)

[state -1, 空中aサマーレッド]
type = changestate
value = 1050
triggerall = command = "236a"
triggerall = statetype = a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [600,799])

[state -1, 空中bサマーレッド]
type = changestate
value = 1060
triggerall = (command = "236b") || ((command = "236c") && (power < 1000) && (var(30) = 0))
triggerall = statetype = a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [600,799])

[state -1, 空中cサマーレッド]
type = changestate
value = 2070
triggerall = ((power >= 1000) && (var(30) = 0)) || (var(30) = [1,3])
triggerall = command = "236c"
triggerall = statetype = a
trigger1 = ctrl
trigger2 = stateno = [600,799]
trigger3 = (stateno = [1000,1999]) && (movetype = I)

;***********************************

[state -1, aウィンターエレメント設置]
type = changestate
value = 1200
triggerall = (command = "22a") && (var(21) = 0) && (numhelper(3200) = 0)
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, bウィンターエレメント設置]
type = changestate
value = 1210
triggerall = (var(21) = 0) && (numhelper(3200) = 0)
triggerall = (command = "22b") || ((command = "22c") && (power < 1000) && (var(30) = 0))
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, cウィンターエレメント設置]
type = changestate
value = 2250
triggerall = ((power >= 1000) && (var(30) = 0)) || (var(30) = [1,3])
triggerall = (command = "22c") && (var(21) = 0) && (numhelper(3200) = 0)
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])
trigger3 = (statetype = s) && (stateno = [1000,1999]) && (movetype = I)

[state -1, ウィンターエレメント発動]
type = changestate
value = 1201
triggerall = var(21) = 1
triggerall = (command = "22a") || (command = "22b") || (command = "22c")
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])

;***********************************

[state -1, aエメラルドシティ]
type = changestate
value = 1300
triggerall = command = "421a"
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, bエメラルドシティ]
type = changestate
value = 1301
triggerall = (command = "421b") || ((command = "421c") && (power < 1000) && (var(30) = 0))
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, cエメラルドシティ]
type = changestate
value = 2350
triggerall = ((power >= 1000) && (var(30) = 0)) || (var(30) = [1,3])
triggerall = (command = "421c")
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])
trigger3 = (stateno = [1000,1999]) && (movetype = I)

;***********************************

[state -1, 地上aフォールスラッシャー]
type = changestate
value = 1400
triggerall = (command = "214a")
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, 地上bフォールスラッシャー]
type = changestate
value = 1410
triggerall = (command = "214b") || ((command = "214c") && (((power < 1000) && (var(30) = 0)) || (numhelper(3450) != 0)))
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, 地上cフォールスラッシャー]
type = changestate
value = 2420
triggerall = ((power >= 1000) && (var(30) = 0)) || (var(30) = [1,3])
triggerall = (command = "214c") && (numhelper(3450) = 0)
triggerall = statetype != a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [200,599])
trigger3 = (stateno = [1000,1999]) && (movetype = I)

[state -1, 空中aフォールスラッシャー]
type = changestate
value = 1450
triggerall = command = "214a"
triggerall = statetype = a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [600,799])

[state -1, 空中bフォールスラッシャー]
type = changestate
value = 1460
triggerall = (command = "214b") || ((command = "214c") && (power < 1000) && (var(30) = 0))
triggerall = statetype = a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [600,799])

[state -1, 空中cフォールスラッシャー]
type = changestate
value = 2470
triggerall = ((power >= 1000) && (var(30) = 0)) || (var(30) = [1,3])
triggerall = command = "214c"
triggerall = statetype = a
trigger1 = ctrl
trigger2 = stateno = [600,799]
trigger3 = (stateno = [1000,1999]) && (movetype = I)

;===========================================================================
; 移動関連
;===========================================================================

[state -1, ハイジャンプ]
type = changestate
value = 41
triggerall = command = "28"
trigger1 = (ctrl) && (statetype = s)

[state -1, ハイジャンプ]
type = changestate
value = 42
triggerall = command = "29"
trigger1 = (ctrl) && (statetype = s)
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, 走る]
type = changestate
value = 100
triggerall = (command = "FF") || ((command = "a+b") && (command = "holdfwd")) || ((command = "y") && (command = "holdfwd"))
trigger1 = (statetype = s) && (ctrl)

[state -1, バックステップ]
type = changestate
value = 105
triggerall = (command = "BB") || ((command = "a+b") && (command ="holdback")) || ((command = "y") && (command ="holdback"))
trigger1 = (statetype = s) && (ctrl)


[state -1, ジャンプ]
type = changestate
value = 40
triggerall = (command = "holdup") && (roundstate = 2)
trigger1 = (movecontact > 1) && (stateno = [200,599])

[state -1, 空中ジャンプ]
type = changestate
value = 45
triggerall = (command = "up") && (var(10) = 0)
trigger1 = (movecontact > 1) && (stateno = [600,799])

[state -1, 空中ダッシュ（前）]
type = changestate
value = 55
triggerall = (statetype = a) && (var(12) = 0)
triggerall = (command = "FF") || ((command = "a+b") && (command = "holdfwd")) || ((command = "y") && (command = "holdfwd"))
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [600,799])

[state -1, 空中ダッシュ（後ろ）]
type = changestate
value = 56
triggerall = (statetype = a) && (var(12) = 0)
triggerall = (command = "BB") || ((command = "a+b") && (command = "holdback")) || ((command = "y") && (command = "holdback"))
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [600,799])

;===========================================================================
; 特殊技
;===========================================================================
[state -1, 前投げ]
type = changestate
value = 800
triggerall = ((command = "holdfwd") && (command = "a+z")) || ((command = "holdfwd") && (command = "x"))
triggerall = (command != "holdback") && (command != "holddown")
triggerall = statetype = s
trigger1 = ctrl

[state -1, 後投げ]
type = changestate
value = 801
triggerall = ((command = "holdback") && (command = "a+z")) || ((command = "holdback") && (command = "x"))
triggerall = (command != "holdfwd") && (command != "holddown")
triggerall = statetype = s
trigger1 = ctrl

[state -1, 空前投げ]
type = changestate
value = 850
triggerall = (statetype = a) && (command != "holddown") && (command = "holdfwd")
triggerall = (command = "a+z") || (command = "x")
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [600,799])

[state -1, 空後投げ]
type = changestate
value = 851
triggerall = (statetype = a) && (command != "holddown") && (command = "holdback")
triggerall = (command = "a+z") || (command = "x")
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [600,799])

[state -1, 回避]
type = changestate
value = 7070
triggerall = statetype != a
triggerall = (command != "holdfwd") && (command != "holdback")
triggerall = command = "holddown"
triggerall = (command = "a+z") || (command = "x")
trigger1 = ctrl

[state -1, 空中回避]
type = changestate
value = 7080
triggerall = statetype = a
triggerall = (command != "holdfwd") && (command != "holdback")
triggerall = command = "holddown"
triggerall = (command = "a+z") || (command = "x")
trigger1 = ctrl

[state -1, シールドバンカー]
type = changestate
value = 7050
triggerall = statetype != a
triggerall = movetype != h
triggerall = command = "214z"
trigger1 = ctrl

[state -1, ガードキャンセルシールドバンカー]
type = changestate
value = 7060
triggerall = movetype = h
triggerall = stateno = [150,153]
trigger1 = command = "214z"
trigger1 = power >= 500

[state -1, 立シールド]
type = changestate
value = 7000
triggerall = statetype = s
triggerall = command != "holddown"
triggerall = command = "z"
trigger1 = ctrl

[state -1, 屈シールド]
type = changestate
value = 7010
triggerall = statetype = c
triggerall = command = "holddown"
triggerall = command = "z"
trigger1 = ctrl

[state -1, 空シールド]
type = changestate
value = 7020
triggerall = statetype = a
triggerall = command = "z"
trigger1 = ctrl

[state -1, 強制解放（heat）]
type = changestate
value = 7030
triggerall = var(59) = 1
triggerall = (command != "holdfwd") && (command != "holdback") && (command != "holddown")
triggerall = statetype = s
triggerall = (command = "x") || (command = "a+b+c")
triggerall = var(30) = 0
triggerall = power >= 1000
trigger1 = ctrl

[state -1, 強制解放（blood heat）]
type = changestate
value = 7031
triggerall = var(59) = 1
triggerall = statetype = s
triggerall = (command = "x") || (command = "a+b+c")
triggerall = var(30) = 1
triggerall = var(30) != 2
trigger1 = ctrl

[state -2, サーキットスパーク]
type = changestate
value = 7040
triggerall = statetype != a
triggerall = (movetype = h) || (stateno = [120,159])
triggerall = (command = "x") || (command = "a+b+c")
trigger1 = (var(30) = 1) && (var(59) = 1)
trigger2 = (var(30) = 3) && (var(59) = 1)
trigger3 = (power = powermax) && (var(59) = 0)

[state -2, 空中サーキットスパーク]
type = changestate
value = 7041
triggerall = statetype = a
triggerall = (movetype = h) || (stateno = [120,159])
triggerall = (command = "x") || (command = "a+b+c")
trigger1 = (var(30) = 1) && (var(59) = 1)
trigger2 = (var(30) = 3) && (var(59) = 1)
trigger3 = (power = powermax) && (var(59) = 0)

;===========================================================================
; 地上技
;===========================================================================

[state -1, a]
type = changestate
value = 200
triggerall = (command = "a") && (command != "holddown")
trigger1 = (statetype = s) && (ctrl)
trigger2 = (stateno = 200) && (animelemtime(3) > 1)
trigger3 = (movecontact > 1) && (stateno = [210,399])
trigger4 = (stateno = 400) && (animelemtime(2) > 1)
trigger5 = (movecontact > 1) && (stateno = [410,599])

[state -1, b]
type = changestate
value = 210
triggerall = (command = "b") && (command != "holddown") && (var(1)%10 = 0)
trigger1 = (statetype = s) && (ctrl)
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, bb]
type = changestate
value = 240
triggerall = (command = "b") && (command != "holddown")
trigger1 = (movecontact > 1) && (stateno = 210)

[state -1, c]
type = changestate
value = 220
triggerall = (command = "c") && (command != "holddown") && (command != "holdfwd") && (var(2)%10 = 0)
trigger1 = (statetype = s) && (ctrl)
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, 6c]
type = changestate
value = 230
triggerall = (command = "c") && (command = "holdfwd") && (floor(var(2)/10)%10 = 0)
trigger1 = (statetype = s) && (ctrl)
trigger2 = (movecontact > 1) && (stateno = [200,599])

;===========================================================================
; しゃがみ技
;===========================================================================

[state -1, 2a]
type = changestate
value = 400
triggerall = (command = "a") && (command = "holddown")
trigger1 = (statetype = c) && (ctrl)
trigger2 = (stateno = 200) && (animelemtime(3) > 1)
trigger3 = (movecontact > 1) && (stateno = [210,399])
trigger4 = (stateno = 400) && (animelemtime(2) > 1)
trigger5 = (movecontact > 1) && (stateno = [410,599])

[state -1, 2b]
type = changestate
value = 410
triggerall = (command = "b") && (command = "holddown") && (floor(var(1)/10)%10 = 0) && (stateno != 410)
trigger1 = (statetype = c) && (ctrl)
trigger2 = (movecontact > 1) && (stateno = [200,599])

[state -1, 2b]
type = changestate
value = 420
triggerall = (command = "c") && (command = "holddown") && (floor(var(2)/100)%10 = 0) && (stateno != 420)
trigger1 = (statetype = c) && (ctrl)
trigger2 = (movecontact > 1) && (stateno = [200,599])

;===========================================================================
; 空中技
;===========================================================================

[state -1, 空a]
type = changestate
value = 600
triggerall = command = "a"
triggerall = statetype = a
trigger1 = ctrl
trigger2 = (stateno = 600) && (animelemtime(2) > 1)
trigger3 = (movecontact > 1) && (stateno = [610,799])
trigger4 = (stateno = 630) && (animelemtime(5) > 1)

[state -1, 空b]
type = changestate
value = 610
triggerall = (command = "b") && (floor(var(1)/100)%10 = 0) && (stateno != 610)
triggerall = statetype = a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [600,799])
trigger3 = (stateno = 630) && (animelemtime(5) > 1)

[state -1, 空c]
type = changestate
value = 620
triggerall = (command = "c") && (command != "holddown") && (command != "holdback") && (floor(var(2)/1000)%10 = 0) && (stateno != 620)
triggerall = statetype = a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [600,799])
trigger3 = (stateno = 630) && (animelemtime(5) > 1)

[state -1, 空2c]
type = changestate
value = 625
triggerall = (command = "c") && (command = "holddown") && (command != "holdback") && (floor(var(2)/10000)%10 = 0) && (stateno != 625)
triggerall = statetype = a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [600,799])
trigger3 = (stateno = 630) && (animelemtime(5) > 1)

[state -1, 空4c]
type = changestate
value = 630
triggerall = (command = "c") && (floor(var(2)/100000)%10 = 0) && (stateno != 630)
triggerall = (command != "holddown") && (command = "holdback")
triggerall = statetype = a
trigger1 = ctrl
trigger2 = (movecontact > 1) && (stateno = [600,799])

;===========================================================================
; リバーサルアタック／シールドキャンセル
;===========================================================================

[state -1, リバーサルアタック振り向き]
type = turn
trigger1 = stateno = 5120
trigger1 = animtime = 0
trigger1 = p2dist x < 0

[state -1, リバーサルアタック]
type = changestate
triggerall = var(13) != 0
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animtime = 0
value = var(13)

[state -1, 地上EXシールドキャンセル]
type = changestate
triggerall = var(13) != 0
triggerall = statetype != a
trigger1 = (stateno = 7002) || (stateno = 7012)
trigger1 = time = 1
value = var(13)

[state -1, シールドキャンセル]
type = changestate
triggerall = (var(13) = [1000,2999]) || (var(13) = [9000,9999])
triggerall = statetype != a
trigger1 = (stateno = 7003) || (stateno = 7013)
trigger1 = time = 1
value = var(13)

[state -1, 空中EXシールドキャンセル]
type = changestate
triggerall = var(13) != 0
triggerall = statetype = a
trigger1 = stateno = 7022
trigger1 = time = 1
value = var(13)

[state -1, 空中シールドキャンセル]
type = changestate
triggerall = (var(13) = [1000,2999]) || (var(13) = [9000,9999])
triggerall = statetype = a
trigger1 = stateno = 7023
trigger1 = time = 1
value = var(13)

;---------------------------------------------------------------------------
;地上技

[state -1, a]
type = varset
var(13)var(13) = 200
triggerall = (command = "a") && (command != "holddown")
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = 7002) || (stateno = 7012)

[state -1, b]
type = varset
var(13) = 210
triggerall = (command = "b") && (command != "holddown") && (var(1)%10 = 0)
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = 7002) || (stateno = 7012)

[state -1, c]
type = varset
var(13) = 220
triggerall = (command = "c") && (command != "holddown") && (command != "holdfwd") && (var(2)%10 = 0)
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = 7002) || (stateno = 7012)

[state -1, 6c]
type = varset
var(13) = 230
triggerall = (command = "c") && (command = "holdfwd") && (floor(var(2)/10)%10 = 0)
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = 7002) || (stateno = 7012)

;---------------------------------------------------------------------------
;しゃがみ技

[state -1, 2a]
type = varset
var(13) = 400
triggerall = (command = "a") && (command = "holddown")
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = 7002) || (stateno = 7012)

[state -1, 2b]
type = varset
var(13) = 410
triggerall = (command = "b") && (command = "holddown") && (floor(var(1)/10)%10 = 0) && (stateno != 410)
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = 7002) || (stateno = 7012)

[state -1, 2b]
type = varset
var(13) = 420
triggerall = (command = "c") && (command = "holddown") && (floor(var(2)/100)%10 = 0) && (stateno != 420)
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = 7002) || (stateno = 7012)


;---------------------------------------------------------------------------
;空中技

[state -1, 空a]
type = varset
var(13) = 600
triggerall = command = "a"
triggerall = statetype = a
trigger1 = stateno = 7022

[state -1, 空b]
type = varset
var(13) = 610
triggerall = (command = "b") && (floor(var(1)/100)%10 = 0) && (stateno != 610)
triggerall = statetype = a
trigger1 = stateno = 7022

[state -1, 空c]
type = varset
var(13) = 620
triggerall = (command = "c") && (command != "holddown") && (command != "holdback") && (floor(var(2)/1000)%10 = 0) && (stateno != 620)
triggerall = statetype = a
trigger1 = stateno = 7022

[state -1, 空2c]
type = varset
var(13) = 625
triggerall = (command = "c") && (command = "holddown") && (command != "holdback") && (floor(var(2)/10000)%10 = 0) && (stateno != 625)
triggerall = statetype = a
trigger1 = stateno = 7022

[state -1, 空4c]
type = varset
var(13) = 630
triggerall = (command = "c") && (floor(var(2)/100000)%10 = 0) && (stateno != 630)
triggerall = (command != "holddown") && (command = "holdback")
triggerall = statetype = a
trigger1 = stateno = 7022

;---------------------------------------------------------------------------
;特殊技

[state -1, 前投げ]
type = varset
var(13) = 800
triggerall = ((command = "holdfwd") && (command = "a+z")) || ((command = "holdfwd") && (command = "x"))
triggerall = (command != "holdback") && (command != "holddown")
triggerall = statetype = s
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, 後投げ]
type = varset
var(13) = 801
triggerall = ((command = "holdback") && (command = "a+z")) || ((command = "holdback") && (command = "x"))
triggerall = (command != "holdfwd") && (command != "holddown")
triggerall = statetype = s
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, 空前投げ]
type = varset
var(13) = 850
triggerall = (statetype = a) && (command != "holddown") && (command = "holdfwd")
triggerall = (command = "a+z") || (command = "x")
trigger1 = stateno = 7010

[state -1, 空後投げ]
type = varset
var(13) = 851
triggerall = (statetype = a) && (command != "holddown") && (command = "holdback")
triggerall = (command = "a+z") || (command = "x")
trigger1 = stateno = 7010

[state -1, 回避]
type = varset
var(13) = 7070
triggerall = statetype != a
triggerall = (command != "holdfwd") && (command != "holdback")
triggerall = command = "holddown"
triggerall = (command = "a+z") || (command = "x")
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, 空中回避]
type = varset
var(13) = 7080
triggerall = statetype = a
triggerall = (command != "holdfwd") && (command != "holdback")
triggerall = command = "holddown"
triggerall = (command = "a+z") || (command = "x")
trigger1 = stateno = 7010

[state -1, シールドバンカー]
type = varset
var(13) = 7050
triggerall = statetype != a
triggerall = movetype != h
triggerall = command = "214z"
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, 立シールド]
type = varset
var(13) = 7000
triggerall = statetype = s
triggerall = command != "holddown"
triggerall = command = "z"
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, 屈シールド]
type = varset
var(13) = 7010
triggerall = statetype = c
triggerall = command = "holddown"
triggerall = command = "z"
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, 空シールド]
type = varset
var(13) = 7020
triggerall = statetype = a
triggerall = command = "z"
trigger1 = stateno = 7010

[state -1, 強制解放（heat）]
type = varset
var(13) = 7030
triggerall = var(59) = 1
triggerall = (command != "holdfwd") && (command != "holdback") && (command != "holddown")
triggerall = statetype = s
triggerall = (command = "x") || (command = "a+b+c")
triggerall = var(30) = 0
triggerall = power >= 1000
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, 強制解放（blood heat）]
type = varset
var(13) = 7031
triggerall = var(59) = 1
triggerall = statetype = s
triggerall = (command = "x") || (command = "a+b+c")
triggerall = var(30) = 1
triggerall = var(30) != 2
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

;---------------------------------------------------------------------------
;必殺技

;***********************************

[state -1, 地上aフォールスラッシャー]
type = varset
var(13) = 1400
triggerall = (command = "214a")
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, 地上bフォールスラッシャー]
type = varset
var(13) = 1410
triggerall = (command = "214b") || ((command = "214c") && (((power < 1000) && (var(30) = 0)) || (numhelper(3450) != 0)))
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])


[state -1, 地上cフォールスラッシャー]
type = varset
var(13) = 2420
triggerall = ((power >= 1000) && (var(30) = 0)) || (var(30) = [1,3])
triggerall = (command = "214c") && (numhelper(3450) = 0)
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, 空中aフォールスラッシャー]
type = varset
var(13) = 1450
triggerall = command = "214a"
triggerall = statetype = a
trigger1 = stateno = [7022,7023]

[state -1, 空中bフォールスラッシャー]
type = varset
var(13) = 1460
triggerall = (command = "214b") || ((command = "214c") && (power < 1000) && (var(30) = 0))
triggerall = statetype = a
trigger1 = stateno = [7022,7023]

[state -1, 空中cフォールスラッシャー]
type = varset
var(13) = 2470
triggerall = ((power >= 1000) && (var(30) = 0)) || (var(30) = [1,3])
triggerall = command = "214c"
triggerall = statetype = a
trigger1 = stateno = [7022,7023]

;***********************************

[state -1, aエメラルドシティ]
type = varset
var(13) = 1300
triggerall = command = "421a"
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, bエメラルドシティ]
type = varset
var(13) = 1301
triggerall = (command = "421b") || ((command = "421c") && (power < 1000) && (var(30) = 0))
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, cエメラルドシティ]
type = varset
var(13) = 2350
triggerall = ((power >= 1000) && (var(30) = 0)) || (var(30) = [1,3])
triggerall = (command = "421c")
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

;***********************************

[state -1, aウィンターエレメント設置]
type = varset
var(13) = 1200
triggerall = (command = "22a") && (var(21) = 0) && (numhelper(3200) = 0)
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, bウィンターエレメント設置]
type = varset
var(13) = 1210
triggerall = (var(21) = 0) && (numhelper(3200) = 0)
triggerall = (command = "22b") || ((command = "22c") && (power < 1000) && (var(30) = 0))
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, cウィンターエレメント設置]
type = varset
var(13) = 2250
triggerall = ((power >= 1000) && (var(30) = 0)) || (var(30) = [1,3])
triggerall = (command = "22c") && (var(21) = 0) && (numhelper(3200) = 0)
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])


[state -1, ウィンターエレメント発動]
type = varset
var(13) = 1201
triggerall = var(21) = 1
triggerall = (command = "22a") || (command = "22b") || (command = "22c")
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

;***********************************

[state -1, 地上aサマーレッド]
type = varset
var(13) = 1000
triggerall = command = "236a"
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])


[state -1, 地上bサマーレッド]
type = varset
var(13) = 1010
triggerall = (command = "236b") || ((command = "236c") && (power < 1000) && (var(30) = 0))
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, 地上cサマーレッド]
type = varset
var(13) = 2020
triggerall = ((power >= 1000) && (var(30) = 0)) || (var(30) = [1,3])
triggerall = (command = "236c")
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, 空中aサマーレッド]
type = varset
var(13) = 1050
triggerall = command = "236a"
triggerall = statetype = a
trigger1 = stateno = [7022,7023]

[state -1, 空中bサマーレッド]
type = varset
var(13) = 1060
triggerall = (command = "236b") || ((command = "236c") && (power < 1000) && (var(30) = 0))
triggerall = statetype = a
trigger1 = stateno = [7022,7023]

[state -1, 空中cサマーレッド]
type = varset
var(13) = 2070
triggerall = ((power >= 1000) && (var(30) = 0)) || (var(30) = [1,3])
triggerall = command = "236c"
triggerall = statetype = a
trigger1 = ctrl
trigger1 = stateno = [7022,7023]

;***********************************

[state -1, aワールウインドスプリング]
type = varset
var(13) = 1100
triggerall = command = "623a"
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, bワールウインドスプリング]
type = varset
var(13) = 1110
triggerall = (command = "623b") || ((command = "623c") && (power < 1000) && (var(30) = 0))
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, cワールウインドスプリング]
type = varset
var(13) = 2150
triggerall = (var(31) >= 1000) || (var(30) = [1,3])
triggerall = (command = "623c")
triggerall = statetype != a
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

;---------------------------------------------------------------------------
;アークドライブ

[state -1, アークドライブ]
type = varset
var(13) = 9000
triggerall = (command = "41236c")
triggerall = ((var(30) = [1,2]) && (var(59) = 1)) || ((power = [powermax/3,powermax)) && (var(59) = 0))
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

[state -1, アークドライブ（blood heat）]
type = varset
var(13) = 9100
triggerall = (command = "41236c")
triggerall = ((var(30) = 3) && (var(59) = 1)) || ((power = powermax) && (var(59) = 0))
trigger1 = stateno = 5120
trigger1 = animelemtime(4) > 0
trigger2 = (stateno = [7002,7003]) || (stateno = [7012,7013])

