[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 = "The_Gate_to_the_Heaven"
command = ~D, B, F, a+z
command.time = 25

[Command]
name = "5stars"
command = ~D, B, F, a+b
command.time = 25

[Command]
name = "Space_D"
command = ~D, B, F, x+y
command.time = 25

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

[Command]
name = "7jewels_EX"
command = ~D, DF, F, a+b

[Command]
name = "FF_ab"
command = F, F, a+b

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

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

;---------------------------
;(「板投げ」用にコ?ンドを追加してます)

[Command]
name = "7jewels_slow"
command = ~D, DF, F, a

[Command]
name = "7jewels_fast"
command = ~D, DF, F, b

[Command]
name = "GCC_low"
command = ~F, D, DF, x

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

[Command]
name = "Gas_short"
command = ~D, DF, F, x

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

[Command]
name = "Feedback_short"
command = ~D, DB, B, a

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

[Command]
name = "Earthquake"
command = ~D, D
time = 15

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

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

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

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

[Command]
name = "Hitoverride"
command = a+b+c
time = 2

[Command]
name = "Liferecover"
command = x+y+z
time = 2

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

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

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

[Command]
name = "recovery" ;必?コ?ンド名
command = a+b
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 = 25

[Command]
name = "start"
command = s
time = 1

[Command]
name = "power"
command = /$s
time = 10

[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(1) = 0

[State -1]
type = VarSet
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440
trigger2 = movecontact
var(1) = 1

[State -1]
type = Changestate
triggerall = command = "The_Gate_to_the_Heaven"
triggerall = numexplod(18000) = 0
triggerall = numexplod(19000) = 0
triggerall = numexplod(25000) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = power >= 3000
value = 3500

[State -1]
type = Changestate
triggerall = command = "5stars"
triggerall = numhelper(17001) = 0
triggerall = numhelper(17002) = 0
triggerall = numhelper(17003) = 0
triggerall = numhelper(17004) = 0
triggerall = numhelper(17005) = 0
trigger1 = statetype = S
trigger1 = power >= 1000
trigger1 = ctrl
value = 1700

[State -1]
type = Changestate
triggerall = command = "Space_D"
triggerall = numexplod(18000) = 0
triggerall = numexplod(19000) = 0
trigger1 = statetype = S
trigger1 = power >= 2000
trigger1 = ctrl
value = 2000

[State -1]
type = Changestate
triggerall = command = "7jewels_EX"
trigger1 = statetype = S
trigger1 = power >= 1000
trigger1 = ctrl
value = 702

[State -1]
type = Changestate
triggerall = command = "7jewels_slow"
trigger1 = statetype = S
trigger1 = ctrl
value = 700

[State -1]
type = Changestate
triggerall = command = "7jewels_fast"
trigger1 = statetype = S
trigger1 = ctrl
value = 701

[State -1]
type = Changestate
triggerall = command = "GCC_low"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 210
trigger2 = movecontact
trigger3 = Stateno = 410
trigger3 = MoveContact
value = 1100

[State -1]
type = Changestate
triggerall = command = "GCC_high"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 210
trigger2 = movecontact
trigger3 = Stateno = 410
trigger3 = MoveContact
value = 1101

[State -1]
type = Changestate
triggerall = command = "Gas_short"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
value = 1600

[State -1]
type = Changestate
triggerall = command = "Gas_long"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
value = 1601

[State -1]
type = Changestate
triggerall = command = "Gas_short"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 610
trigger2 = movecontact
value = 1602

[State -1]
type = Changestate
triggerall = command = "Gas_long"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 610
trigger2 = movecontact
value = 1603

[State -1]
type = Changestate
triggerall = command = "Feedback_short"
trigger1 = statetype = S
trigger1 = ctrl
value = 1000

[State -1]
type = Changestate
triggerall = command = "Feedback_long"
trigger1 = statetype = S
trigger1 = ctrl
value = 1001

[State -1]
type = Changestate
triggerall = command = "Hitoverride"
triggerall = numexplod(18000) = 0
triggerall = numexplod(19000) = 0
triggerall = numexplod(25000) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = power >= 1000
value = 1800

[State -1]
type = Changestate
triggerall = command = "Liferecover"
triggerall = numexplod(18000) = 0
triggerall = numexplod(19000) = 0
triggerall = numexplod(25000) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = power >= 2000
value = 1900

[State -1]
type = Changestate
triggerall = command = "Fire_Shot"
trigger1 = statetype = S
trigger1 = ctrl
value = 1200

[State -1]
type = Changestate
triggerall = command = "Lightning_Ball"
triggerall = numhelper(15000) = 0
trigger1 = statetype = S
trigger1 = ctrl
value = 1500

[State -1]
type = Changestate
triggerall = command = "Time_Stop"
triggerall = numexplod(18000) = 0
triggerall = numexplod(19000) = 0
triggerall = numexplod(25000) = 0
trigger1 = statetype = S
trigger1 = power >= 2000
trigger1 = ctrl
value = 2500

[State -1]
type = Changestate
triggerall = command = "power"
trigger1 = statetype = S
trigger1 = ctrl
value = 1300

[State -1]
type = Changestate
triggerall = command != "power"
trigger1 = stateno = 1300
value = 0
ctrl = 1

[State -1]
type = Removeexplod
trigger1 = stateno != 1300
id = 13000 

[State -1]
type = stopsnd
trigger1 = stateno != 1300
channel = 3

[State -1]
type = ChangeState
value = 1400
triggerall = command = "Earthquake"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 610
trigger2 = movecontact
trigger3 = stateno = 600
trigger3 = movecontact

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

[State -1, 空中?ッシュ]
type = ChangeState
value = 110
TriggerAll = Var(3) = 0
trigger1 = command = "FF"
trigger1 = statetype = A
trigger1 = ctrl

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

[State -1, 通常投げ]
type = ChangeState
value = 800
triggerall = command = "c"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = p2bodydist X < 5
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H

[State -1, 6A]
type = ChangeState
value = 205
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact

[State -1, 立A]
type = ChangeState
value = 200
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact

[State -1, キャンセル6B]
type = ChangeState
value = 216
triggerall = command = "b"
triggerall = command = "holdfwd"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = Stateno = 210
trigger1 = movecontact
trigger2 = stateno = 200
trigger2 = movecontact

[State -1, 6B]
type = ChangeState
value = 215
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, 立B]
type = ChangeState
value = 210
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact

[State -1, 3A]
type = ChangeState
value = 405
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

[State -1, 2A]
type = ChangeState
value = 400
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 400
trigger2 = movecontact

[State -1, キャンセル3B]
type = ChangeState
value = 416
triggerall = command = "b"
triggerall = command = "holdfwd"
triggerall = command = "holddown"
trigger1 = statetype = S
trigger1 = Stateno = 210
trigger1 = movecontact
trigger2 = statetype = C
trigger2 = Stateno = 410
trigger2 = movecontact

[State -1, 3B]
type = ChangeState
value = 415
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

[State -1, 2B]
type = ChangeState
value = 410
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = Stateno = 410
trigger2 = MoveContact
trigger3 = Stateno = 400
trigger3 = MoveContact

[State -1, J6A]
type = ChangeState
value = 605
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl

[State -1, JA]
type = ChangeState
value = 600
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 610
trigger2 = movecontact

[State -1, J6B]
type = ChangeState
value = 615
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 610
trigger2 = movecontact

[State -1, JB]
type = ChangeState
value = 610
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl

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

