;==========================================================================
;コマンド関連ファイル
;==========================================================================
;-| デフォルト設定 |----------------------------------------------------------- 
[Defaults]
command.time = 10

;-| AI起動用コマンド |------------------------------
[Command]
name = "AI00"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI01"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI02"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI03"
command = c,U,D,B,F,B,F,D,U,B
time = 1
[Command]
name = "AI04"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI05"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI06"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI07"
command = s,U,D,B,F,B,F,D,U,c
time = 1
[Command]
name = "AI08"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI09"
command = c,U,D,F,B,F,B,D,U,y
time = 1
[Command]
name = "AI10"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[Command]
name = "AI11"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI12"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI13"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI14"
command = U,D,B,F,B,F,D,U,c+z
time = 1
[Command]
name = "AI15"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI16"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI17"
command = a,B,c,x,y,z,s,B,D,F,U,a,b,c,x,y,z,s,s
time = 0
[Command]
name = "AI18"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI19"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI20"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI21"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI22"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI23"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI24"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI25"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0


[Command]
name = "AI26"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI27"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[Command]
name = "AI28"
command = c,U,D,B,F,B,F,D,U,B,s
time = 1
[Command]
name = "AI29"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI30"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI31"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI32"
command = s,U,D,B,F,B,F,D,U,c,s
time = 1
[Command]
name = "AI33"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI34"
command = c,U,D,F,B,F,B,D,U,y,s
time = 1
[Command]
name = "AI35"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI36"
command = z,z,z,z,z,z,a,a,a,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI37"
command = z,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,z,z,z
time = 0
[Command]
name = "AI38"
command = z,z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z
time = 0
[Command]
name = "AI39"
command = U,D,B,F,B,F,D,U,c+z,s
time = 1
[Command]
name = "AI40"
command = z,z,z,z,a,a,a,z,z,z,z,a,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI41"
command = z,z,z,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z,z
time = 0
[Command]
name = "AI42"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI43"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,a,a,z
time = 0
[Command]
name = "AI44"
command = z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,a,a,a,z
time = 0
[Command]
name = "AI45"
command = z,z,z,z,z,z,a,a,z,z,z,z,z,a,a,a,a,z,z
time = 0
[Command]
name = "AI46"
command = z,z,z,z,z,z,z,z,a,a,a,a,a,a,z,z,z,z,z
time = 0
[Command]
name = "AI47"
command = z,z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI48"
command = z,z,z,z,z,a,a,a,z,z,z,a,a,a,z,z,a,z,a
time = 0
[Command]
name = "AI49"
command = z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z,z
time = 0
[Command]
name = "AI50"
command = z,z,z,a,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z
time = 0

;方向キー＋ボタン---------------------------------------------------------
;入れっぱ＋ボタンで出る仕様。
;波動コマンドは斜め無しでも出ます

;----------------
[Command]
name = "22_a"
command = D, D, a
time = 20
command.buffer.time = 5

[Command]
name = "22_b"
command = D, D, b
time = 20

[Command]
name = "22_c"
command = D, D, c
time = 20

[Command]
name = "22_c"
command = D, D, a+b
time = 20

;----------------
[Command]
name = "26_a"
command = D, F, a
time = 20
command.buffer.time = 5

[Command]
name = "26_b"
command = D, F, b
time = 20

[Command]
name = "26_c"
command = D, F, c
time = 20

[Command]
name = "26_c"
command = D, F, a+b
time = 20

;----------------
[Command]
name = "24_a"
command = D, B, a
time = 20
command.buffer.time = 5

[Command]
name = "24_b"
command = D, B, b
time = 20

[Command]
name = "24_c"
command = D, B, c
time = 20

[Command]
name = "24_c"
command = D, B, a+b
time = 20

;----------------
[Command]
name = "F,a"
command = /F,a
time = 1

[Command]
name = "F,a"
command = F, a

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

[Command]
name = "D,a"
command = D, a

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

[Command]
name = "B,a"
command = B, a

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

[Command]
name = "F,b"
command = F, b

[Command]
name = "F,b"
command = b, F
time = 5

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

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

;----------------
[Command]
name = "B,b"
command = /B, b
time = 1

[Command]
name = "B,b"
command = B, b

[Command]
name = "B,b"
command = b, B
time = 5


;二度押し-----------------------------------------------------------
[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 = "hold_a"
command = /a
time = 1

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

[Command]
name = "hold_c"
command = /c
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 = "c"
command = a+b
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 = "s"
command = s
time = 1


;消すなよ！絶対消すなよ！
[Statedef -1]
;===========================================================================
;コマンド実行部分（優先順位が高いものを先に表記）
;===========================================================================
;===========================================================================
;　移動関係
;===========================================================================
;---------------------------------------------------------------------------
[State 前方ダッシュ]
Type = ChangeState
value = 100
Trigger1 = Command = "FF"
Trigger1 = StateType = S
Trigger1 = Ctrl

;---------------------------------------------------------------------------
[State バックステップ]
Type = ChangeState
value = 105
Trigger1 = Command = "BB"
Trigger1 = StateType = S
Trigger1 = Ctrl

;===========================================================================
;　超必殺・変化技
;===========================================================================
[state -1,つきのひかり]
type = changestate
value = 700
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = power >= 2000
trigger1 = var(59) = 0
trigger1 = command ="22_c"
trigger1 = ctrl = 1

;-------------------------------------------------------------
[state -1,のろい]
type = changestate
value = 730
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = power >= 500
triggerall = var(2) < 6
trigger1 = var(59) = 0
trigger1 = command ="24_c"
trigger1 = ctrl = 1

;===========================================================================
;　投げ技
;===========================================================================
;-------------------------------------------------------------
[state -1,サイコキネシス]
type = changestate
value = 600
triggerall = roundstate = 2
triggerall = statetype = S
trigger1 = var(59) = 0
trigger1 = command = "c"
trigger1 = ctrl = 1

;===========================================================================
;　特殊技/変化技
;===========================================================================
;-------------------------------------------------------------
[state -1,あやしいひかり]
type = changestate
value = 510
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = numhelper(1510) < 1
trigger1 = var(59) = 0
trigger1 = command ="26_b"
trigger1 = ctrl = 1

;-------------------------------------------------------------
[state -1,どくどく]
type = changestate
value = 520
triggerall = roundstate = 2
triggerall = statetype != A
trigger1 = var(59) = 0
trigger1 = command = "22_b"
trigger1 = ctrl = 1

;-------------------------------------------------------------
[state -1,くろいまなざし]
type = changestate
value = 530
triggerall = roundstate = 2
triggerall = statetype != A

trigger1 = var(59) = 0
trigger1 = !numhelper(1530) && !numhelper(1531) && !numhelper(1532)		;1個もない
trigger1 = command = "24_b"
trigger1 = ctrl = 1

trigger2 = var(59) = 0
trigger2 = numhelper(1530) && !numhelper(1531) && !numhelper(1532)		;1530だけ存在して
trigger2 = helper(1530),stateno != 1535						;それが発動中でない
trigger2 = command = "24_b"
trigger2 = ctrl = 1

trigger3 = var(59) = 0
trigger3 = !numhelper(1530) && numhelper(1531) && !numhelper(1532)		;1531だけ存在して
trigger3 = helper(1531),stateno != 1535						;それが発動中でない
trigger3 = command = "24_b"
trigger3 = ctrl = 1

trigger4 = var(59) = 0
trigger4 = !numhelper(1530) && !numhelper(1531) && numhelper(1532)		;1532だけ存在して
trigger4 = helper(1532),stateno != 1535						;発動中でない
trigger4 = command = "24_b"
trigger4 = ctrl = 1

trigger5 = var(59) = 0
trigger5 = !numhelper(1530) && numhelper(1531) && numhelper(1532)		;1530以外の二つが存在して
trigger5 = (helper(1531),stateno != 1535) && (helper(1532),stateno != 1535)	;共に発動していない
trigger5 = command = "24_b"
trigger5 = ctrl = 1

trigger6 = var(59) = 0
Trigger6 = numhelper(1530) && !numhelper(1531) && numhelper(1532)		;1531以外の二つが存在して
Trigger6 = (helper(1530),stateno != 1535) && (helper(1532),stateno != 1535)	;共に発動していない
trigger6 = command = "24_b"
trigger6 = ctrl = 1

trigger7 = var(59) = 0
trigger7 = numhelper(1530) && numhelper(1531) && !numhelper(1532)		;1532以外の二つが存在して
trigger7 = (helper(1530),stateno != 1535) && (helper(1531),stateno != 1535)	;共に発動していない
trigger7 = command = "24_b"
trigger7 = ctrl = 1

;[予備取っとこ(´･ω･)]
;triggerall = roundstate = 2
;triggerall = statetype != A
;trigger1 = var(59) = 0
;trigger1 = command = "24_b"
;trigger1 = helper(1530),stateno != 1535
;trigger1 = helper(1531),stateno != 1535
;trigger1 = helper(1532),stateno != 1535
;trigger1 = ctrl = 1

;-------------------------------------------------------------
[state -1,かげぶんしん]
Type = ChangeState
value = 410 + 20*(command = "B,b")
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = (numhelper(415) = 0 && numhelper(435) = 0)
trigger1 = var(59) = 0
trigger1 = (command = "F,b") || (command = "B,b")
trigger1 = ctrl = 1
trigger2 = var(59) = 0
trigger2 = stateno = 52
trigger2 = (command = "F,b") || (command = "B,b")
trigger2 = ctrl = 1
trigger3 = var(59) = 0
trigger3 = stateno = 401
trigger3 = (command = "F,b") || (command = "B,b")
trigger3 = animelemtime(2) >= 0
trigger3 = ctrl = 1
trigger4 = var(59) = 0
trigger4 = (command = "F,a") || (command = "B,a")
trigger4 = (stateno = 200) || (stateno = 220)
trigger4 = animelemtime(2) >= 0

;-------------------------------------------------------------
[state -1,あくのはどう]
type = changestate
value = 420
triggerall = roundstate = 2
triggerall = statetype != A
trigger1 = var(59) = 0
trigger1 = command = "D,b"
trigger1 = ctrl = 1

;-------------------------------------------------------------
[state -1,シャドーボール]
type = changestate
value = 400 + 5*(statetype = A)
triggerall = roundstate = 2
triggerall = numhelper(1400) < 1
trigger1 = var(59) = 0
trigger1 = statetype = S
trigger1 = command = "b"
trigger1 = ctrl = 1
trigger2 = var(59) = 0
trigger2 = statetype = A
trigger2 = command = "b"
trigger2 = (vel Y < 0) || (pos Y < -48)
trigger2 = ctrl = 1

;===========================================================================
;　物理技
;===========================================================================
;-------------------------------------------------------------
[state -1,すてみタックル]
type = changestate
value = 310
triggerall = roundstate = 2
triggerall = statetype != A
trigger1 = var(59) = 0
trigger1 = command = "26_a"
trigger1 = ctrl = 1
trigger2 = var(59) = 0
trigger2 = command = "26_a"
trigger2 = (stateno = 200) || (stateno = 220)
trigger2 = animelemtime(2) >= 0

;-------------------------------------------------------------
[state -1,しっぺがえし]
type = changestate
value = 300
triggerall = roundstate = 2
triggerall = statetype != A
trigger1 = var(59) = 0
trigger1 = (Var(30) = 40) && (Command = "D,a") && (Command != "holdback")
trigger1 = ctrl = 1
trigger2 = var(59) = 0
trigger2 = (Var(30) = 40) && (Command = "D,a") && (Command != "holdback")
trigger2 = (stateno = 200) || (stateno = 220)
trigger2 = animelemtime(2) >= 0

;-------------------------------------------------------------
[state -1,おいうち]
type = changestate
value = 320
triggerall = roundstate = 2
triggerall = statetype != A
trigger1 = var(59) = 0
trigger1 = command = "22_a"
trigger1 = ctrl = 1
trigger2 = var(59) = 0
trigger2 = command = "22_a"
trigger2 = (stateno = 200) || (stateno = 220)
trigger2 = animelemtime(2) >= 0

;-------------------------------------------------------------
[state -1,ふいうち]
type = changestate
value = 330
triggerall = roundstate = 2
triggerall = statetype != A
trigger1 = var(59) = 0
trigger1 = command = "24_a"
trigger1 = ctrl = 1
trigger2 = var(59) = 0
trigger2 = command = "24_a"
trigger2 = stateno = 250
trigger2 = (pos Y >= 0) || (animelemtime(9) >= 0)
trigger3 = var(59) = 0
trigger3 = command = "24_a"
trigger3 = (stateno = 200) || (stateno = 220)
trigger3 = animelemtime(2) >= 0

;-------------------------------------------------------------
[state -1,だましうち]
type = changestate
value = 210 + 20*(command = "B,a")
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = numhelper(240) = 0
trigger1 = var(59) = 0
trigger1 = (command = "F,a") || (command = "B,a")
trigger1 = ctrl = 1
trigger2 = var(59) = 0
trigger2 = stateno = 52
trigger2 = (command = "F,a") || (command = "B,a")
trigger2 = ctrl = 1
trigger3 = var(59) = 0
trigger3 = (command = "F,a") || (command = "B,a")
trigger3 = (stateno = 200) || (stateno = 220)
trigger3 = animelemtime(2) >= 0

;-------------------------------------------------------------
[state -1,アイアンテール]
type = changestate
value = 250
triggerall = roundstate = 2
triggerall = statetype = A
trigger1 = var(59) = 0
trigger1 = command = "a"
trigger1 = ctrl = 1

;-------------------------------------------------------------
[state -1,ほしがる]
type = changestate
value = 220
triggerall = roundstate = 2
trigger1 = var(59) = 0
trigger1 = command = "a"
trigger1 = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = var(59) = 0
trigger2 = command = "a"
trigger2 = command = "holddown"
trigger2 = stateno = 220
trigger2 = animelemtime(3) >= 0
trigger2 = statetype = C

;-------------------------------------------------------------
[state -1,しっぽをふる]
type = changestate
value = 200
triggerall = roundstate = 2
triggerall = statetype = S
trigger1 = var(59) = 0
trigger1 = command = "a"
trigger1 = ctrl = 1
trigger2 = var(59) = 0
trigger2 = command = "a"
trigger2 = stateno = 200
trigger2 = animelemtime(3) >= 0