
;-| ボタンリマップ（ボタンコンフィグ）|----------------------------------------

[Remap]
x = x      ;Ｘボタンの入力判定を実際に押すボタンに割り当てる。
y = y      ;Ｙボタン　　　　　　　　　〃
z = z      ;Ｚボタン　　　　　　　　　〃
a = a      ;Ａボタン　　　　　　　　　〃
b = b      ;Ｂボタン　　　　　　　　　〃
c = c      ;Ｃボタン　　　　　　　　　〃
s = s      ;スタートボタン　　　　　　〃

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

[Defaults]
command.time = 15
command.buffer.time = 1

;============================================================================
; コマンド定義パート（入力キーを設定する）
;============================================================================
;
;-| 超必殺技 |-----------------------------------------------------------------
;
;けっしょうし
[Command]
name = "doriru"
command = ~D, DF, F, y+b
time = 20

;けっしょうし２
[Command]
name = "doriru2"
command = ~D, DF, F, x+a
time = 20

;ダム決壊
[Command]
name = "damu"
command = ~D, DF, F, D, DF, F, y
time = 20

;南斗サンダーソード
[Command]
name = "thunder"
command = ~D, DB, B, D, DB, B, y
time = 20

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

;ブースト
[Command]
name = "boost"
command = z
time = 1

;スタンプ・ザ・１９３
[Command]
name = "sutanpu"     
command = ~F,D,DF,x
time = 13

;萃香の西瓜の知略
[Command]
name = "s_jirai"     
command = ~B,D,DB,x
time = 13

;ベロベロ
[Command]
name = "1koro"     
command = ~D,DF,F,x
time = 13


;天子の自分には到底実行できない知略
[Command]
name = "t_jirai"     
command = ~B,D,DB,a
time = 13

;一度コテンパンにしてあげよう
[Command]
name = "omoi"     
command = ~D,DF,F,a
time = 13

;私を利用したのか〜！
[Command]
name = "t_atemi"     
command = ~D,DB,B,a
time = 13

;伝衝裂破
[Command]
name = "reppa"     
command = ~D,DF,F,y
time = 13

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

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

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

;ハイジャンプ
[Command]
name = "high"
command = ~D,$U
time = 10

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

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

[Command]
name = "heavy"
command = x+a
time = 1

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

[Command]
name = "bani"
command = y+b
time = 1

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

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

[Command]
name = "gc"
command = /$F,y+b
time = 1

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

[Command]
name = "mushi_x"
command = /$D,x
time = 1

[Command]
name = "mushi_y"
command = /$D,y
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 = "hold_x"
command = /$x
time = 1

[Command]
name = "hold_y"
command = /$y
time = 1

[Command]
name = "hold_a"
command = /$a
time = 1

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

[Command]
name = "hold_z"
command = /$z
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

;============================================================================== 
; ステートエントリーパート（技などを出せるようにするための条件を設定）
;==============================================================================
;
[Statedef -1] ;←この行は絶対に消さないでね。必須項目です。
;
;==============================================================================
; 超必殺技
;==============================================================================
;
[State -1, 血粧嘴]
type = ChangeState
value = 1000
triggerall = command = "doriru"
triggerall = statetype != A
triggerall = var(20) = 7
triggerall = power > 0
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (StateNo = [200,241]) || (StateNo = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000

[State -1, 血粧嘴２]
type = ChangeState
value = 1050
triggerall = command = "doriru2"
triggerall = statetype != A
triggerall = var(20) = 7
triggerall = power > 0
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (StateNo = [200,241]) || (StateNo = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000

[State -1, ダム決壊]
type = ChangeState
value = 900
triggerall = numhelper(6500) = 0
triggerall = numhelper(6504) = 0
triggerall = numhelper(6505) = 0
triggerall = numhelper(6600) = 0
triggerall = command = "damu"
triggerall = statetype != A
triggerall = var(10) >= 100
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (StateNo = [200,241]) || (StateNo = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000
trigger5 = stateno = 10003

[State -1, 南斗サンダーソード]
type = ChangeState
value = 950
triggerall = command = "thunder"
triggerall = statetype != A
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (StateNo = [200,241]) || (StateNo = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000
trigger5 = var(7) != 0
trigger5 = stateno = 119
;
;==============================================================================
; 必殺技
;==============================================================================
;
[State -1, スタンプ・ザ・１９３]
type = ChangeState
value = 800
triggerall = numhelper(6000) = 0
triggerall = numhelper(6600) = 0
triggerall = command = "sutanpu"
triggerall = statetype != A
triggerall = var(10) >= 100
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (StateNo = [200,241]) || (StateNo = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000

[State -1, 萃香の西瓜の知略]
type = ChangeState
value = 810
triggerall = numhelper(6100) = 0
triggerall = numhelper(6600) = 0
triggerall = command = "s_jirai"
triggerall = statetype != A
triggerall = var(10) >= 100
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (StateNo = [200,241]) || (StateNo = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000

[State -1, ベロベロ]
type = ChangeState
value = 820
triggerall = numhelper(6200) = 0
triggerall = numhelper(6600) = 0
triggerall = command = "1koro"
triggerall = statetype != A
triggerall = var(10) >= 100
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (StateNo = [200,241]) || (StateNo = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000

[State -1, 一度コテンパンにしてあげよう]
type = ChangeState
value = ifelse(var(12) = 0,830,831)
triggerall = numhelper(7000) = 0
;triggerall = numhelper(7100) = 0
triggerall = numhelper(7200) = 0
triggerall = numhelper(7600) = 0
triggerall = command = "omoi"
triggerall = statetype != A
triggerall = var(11) >= 100
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (StateNo = [200,241]) || (StateNo = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000

[State -1, 天子の自分には到底実行できない知略]
type = ChangeState
value = 840
triggerall = numhelper(7100) = 0
triggerall = numhelper(7200) = 0
triggerall = numhelper(7600) = 0
triggerall = command = "t_jirai"
triggerall = statetype != A
triggerall = var(11) >= 100
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (StateNo = [200,241]) || (StateNo = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000

[State -1, 私を利用したのか〜！（通常版）]
type = ChangeState
value = 850
;triggerall = numhelper(7100) = 0
triggerall = numhelper(7200) = 0
triggerall = numhelper(7600) = 0
triggerall = command = "t_atemi"
triggerall = statetype != A
triggerall = var(11) >= 100
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (StateNo = [200,241]) || (StateNo = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000

[State -1, 私を利用したのか〜！（ガードキャンセル版）]
type = ChangeState
value = 851
triggerall = numhelper(7200) = 0
triggerall = numhelper(7600) = 0
triggerall = command = "t_atemi"
triggerall = statetype != A
triggerall = var(11) >= 100
trigger1 = stateno = [151,153]

[State -1, 伝衝裂破]
type = ChangeState
value = 860
triggerall = numhelper(861) = 0
triggerall = command = "reppa"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (StateNo = [200,241]) || (StateNo = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000

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

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

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

[State -1, 空中ダッシュ]
type = ChangeState
value = 110
triggerall = command = "FF"
triggerall = statetype = A
triggerall = var(50) = 0
trigger1 = ctrl
trigger1 = stateno != 110
trigger1 = stateno != 115

[State -1, 空中バックダッシュ]
type = ChangeState
value = 115
triggerall = command = "BB"
triggerall = statetype = A
triggerall = var(50) = 0
trigger1 = ctrl
trigger1 = stateno != 110
trigger1 = stateno != 115

[State -1, ハイジャンプ]
type = ChangeState
value = 119
triggerall = command = "high"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]

;==============================================================================
; 特殊技
;==============================================================================

[State -1, 挑発]
type = ChangeState
value = 195
triggerall = command = "start"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 3000

[State -1, ガーキャン]
type = ChangeState
value = 199
triggerall = command = "gc"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = stateno = 150
trigger2 = stateno = 151
trigger3 = stateno = 152
trigger4 = stateno = 153

[State -1, 中段]
type = ChangeState
value = 300
triggerall = command = "6x"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (StateNo = [200,241]) || (StateNo = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000

[State -1, 死ね、虫けらのように！（弱）]
type = ChangeState
value = 700
triggerall = command = "mushi_x"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,640]
trigger2 = movecontact
trigger3 = stateno = 3005

[State -1, 死ね、虫けらのように！（強）]
type = ChangeState
value = 701
triggerall = command = "mushi_y"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = [600,640]
trigger2 = movecontact
trigger3 = stateno = 3005

[State -1, グレイヴシュート]
type = ChangeState
value = 310
triggerall = command = "gure"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (StateNo = [200,241]) || (StateNo = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000

[State -1, バニシングストライク]
type = ChangeState
value = 320
triggerall = command = "bani"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (stateNo = [200,241]) || (stateno = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000

[State -1, ヘヴィーストライク]
type = ChangeState
value = 330
triggerall = command = "heavy"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (stateNo = [200,241]) || (stateno = [400,440])
trigger3 = movecontact
trigger4 = stateno = 3000

[State -1, 萃香通常投げ・レバー前]
type = ChangeState
value = 750
triggerall = var(10) >= 100
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 5
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H

[State -1, 萃香通常投げ・レバー後ろ]
type = ChangeState
value = 755
triggerall = var(10) >= 100
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
trigger1 = command = "holdback"
trigger1 = p2bodydist X < 5
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H

[State -1, 天子つかみ投げ]
type = ChangeState
value = 760
triggerall = numhelper(7100) = 0
triggerall = numhelper(7200) = 0
triggerall = numhelper(7600) = 0
triggerall = var(11) >= 100
triggerall = command = "tukami"
triggerall = statetype = S
trigger1 = ctrl
trigger1 = stateno != 100

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

[State -1, 立ち弱パンチ]
type = ChangeState
value = ifelse(P2BodyDist X <= 12,200,201)
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = stateno = 200
trigger3 = movecontact 
trigger4 = stateno = [3000,3001]

[State -1, 立ち強パンチ]
type = ChangeState
value = ifelse(P2BodyDist X <= 24,210,211)
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (stateNo = [200,201]) || (stateno = [230,231])
trigger3 = movecontact 
trigger4 = stateno = 400 || stateno = 430
trigger4 = movecontact
trigger5 = stateno = [3000,3001]

[State -1, 立ち弱キック]
type = ChangeState
value = ifelse(P2BodyDist X <= 14,230,231)
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = stateno = [200,201]
trigger3 = movecontact
trigger4 = stateno = [230,231]
trigger4 = movecontact || animelem = 4,>=0
trigger5 = stateno = 400 || stateno = 430
trigger5 = movecontact
trigger6 = stateno = [3000,3001]

[State -1, 立ち強キック]
type = ChangeState
value = ifelse(P2BodyDist X <= 28,240,241)
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (stateno = [200,231]) || (stateno = [400,430])
trigger3 = movecontact
trigger4 = stateno = [3000,3001]

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

[State -1, しゃがみ弱パンチ]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = stateno = [200,201]
trigger3 = movecontact
trigger4 = stateno = 230
trigger4 = movecontact
trigger5 = stateno = 400
trigger5 = animelem = 8,>=0
trigger6 = stateno = 430
trigger6 = movecontact
trigger7 = stateno = [3000,3001]

[State -1, しゃがみ強パンチ]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = stateno = [200,231]
trigger3 = movecontact
trigger4 = stateno = 400 || stateno = 430
trigger4 = movecontact
trigger5 = stateno = [3000,3001]

[State -1, しゃがみ弱キック]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = stateno = [200,201]
trigger3 = movecontact
trigger4 = stateno = 400
trigger4 = movecontact
trigger5 = stateno = 430
trigger5 = animelem = 7,>=0
trigger6 = stateno = [3000,3001]

[State -1, しゃがみ強キック]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = [100,101]
trigger3 = (stateno = [200,241]) || (stateno = [400,430])
trigger3 = movecontact
trigger4 = stateno = [3000,3001]

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

[State -1, ジャンプ弱パンチ]
type = ChangeState
value = 600
triggerall = command = "x"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = [110,115]
trigger3 = stateno = 600
trigger3 = animelem = 6,>=0
trigger4 = stateno = 630
trigger4 = movecontact || movecontact=0 && animelem = 8,>=0
trigger5 = stateno = 3005


[State -1, ジャンプ強パンチ]
type = ChangeState
value = 610
triggerall = command = "y"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = [110,115]
trigger3 = stateno = 600 || stateno = 630
trigger3 = movecontact
trigger4 = stateno = 3005

[State -1, ジャンプ弱キック]
type = ChangeState
value = 630
triggerall = command = "a"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = [110,115]
trigger3 = stateno = 600 
trigger3 = movecontact || movecontact=0 && animelem = 6,>=0
trigger4 = stateno = 630 
trigger4 = animelem = 8,>=0
trigger5 = stateno = 3005

[State -1, ジャンプ強キック]
type = ChangeState
value = 640
triggerall = command = "b"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = [110,115]
trigger3 = stateno = [600,630]
trigger3 = movecontact
trigger4 = stateno = 3005

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

[State -1, 地上ブースト（通常版）]
type = ChangeState
value = 3000
triggerall = command = "boost"
triggerall = statetype != A
triggerall = var(22) >= 100 || (var(22) >= 20 && var(23) != 0)
trigger1 = ctrl
trigger2 = stateno = 3000
trigger3 = stateno = 3001
trigger4 = stateno = 3005

[State -1, 地上ブースト（キャンセル版）]
type = ChangeState
value = 3001
triggerall = command = "boost"
triggerall = statetype != A
triggerall = var(22) >= 100 || (var(22) >= 50 && var(23) != 0)
trigger1 = ctrl
trigger2 = stateno = [200,440]
trigger2 = MoveContact = 1
trigger3 = stateno = 3000
trigger4 = stateno = 3001
trigger5 = stateno = 3005

[State -1, 空中ブースト（通常版＆舞空術版）]
type = ChangeState
value = 3005
triggerall = command = "boost"
triggerall = statetype = A
triggerall = var(22) >= 100 || (var(22) >= 20 && var(23) != 0)
trigger1 = ctrl
trigger2 = stateno = [600,799]
trigger2 = MoveContact
trigger3 = stateno = 3005
;------------------------------------------------------------------------------

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