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

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

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

[Command]
name = "AFF"        ;必須コマンド名
command = ~F, F
time = 20

[Command]
name = "ABB"        ;必須コマンド名
command = ~B, B
time = 20

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

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

[Command]
name = "z+c"
command = z+c
time = 1

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

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

[Command]
name = "down_b"
command = /$D,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 = "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

;------------------------------------------------------------------------------
[Statedef -1] 
;------------------------------------------------------------------------------
;==============================================================================
; 移動関連
;==============================================================================
;------------------------------------------------------------------------------

[state -1, ステ抜け用変数無感知化] 
type = varset
trigger1 = 1
var(0) = 0
ignorehitpause = 1

[State -1, しゃがみ歩き]
type = ChangeState
value = 15
triggerall = !ishelper
triggerall = ctrl
triggerall = stateno = 11
triggerall = stateno != 15
trigger1 = command = "holdfwd"
trigger2 = command = "holdback"

[State -1, ダッシュ]
type = ChangeState
value = 100
triggerall = !ishelper
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, バックステップ]
type = ChangeState
value = 105
triggerall = !ishelper
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, 空中ダッシュ]
type = ChangeState
value = 116
triggerall = !ishelper
triggerall = stateno != 105
triggerall = stateno != 116
trigger1 = command = "AFF" 
trigger1 = statetype = A
trigger1 = ctrl 

[State -1, 空中バックステップ]
type = ChangeState
value = 117
triggerall = !ishelper
triggerall = stateno != 105
triggerall = stateno != 117
trigger1 = command = "ABB" 
trigger1 = statetype = A
trigger1 = ctrl 

;==============================================================================
; 通常攻撃技
;==============================================================================
;------------------------------------------------------------------------------

[State -1, 立ちプログラム]
type = Changestate
value = 1000
triggerall = !ishelper
triggerall = palno != 11
triggerall = command = "start"
triggerall = command != "holddown"
triggerall = stateno != [10,15]
triggerall = stateno != [116,117]
triggerall = stateno != 1000
triggerall = stateno != 7000
triggerall = stateno != 9000
triggerall = statetype = S
triggerall = alive
trigger1 = life >= 500
trigger2 = palno = [7,10]

[State -1, 立ちＲＢＭ]
type = Changestate
value = 9000
triggerall = !ishelper
triggerall = command = "z+c"
triggerall = command != "holddown"
triggerall = stateno != [10,15]
triggerall = stateno != [116,117]
triggerall = stateno != 1000
triggerall = stateno != 7000
triggerall = stateno != 9000
triggerall = statetype = S
triggerall = alive
trigger1 = palno = [7,10]
trigger2 = palno = 12

[State -1, 立ち弱レーザー]
type = Changestate
value = ifelse(random % 2 = 0, 200, 230)
triggerall = !ishelper
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = stateno != [10,15]
triggerall = stateno != [116,117]
triggerall = statetype = S
triggerall = palno != 11
trigger1 = ctrl

[State -1, 立ち中レーザー]
type = Changestate
value = ifelse(random % 2 = 0, 210, 240)
triggerall = !ishelper
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = stateno != [10,15]
triggerall = stateno != [116,117]
triggerall = statetype = S
triggerall = palno != 11
trigger1 = ctrl

[State -1, 立ち強レーザー]
type = Changestate
value = ifelse(random % 2 = 0, 220, 250)
triggerall = !ishelper
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = stateno != [10,15]
triggerall = stateno != [116,117]
triggerall = statetype = S
triggerall = palno != 11
triggerall = power >= 1000
trigger1 = ctrl

[State -1, 立ち設置ミラー]
type = Changestate
value = 2000
triggerall = !ishelper
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = stateno != [10,15]
triggerall = stateno != [116,117]
triggerall = statetype = S
triggerall = palno != 11
triggerall = power >= 1000
trigger1 = ctrl

[State -1, 立ち跳弾Ａ]
type = Changestate
value = 3000
triggerall = !ishelper
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = stateno != [10,15]
triggerall = stateno != [116,117]
triggerall = statetype = S
triggerall = palno != 11
trigger1 = ctrl

[State -1, 立ち跳弾Ｂ]
type = Changestate
value = 3300
triggerall = !ishelper
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = stateno != [10,15]
triggerall = stateno != [116,117]
triggerall = statetype = S
triggerall = palno = [1,10]
trigger1 = ctrl

[State -1, 立ち破片]
type = Changestate
value = 7000
triggerall = !ishelper
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = stateno != [10,15]
triggerall = stateno != [116,117]
triggerall = statetype = S
triggerall = palno = 12
triggerall = numExplod(7000) = 0
trigger1 = ctrl

[State -1, 発光１１Ｐ]
type = Changestate
value = 8000
triggerall = !ishelper
triggerall = command = "x"
triggerall = stateno != [10,15]
triggerall = stateno != [116,117]
triggerall = statetype = S
triggerall = palno = 11
triggerall = numExplod(12000) = 0
trigger1 = ctrl

[State -1, 立ちバリア]
type = Changestate
value = 700
triggerall = !ishelper
triggerall = stateno != [10,15]
triggerall = stateno != [116,117]
triggerall = statetype = S
triggerall = palno != 11
triggerall = helper(150),gethitvar(damage)
trigger1 = numExplod(700) = 0
trigger2 = numProjID(700) = 0

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

[State -1, しゃがみエラーコード]
type = Changestate
value = 1100
triggerall = !ishelper
triggerall = command = "start"
triggerall = command = "holddown"
triggerall = stateno != 10
triggerall = stateno != 12
triggerall = stateno != [116,117]
triggerall = stateno != 1100
triggerall = stateno != 7100
triggerall = stateno != 9100
triggerall = statetype = C
triggerall = palno != 11
trigger1 = alive

[State -1, しゃがみＲＢＭ]
type = Changestate
value = 9100
triggerall = !ishelper
triggerall = command = "z+c"
triggerall = command = "holddown"
triggerall = stateno != 10
triggerall = stateno != 12
triggerall = stateno != [116,117]
triggerall = stateno != 1100
triggerall = stateno != 7100
triggerall = stateno != 9100
triggerall = statetype = C
triggerall = alive
trigger1 = palno = [7,10]
trigger2 = palno = 12

[State -1, しゃがみ弱レーザー]
type = Changestate
value = ifelse(random % 2 = 0, 400, 430)
triggerall = !ishelper
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = stateno != 10
triggerall = stateno != 12
triggerall = stateno != [116,117]
triggerall = statetype = C
triggerall = palno != 11
trigger1 = ctrl

[State -1, しゃがみ中レーザー]
type = Changestate
value = ifelse(random % 2 = 0, 410, 440)
triggerall = !ishelper
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = stateno != 10
triggerall = stateno != 12
triggerall = stateno != [116,117]
triggerall = statetype = C
triggerall = palno != 11
trigger1 = ctrl

[State -1, しゃがみ強レーザー]
type = Changestate
value = ifelse(random % 2 = 0, 420, 450)
triggerall = !ishelper
triggerall = command = "z"
triggerall = command = "holddown"
triggerall = stateno != 10
triggerall = stateno != 12
triggerall = stateno != [116,117]
triggerall = statetype = C
triggerall = palno != 11
triggerall = power >= 1000
trigger1 = ctrl

[State -1, しゃがみ設置ミラー]
type = Changestate
value = 2100
triggerall = !ishelper
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = stateno != 10
triggerall = stateno != 12
triggerall = stateno != [116,117]
triggerall = statetype = C
triggerall = palno != 11
triggerall = power >= 1000
trigger1 = ctrl

[State -1, しゃがみ跳弾Ａ]
type = Changestate
value = 3100
triggerall = !ishelper
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = stateno != 10
triggerall = stateno != 12
triggerall = stateno != [116,117]
triggerall = statetype = C
triggerall = palno != 11
trigger1 = ctrl

[State -1, しゃがみ跳弾Ｂ]
type = Changestate
value = 3400
triggerall = !ishelper
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = stateno != 10
triggerall = stateno != 12
triggerall = stateno != [116,117]
triggerall = statetype = C
triggerall = palno = [1,10]
trigger1 = ctrl

[State -1, しゃがみ破片]
type = Changestate
value = 7100
triggerall = !ishelper
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = stateno != 10
triggerall = stateno != 12
triggerall = stateno != [116,117]
triggerall = statetype = C
triggerall = palno = 12
triggerall = numExplod(7000) = 0
trigger1 = ctrl

[State -1, しゃがみバリア]
type = ChangeState
value = 800
triggerall = !ishelper
triggerall = stateno != 10
triggerall = stateno != 12
triggerall = stateno != [116,117]
triggerall = statetype = C
triggerall = palno != 11
triggerall = helper(150),gethitvar(damage)
trigger1 = numExplod(800) = 0
trigger2 = numProjID(800) = 0

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

[State -1, ジャンプエラーコード]
type = Changestate
value = 1200
triggerall = !ishelper
triggerall = command = "start"
triggerall = stateno != [10,15]
triggerall = stateno != 117
triggerall = stateno != 1200
triggerall = stateno != 7200
triggerall = stateno != 9200
triggerall = statetype = A
triggerall = palno != 11
trigger1 = alive

[State -1, ジャンプＲＢＭ]
type = Changestate
value = 9200
triggerall = !ishelper
triggerall = command = "z+c"
triggerall = stateno != [10,15]
triggerall = stateno != 117
triggerall = stateno != 1200
triggerall = stateno != 7200
triggerall = stateno != 9200
triggerall = statetype = A
triggerall = alive
trigger1 = palno = [7,10]
trigger2 = palno = 12

[State -1, ジャンプ弱レーザー]
type = Changestate
value = ifelse(random % 2 = 0, 600, 630)
triggerall = !ishelper
triggerall = command = "x"
triggerall = stateno != [10,15]
triggerall = stateno != 117
triggerall = statetype = A
triggerall = palno != 11
trigger1 = ctrl

[State -1, ジャンプ中レーザー]
type = ChangeState
value = ifelse(random % 2 = 0, 610, 640)
triggerall = !ishelper
triggerall = command = "y"
triggerall = stateno != [10,15]
triggerall = stateno != 117
triggerall = statetype = A
triggerall = palno != 11
trigger1 = ctrl

[State -1, ジャンプ強レーザー]
type = Changestate
value = ifelse(random % 2 = 0, 620, 650)
triggerall = !ishelper
triggerall = command = "z"
triggerall = stateno != [10,15]
triggerall = stateno != 117
triggerall = statetype = A
triggerall = palno != 11
triggerall = power >= 1000
trigger1 = ctrl

[State -1, ジャンプ設置ミラー]
type = Changestate
value = 2200
triggerall = !ishelper
triggerall = command = "c"
triggerall = stateno != [10,15]
triggerall = stateno != 117
triggerall = statetype = A
triggerall = palno != 11
triggerall = power >= 1000
trigger1 = ctrl

[State -1, ジャンプ跳弾Ａ]
type = Changestate
value = 3200
triggerall = !ishelper
triggerall = command = "a"
triggerall = stateno != [10,15]
triggerall = stateno != 117
triggerall = statetype = A
triggerall = palno != 11
trigger1 = ctrl

[State -1, ジャンプ跳弾Ｂ]
type = Changestate
value = 3500
triggerall = !ishelper
triggerall = command = "b"
triggerall = stateno != [10,15]
triggerall = stateno != 117
triggerall = statetype = A
triggerall = palno = [1,10]
trigger1 = ctrl

[State -1, ジャンプ破片]
type = Changestate
value = 7200
triggerall = !ishelper
triggerall = command = "b"
triggerall = stateno != [10,15]
triggerall = stateno != 117
triggerall = statetype = A
triggerall = palno = 12
triggerall = numExplod(7000) = 0
trigger1 = ctrl

[State -1, ジャンプバリア]
type = Changestate
value = 900
triggerall = !ishelper
triggerall = stateno != [10,15]
triggerall = stateno != 117
triggerall = statetype = A
triggerall = palno != 11
triggerall = helper(150),gethitvar(damage)
trigger1 = numExplod(900) = 0
trigger2 = numProjID(900) = 0

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