[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

;-| Special Motions |-
[Command]
name = "623b"
command = ~F, D, DF, b

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

[Command]
name = "623c"
command = ~F, D, DF, 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 = "236y"
command = ~D, DF, F, y

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

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

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

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

;-| Double Tap |-
[Command]
name = "FF"     ;Required (do not remove)
command = F, F
time = 10

[Command]
name = "BB"     ;Required (do not remove)
command = B, B
time = 10

;-| 2/3 Button Combination |-
[Command]
name = "recovery";Required (do not remove)
command = x+y
time = 1

[Command]
name = "recovery"
command = x
time = 1

;-| Dir + Button |-
[Command]
name = "down_a"
command = /$D,a
time = 1

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

[Command]
Name = "2"
Command = D
Time = 1
;-| Single Button |-
[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

;-| Hold Dir |-
[Command]
name = "holdfwd";Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback";Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup" ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
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 = "holdA"
command = /a
time = 1

[Command]
name = "holdC"
command = /c
time = 1




[Statedef -1]

;髪恐怖
[State -1, 412c]
type = ChangeState
value = 260
triggerall = command = "412c"
TriggerAll = Var(25) >= 25
trigger1 = statetype = S
trigger1 = ctrl

;髪ドリル
[State -1, 623c]
type = ChangeState
value = 290
triggerall = command = "623c"
TriggerAll = Var(25) >= 25
triggerall = statetype = S
trigger1 = ctrl
Trigger2 = (StateNo=[300,329]) && (Time>20)
Trigger3 = (StateNo=[999,1000]) && (Time>25)

;創造
[State -1, 22Y]
type = ChangeState
value = 3060
TriggerAll = Power >= 4000
triggerall = command = "22y"
triggerall = ctrl
trigger1 = statetype = S
trigger2 = statetype = A

;死髪
[State -1, 236Y]
type = ChangeState
value = 3040
TriggerAll = Power >= 3000
trigger1 = command = "623y"
trigger1 = statetype = S
trigger1 = ctrl

;水晶
[State -1, 236Y]
type = ChangeState
value = 3020
TriggerAll = Power >= 2000
trigger1 = command = "236y"
trigger1 = statetype = S
trigger1 = ctrl

;コック
[State -1, Stand Light Punch]
type = ChangeState
value = 1100
triggerall = command = "y"
triggerall = command = "holdfwd"
TriggerAll = Power >= 1000
triggerall = P2BodyDist X < 20
triggerall = P2BodyDist y > -20
trigger1 = statetype = S
trigger1 = ctrl

;内部創造
[State -1, Meta]
type = ChangeState
value = 3080
TriggerAll = Power >= 1000
trigger1 = command = "y"
trigger1 = command = "a"
trigger1 = statetype = S
trigger1 = ctrl

;レーザー
[State -1, 236Y]
type = ChangeState
value = 350
triggerall = command = "623b"
triggerall = command != "holddown"
TriggerAll = Var(25) >= 25
trigger1 = ctrl
Trigger2 = (StateNo=300) && (Time>17)
Trigger3 = (StateNo=705) && (Time>17)

;創造
[State -1, 22Y]
type = ChangeState
value = 1200
triggerall = command = "22a"
TriggerAll = Var(25) >= 25
triggerall = ctrl
trigger1 = statetype = S

;水晶B
[State -1, 236B]
type = ChangeState
value = 999
triggerall = statetype = S
TriggerAll = Var(25) >= 25
triggerall = command = "236b"
trigger1 = ctrl
Trigger2 = (StateNo=[300,329]) && (Time>25)
Trigger3 = (StateNo=415) && (Time>10)

;水晶A
[State -1, 236A]
type = ChangeState
value = 999
triggerall = statetype = S
TriggerAll = Var(25) >= 25
triggerall = command = "236a"
trigger1 = ctrl
Trigger2 = (StateNo=[300,329]) && (Time>25)
Trigger3 = (StateNo=415) && (Time>10)
;===============================
;投げ
[State -1, Stand Light Punch]
type = ChangeState
value = 270
triggerall = command = "a"
triggerall = command = "holdfwd"
triggerall = P2BodyDist X < 30
triggerall = P2BodyDist y > -20
;triggerall = P2MoveType != H
;triggerall = P2MoveType != A
trigger1 = statetype = S
trigger1 = ctrl
Trigger1 = StateNo!=100
;===============================
;ダッシュA
[State -1, 225]
type = ChangeState
value = 240
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = command = "holdfwd"
trigger1 = stateno = 100

;翼
[State -1, Stand Light Punch]
type = ChangeState
value = 220
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = command = "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl

;4段目
[State -1, Stand Light Punch]
type = ChangeState
value = 215
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = (stateno = 210)
trigger1 = Helper(211),MoveContact

;3段目
[State -1, Stand Light Punch]
type = ChangeState
value = 210
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = (stateno = 205) && (MoveContact)

;2段目
[State -1, Stand Light Punch]
type = ChangeState
value = 205
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = (stateno = 200) && (MoveContact)
trigger1 = ctrl = 0

;立ち打撃
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 6
;---------------------------------------------------------------------------
;髪立ち前打撃
[State -1, Stand Light Punch]
type = ChangeState
value = 230
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = command = "holdfwd"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 6
trigger3 = stateno = 280
trigger3 = time > 34
Trigger4 = (StateNo=220) && (Time>14)
Trigger5 = (StateNo=[300,329]) && (Time>30)

;髪射撃
[State -1, Stand Light Punch]
type = ChangeState
value = 330
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = command = "holdback"
TriggerAll = Var(25) >= 25
triggerall = statetype = S
trigger1 = ctrl
Trigger2 = (StateNo=[300,329]) && (Time>30)

;髪立ち打撃
[State -1, Stand Light Punch]
type = ChangeState
value = 280
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 6

;ダッシュB
[State -1, 225]
type = ChangeState
value = 225
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = command = "holdfwd"
trigger1 = stateno = 100

;214B射撃
[State -1, Stand Light Punch]
type = ChangeState
value = 340
triggerall = command = "214b"
triggerall = command != "holddown"
TriggerAll = Var(25) >= 25
trigger1 = ctrl
Trigger2 = (StateNo=300) && (Time>17)

;立ち前射撃
[State -1, Stand Light Punch]
type = ChangeState
value = 310
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = command = "holdfwd"
TriggerAll = Var(25) >= 25
trigger1 = statetype = S
trigger1 = ctrl
Trigger2 = (StateNo=300) && (Time>17)

;立ち射撃
[State -1, Stand Light Punch]
type = ChangeState
value = 300
triggerall = command = "b"
triggerall = command != "holddown"
TriggerAll = Var(25) >= 25
trigger1 = statetype = S
trigger1 = ctrl

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


;=================================
;3A
[State -1, 3B]
type = ChangeState
value = 415
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = command = "holdfwd"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;1A
[State -1,3A]
type = ChangeState
value = 410
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = command = "holdback"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;しゃがみA
[State -1, 2A]
type = ChangeState
value = 400
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;2B
[State -1, 3B]
type = ChangeState
value = 500
triggerall = command = "b"
triggerall = command = "holddown"
TriggerAll = Var(25) >= 25
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;しゃがみ3C
[State -1, 2C]
type = ChangeState
value = 440
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = command = "holdfwd"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)
Trigger3 = (StateNo=[300,329]) && (Time>30)

;しゃがみA
[State -1, 2A]
type = ChangeState
value = 420
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)
;-------------------------
;空中前c
[State -1, ]
type = ChangeState
value = 610
triggerall = command = "c"
TriggerAll = Command = "holdfwd"
TriggerAll = Command != "holddown"
TriggerAll = Command != "holdup"
TriggerAll = StateNo != 105
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact
trigger3 = stateno = 1350 ;Air blocking
Trigger4 = (StateNo=[300,329]) && (Time>30)
Trigger5 = StateNo = 650

;空中下c
[State -1, Jump Light Kick]
type = ChangeState
value = 620
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = A
trigger1 = ctrl
;trigger2 = stateno = 1350 ;Air blocking

;空中C
[State -1, AirC]
type = ChangeState
value = 640
triggerall = command = "c"
TriggerAll = StateNo != 105
TriggerAll = StateNo != [640,641] 
triggerall = command != "holddown"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1350
Trigger3 = StateNo = 650

;空中前a
[State -1, AirA]
type = ChangeState
value = 650
triggerall = command = "a"
triggerall = command = "holdfwd"
TriggerAll = StateNo != 105
TriggerAll = StateNo != 650
trigger1 = statetype = A
trigger1 = ctrl

;空中A
[State -1, AirA]
type = ChangeState
value = 600
triggerall = command = "a"
TriggerAll = StateNo != 105
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1350

;空中前B
[State -1, AirA]
type = ChangeState
value = 710
triggerall = command = "b"
TriggerAll = StateNo != 105
triggerall = command = "holdfwd"
TriggerAll = Var(25) >= 25
trigger1 = statetype = A
trigger1 = ctrl
Trigger2 = (StateNo=705) && (Time>20)
Trigger3 = (StateNo=720) && (Time>25)

;空中下b
[State -1, Jump Light Kick]
type = ChangeState
value = 720
triggerall = command = "b"
TriggerAll = StateNo != 105
triggerall = command = "holddown"
TriggerAll = Var(25) >= 25
trigger1 = statetype = A
trigger1 = ctrl

;空中B
[State -1, AirA]
type = ChangeState
value = 705
triggerall = command = "b"
TriggerAll = StateNo != 105
TriggerAll = Var(25) >= 25
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1350
Trigger3 = (StateNo=720) && (Time>17)

[State -1, 夢子ナイフルナ]
type = ChangeState
value = 2066
;triggerall = command = "214yz"
triggerall = command = "z"
triggerall = command = "y"
triggerall = command = "holdback"
triggerall = command = "holddown"
TriggerAll = Var(25) >= 25
TriggerAll = Var(35) = 0
TriggerAll = Power >= 3000
trigger1 = statetype = C
trigger1 = ctrl

[State -1, サラ禊]
type = ChangeState
value = 2015
;triggerall = command = "623yz"
triggerall = command = "z"
triggerall = command = "y"
triggerall = command = "holdfwd"
triggerall = command = "holddown"
TriggerAll = Var(25) >= 25
TriggerAll = Var(30) = 0
TriggerAll = Power >= 4000
trigger1 = statetype = C
trigger1 = ctrl

[State -1, ロリスEX]
type = ChangeState
value = 2035
triggerall = command = "z"
triggerall = command = "y"
triggerall = command = "holdfwd"
triggerall = command != "holddown"
TriggerAll = Var(25) >= 25
TriggerAll = Var(32) = 0
TriggerAll = Power >= 5000
trigger1 = statetype = S
trigger1 = ctrl

[State -1, ルイズUFO]
type = ChangeState
value = 2025
triggerall = command = "z"
triggerall = command = "y"
triggerall = command = "holdback"
triggerall = command != "holddown"
TriggerAll = Var(25) >= 25
TriggerAll = Var(31) = 0
TriggerAll = Power >= 1000
trigger1 = statetype = S
trigger1 = ctrl

[State -1, 夢子瞬獄]
type = ChangeState
value = 2070
triggerall = command = "z"
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
TriggerAll = Power >= 5000
TriggerAll = Var(25) >= 25
TriggerAll = Var(35) = 0
trigger1 = statetype = S
trigger1 = ctrl

[State -1, 夢子ナイフ]
type = ChangeState
value = 2065
triggerall = command = "z"
triggerall = command = "holdback"
triggerall = command = "holddown"
TriggerAll = Var(25) >= 25
TriggerAll = Var(35) = 0
trigger1 = ctrl

[State -1, サラ]
type = ChangeState
value = 2010
triggerall = command = "z"
triggerall = command = "holdfwd"
triggerall = command = "holddown"
TriggerAll = Var(25) >= 25
TriggerAll = Var(30) = 0
trigger1 = ctrl

[State -1, ルイズ]
type = ChangeState
value = 2020
triggerall = command = "z"
triggerall = command = "holdback"
triggerall = command != "holddown"
TriggerAll = Var(25) >= 25
TriggerAll = Var(31) = 0
trigger1 = statetype = S
trigger1 = ctrl

[State -1, ユキプッツン]
type = ChangeState
value = 2045
triggerall = command = "z"
triggerall = command = "y"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = command = "holddown"
TriggerAll = Power >= 1000
TriggerAll = Var(25) >= 25
TriggerAll = Var(33) = 0
TriggerAll = Var(37) > 0
trigger1 = ctrl

[State -1, マイ本気]
type = ChangeState
value = 2055
triggerall = command = "z"
triggerall = command = "y"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
triggerall = command = "holddown"
TriggerAll = Power >= 1000
TriggerAll = Var(25) >= 25
TriggerAll = Var(34) = 0
TriggerAll = Var(36) > 0
trigger1 = ctrl

[State -1, ユキ&マイ]
type = ChangeState
value = 2040
triggerall = command = "z"
triggerall = command = "holddown"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
TriggerAll = Var(25) >= 25
TriggerAll = Var(33) = 0
TriggerAll = Var(34) = 0
trigger1 = statetype = C
trigger1 = ctrl

[State -1, ロリス]
type = ChangeState
value = 2030
triggerall = command = "z"
triggerall = command = "holdfwd"
triggerall = command != "holddown"
TriggerAll = Var(25) >= 25
TriggerAll = Var(32) = 0
trigger1 = statetype = S
trigger1 = ctrl

[State -1, 夢子]
type = ChangeState
value = 2060
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = command != "holdfwd"
triggerall = command != "holdback"
TriggerAll = Var(25) >= 25
TriggerAll = Var(35) = 0
trigger1 = statetype = S
trigger1 = ctrl

;ハイジャンプ
[State -1, 102]
Type = ChangeState
Value = 102
TriggerAll	= Command = "holdx"
TriggerAll	= Command != "holddown"
TriggerAll	= StateType != A
TriggerAll	= Command = "holdup"
Trigger1	= Ctrl
Trigger2	= StateNo = 101
Trigger3	= (StateNo=[300,329]) && (Time>30)
Trigger4	= (StateNo=215) && (Time>37)
Trigger5	= (StateNo=220) && (Time>14)
Trigger6	= (StateNo=1000) && (Time>27)
Trigger7	= StateNo = 331
Trigger8	= (StateNo=[410,439]) && (Time>22)
Trigger9	= (StateNo=440) && (Time>28)
;------------------------------　ダッシュ
[State -1, 100]
Type = ChangeState
Value = 100
TriggerAll	= Command = "FF"
TriggerAll	= StateType != A
Trigger1	= Ctrl
Trigger1	= StateNo != 100

[State -1, 100]
Type = ChangeState
Value = 100
TriggerAll	= Command = "holdfwd"
TriggerAll	= Command = "x"
TriggerAll	= Command != "holddown"
TriggerAll	= StateType != A
Trigger1	= Ctrl
Trigger1	= StateNo != 100

[State -1, 100]
Type = ChangeState
Value = 100
TriggerAll	= Command = "holdfwd"
TriggerAll	= Command = "holdx"
TriggerAll	= Command != "holddown"
TriggerAll	= Command != "holdup"
TriggerAll	= StateType != A
Trigger1	= Ctrl
Trigger1	= StateNo != 100
;------------------------------　バックステップ
[State -1, 105]
Type = ChangeState
Value = 105
TriggerAll	= Command = "BB"
TriggerAll	= StateType != A
Trigger1	= Ctrl
Trigger2	= StateNo = [100,101]

[State -1, 105]
Type = ChangeState
Value = 105
TriggerAll	= Command = "holdback"
TriggerAll	= Command = "holdx"
TriggerAll	= StateType != A
TriggerAll	= StateNo != 105
TriggerAll	= Command != "holddown"
TriggerAll	= Command != "holdup"
Triggerall	= (Anim !=[120,152])
Trigger1	= Ctrl
Trigger2	= StateNo = [100,101]
;------------------------------　空中ダッシュ
[State -1, 110]
Type = ChangeState
Value = 110
TriggerAll	= Command = "FF"
TriggerAll	= Var(10) > 0
TriggerAll	= StateType = A
TriggerAll      = StateNo != 105
Trigger1	= Ctrl
Trigger2	= (StateNo=[700,729]) && (StateNo%5=1 && Time>0)
Trigger3	= (StateNo=[700,729]) && (StateNo%5=2)
Trigger4	= (StateNo=[1000,1019]) && (AnimElem=4,>0)
Trigger5	= (StateNo=[1040,1059]) && (AnimElem=9,>0)
Trigger6	= (StateNo=[300,329]) && (Time>30)

[State -1, 110]
Type = ChangeState
Value = 110
TriggerAll	= Command = "holdfwd"
TriggerAll	= Command = "x"
TriggerAll	= Var(10) > 0
TriggerAll	= StateType = A
TriggerAll      = StateNo != 105
Trigger1	= Ctrl
Trigger2	= (StateNo=[700,729]) && (StateNo%5=1 && Time>0)
Trigger3	= (StateNo=[700,729]) && (StateNo%5=2)
Trigger4	= (StateNo=[1000,1019]) && (AnimElem=4,>0)
Trigger5	= (StateNo=[1040,1059]) && (AnimElem=9,>0)
Trigger6	= (StateNo=[300,329]) && (Time>30)

;------------------------------　空中バックダッシュ
[State -1, 115]
Type = ChangeState
Value = 115
TriggerAll	= Command = "BB"
TriggerAll	= Var(10) > 0
TriggerAll	= StateType = A
TriggerAll      = StateNo != 105
Trigger1	= Ctrl
Trigger2	= (StateNo=[700,729]) && (StateNo%5=1 && Time>0)
Trigger3	= (StateNo=[700,729]) && (StateNo%5=2)
Trigger4	= (StateNo=[1000,1019]) && (AnimElem=4,>0)
Trigger5	= (StateNo=[1040,1059]) && (AnimElem=9,>0)
Trigger6	= (StateNo=[300,329]) && (Time>30)

[State -1, 115]
Type = ChangeState
Value = 115
TriggerAll	= Command = "holdback"
TriggerAll	= Command = "x"
TriggerAll	= Var(10) > 0
TriggerAll	= StateType = A
TriggerAll      = StateNo != 105
Trigger1	= Ctrl
Trigger2	= (StateNo=[700,729]) && (StateNo%5=1 && Time>0)
Trigger3	= (StateNo=[700,729]) && (StateNo%5=2)
Trigger4	= (StateNo=[1000,1019]) && (AnimElem=4,>0)
Trigger5	= (StateNo=[1040,1059]) && (AnimElem=9,>0)
Trigger6	= (StateNo=[300,329]) && (Time>30)
;------------------------------　高速ジャンプ
[State -1, 102]
Type = ChangeState
Value = 102
TriggerAll	= Command = "holdup"
TriggerAll	= Command != "holddown"
TriggerAll	= Var(11) > 0
TriggerAll	= StateType != A
Trigger1	= Ctrl
Trigger2	= StateNo = 101
Trigger3	= (StateNo=[300,329]) && (StateNo%5=1 && Time>0)
Trigger4	= (StateNo=[300,329]) && (StateNo%5=2)
Trigger5	= (StateNo=[500,529]) && (Time>14)
Trigger6	= (StateNo=[1000,1019]) && (AnimElem=8,>0)
Trigger7	= (StateNo=[1040,1059]) && (AnimElem=9,>0)

[State -1, 102]
Type = ChangeState
Value = 5125
TriggerAll	= StateNo = 5110
Trigger1 = (Command = "holdback")
Trigger1 = (Command = "holdA") || (Command = "holdB") || (Command = "holdC")

[State -1, 102]
Type = ChangeState
Value = 5130
TriggerAll	= StateNo = 5110
Trigger1 = (Command = "holdfwd")
Trigger1 = (Command = "holdA") || (Command = "holdB") || (Command = "holdC")