;-| ボタン配置 |-------------------------------------------------------
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;-| Default Values |-------------------------------------------------------
[Defaults]
command.time = 15
command.buffer.time = 1

;-| AI |------------------------------------------------------

[Command]
name = "AI0"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI1"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI2"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI3"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI4"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI5"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI6"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI7"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0
[Command]
name = "AI8"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI9"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[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 = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[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 = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[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 = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[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 = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[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 = z,z,z,z,z,a,a,a,z,z,z,z,z,z,a,a,z,z,z
time = 0
[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 = "弱大地の湖"
command = D, DF, F, b

[Command]
name = "強大地の湖"
command = D, DF, F, c

[Command]
name = "大蝦蟇神"
command = F, D, DF, b
time = 17

[Command]
name = "古の鉄輪"
command = F, D, DF, c
time = 17

[Command]
name = "水蛙神"
command = D, DB, B, b

[Command]
name = "水蛙神"
command = D, DB, B, c

[Command]
name = "土着神の祟り"
command = D, D, b

[Command]
name = "土着神の祟り"
command = D, D, c

;------------------------------------------------------------------------------
;-| 特殊動作 |----------------------------------------------------------------

[Command]
name = "jump"    
command = D, $U
time = 12

;------------------------------------------------------------------------------
;-| キー２回連続入力 |--------------------------------------------------------
[Command]
name = "FF"     ;要求済み (キーの変更は可能ですが名前を変えたり無効にしてはいけません)
command = F, F
time = 10

[Command]
name = "BB"     ;要求済み (キーの変更は可能ですが名前を変えたり無効にしてはいけません)
command = B, B
time = 10

;------------------------------------------------------------------------------
;-| 同時押し |-----------------------------------------------------------------
[Command]
name = "recovery"   ;要求済み (キーの変更は可能ですが名前を変えたり無効にしてはいけません)
command = x+a
time = 1

[Command]
name = "recovery"   ;要求済み (キーの変更は可能ですが名前を変えたり無効にしてはいけません)
command = z
time = 1

[Command]
name = "ふっとばし"
command = 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 = "fwd"
Command = F
Time = 1

[Command]
Name = "back"
Command = B
Time = 1

[Command]
Name = "up"
Command = U
Time = 1

[Command]
Name = "down"
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

[Command]
name = "holdx"
command = /$x
time = 1

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

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

[Command]
name = "holdc"
command = /$c
time = 1

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

;-------------------------------------------------------------------------------
[Statedef -1]
;-------------------------------------------------------------------------------
;===========================================================================
; 超必殺技
;===========================================================================
;-------------------------------------------------------------------------------

;===========================================================================
; 必殺技
;===========================================================================
;-------------------------------------------------------------------------------
;空中版　古の鉄輪
[State -1, Inishie]
type = ChangeState
value = 1250
triggerall = command = "古の鉄輪"
triggerall = var(59) < 1
trigger1 = statetype = A && ctrl
trigger2 = stateno = 202 && movecontact
trigger3 = stateno = 220 && movecontact > 1
trigger4 = stateno = 230 &&  time > 24
trigger5 = stateno = 231 &&  time > 24
trigger6 = stateno = 650 && time > 24

;古の鉄輪
[State -1, Inishie]
type = ChangeState
value = 1200
triggerall = command = "古の鉄輪"
triggerall = var(59) < 1
trigger1 = statetype = S && ctrl
trigger2 = stateno = 220 && movecontact > 1

;大蝦蟇神
[State -1, Oogama]
type = ChangeState
value = 1100
triggerall = command = "大蝦蟇神"
triggerall = var(59) < 1
trigger1 = statetype = S && ctrl

;大地の湖 追撃
[State -1, Daithi]
type = ChangeState
value = 1020
triggerall = command = "弱大地の湖" || command = "強大地の湖"
triggerall = var(59) < 1
triggerall = var(11)
trigger1 = stateno = 1050 && time >= 5

;強大地の湖
[State -1, Daithi]
type = ChangeState
value = 1010
triggerall = command = "強大地の湖"
triggerall = var(59) < 1
trigger1 = statetype = A && ctrl
trigger2 = stateno = 220 && movecontact > 1
trigger3 = stateno = 230 &&  time > 24
trigger4 = stateno = 231 &&  time > 24
trigger5 = stateno = 650 && time > 24

;弱大地の湖
[State -1, Daithi]
type = ChangeState
value = 1000
triggerall = command = "弱大地の湖"
triggerall = var(59) < 1
trigger1 = statetype = A && ctrl
trigger2 = stateno = 220 && movecontact > 1
trigger3 = stateno = 230 &&  time > 24
trigger4 = stateno = 231 &&  time > 24
trigger5 = stateno = 650 && time > 24

;水蛙神
[State -1, Mizukaeru]
type = ChangeState
value = 1400
triggerall = command = "水蛙神"
triggerall = var(59) < 1
trigger1 = statetype = S && ctrl

;土着神の祟り
[State -1, Dochaku]
type = ChangeState
value = 1300
triggerall = command = "土着神の祟り"
triggerall = var(59) < 1
trigger1 = statetype = S && ctrl

;-------------------------------------------------------------------------------
;===========================================================================
; 特殊行動
;===========================================================================
;---------------------------------------------------------------------------
; ダッシュ前
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; ダッシュ後
[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;空中 ダッシュ前
[State -1, Air Dash]
Type       = ChangeState
Value      = 110
TriggerAll = Var(59) = 0
TriggerAll = Command = "FF" || (Var(3) > 0 && Command = "holdfwd")
TriggerAll = StateNo != 110 || Time > 26
TriggerAll = StateNo != 115 || Time > 18
TriggerAll = Var(2) < 2
Trigger1   = StateType = A
Trigger1   = Ctrl

;---------------------------------------------------------------------------
;空中 ダッシュ後
[State -1, Air Back Dash]
Type       = ChangeState
Value      = 115
TriggerAll = Var(59) = 0
TriggerAll = Command = "BB" || (Var(3) < 0 && Command = "holdback")
TriggerAll = StateNo != 110 || Time > 26
TriggerAll = StateNo != 115 || Time > 18
TriggerAll = Var(2) < 2
Trigger1   = StateType = A
Trigger1   = Ctrl

;===========================================================================
; 通常技
;===========================================================================
;-------------------------------------------------------------------------------
;空中版　洩矢の鉄の輪２
[State -1, Air Tetsuwa2]
type = ChangeState
value = 750
triggerall = command = "c" && command = "holddown"
triggerall = var(59) < 1
trigger1 = statetype = A && ctrl
trigger2 = stateno = 220 && movecontact > 1
trigger3 = stateno = 230 && time > 24
trigger4 = stateno = 231 &&  time > 24

;-------------------------------------------------------------------------------
;空中版　洩矢の鉄の輪
[State -1, Air Tetsuwa]
type = ChangeState
value = 725
triggerall = command = "c" && command = "holdfwd"
triggerall = var(59) < 1
trigger1 = statetype = A && ctrl
trigger2 = stateno = 220 && movecontact > 1
trigger3 = stateno = 230 &&  time > 24
trigger4 = stateno = 231 &&  time > 24

;-------------------------------------------------------------------------------
;洩矢の鉄の輪
[State -1, (Light) Slap]
type = ChangeState
value = 700
triggerall = command = "c" && command = "holdfwd"
triggerall = var(59) < 1
trigger1 = statetype = S && ctrl
trigger2 = stateno = 200 && movecontact > 1

;---------------------------------------------------------------------------
;遠距離打撃
[State -1]
type = changestate
value = 210
triggerall = command = "a" && command != "holddown"
triggerall = p2bodydist x >= 20
trigger1 = statetype = S && ctrl

;-------------------------------------------------------------------------------
;空中射撃
[State -1, (Light) Slap]
type = ChangeState
value = 650
triggerall = command = "c" && command != "holddown"
triggerall = var(59) < 1
trigger1 = statetype = A && ctrl
trigger2 = stateno = 202 && movecontact
trigger3 = stateno = 220 && movecontact > 1
trigger4 = stateno = 230 &&  time > 24
trigger5 = stateno = 231 &&  time > 24

;-------------------------------------------------------------------------------
;空中強打撃
[State -1, (air) Slap]
type = ChangeState
value = 300
triggerall = command = "b" && command != "holddown"
triggerall = var(59) < 1
trigger1 = statetype = A && ctrl
trigger2 = stateno = 202 && movecontact
trigger3 = stateno = 230 &&  time > 24
trigger4 = stateno = 231 &&  time > 24

;-------------------------------------------------------------------------------
;空中打撃
[State -1, (air) Slap]
type = ChangeState
value = 220
triggerall = command = "a"
triggerall = var(59) < 1
trigger1 = statetype = A && ctrl
trigger2 = stateno = 230 &&  time > 24
trigger3 = stateno = 231 &&  time > 24

;-------------------------------------------------------------------------------
;射撃
[State -1, (Light) Slap]
type = ChangeState
value = 600
triggerall = command = "c" && command != "holddown"
triggerall = var(59) < 1
trigger1 = statetype = S && ctrl
trigger2 = stateno = 200 && movecontact > 1

;-------------------------------------------------------------------------------
;強打撃
[State -1, (Heavy) Slap]
type = ChangeState
value = 230
triggerall = command = "b" && command != "holddown"
triggerall = var(59) < 1
trigger1 = statetype = S && ctrl
trigger2 = stateno = 200 && movecontact > 1

;-------------------------------------------------------------------------------
;地中強打撃
[State -1, (Heavy) Slap]
type = ChangeState
value = 231
triggerall = command = "b"
triggerall = var(59) < 1
trigger1 = statetype != A && ctrl
trigger2 = stateno = 10
trigger3 = stateno = 11
trigger4 = stateno = 1050 && time >= 30

;-------------------------------------------------------------------------------
;打撃
[State -1, A]
type = ChangeState
value = 200
triggerall = command = "a" && command != "holddown"
triggerall = var(59) < 1
trigger1 = statetype = S && ctrl
trigger2 = (stateno = 200) && time > 8

[State -1, A2]
type = ChangeState
value = 201
triggerall = command = "a" && command != "holddown"
triggerall = var(59) < 1
trigger1 = statetype = S && ctrl
trigger1 = stateno = 200 && movecontact
trigger2 = (stateno = 200) && time > 5

[State -1, A3]
type = ChangeState
value = 202
triggerall = command = "a" && command != "holddown"
triggerall = var(59) < 1
trigger1 = statetype = S && ctrl
trigger1 = stateno = 201 && movecontact
trigger2 = (stateno = 201) && time > 7

[State -1, A4]
type = ChangeState
value = 203
triggerall = command = "a" && command != "holddown"
triggerall = var(59) < 1
trigger1 = statetype = S && ctrl
trigger1 = stateno = 202 && movecontact
trigger2 = (stateno = 202) && time > 15
