;-| Button Remapping |-----------------------------------------------------
[Remap]
a = a
b = b
c = c
x = x
y = y
z = z
s = s

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

;-| Special Motions |------------------------------------------------------

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

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

;-| 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


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

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

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

[Statedef -1]

;===========================================================================
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
;
[State -1,Poltergeist mode]
Type = ChangeState
Triggerall = Command = "x"  && command !="holdup" && command !="holddown"
triggerall = power >= 1000 && !var(30)
Trigger1 = ctrl = 1
Value = 3100

[State -1,Creepy minion]
Type = ChangeState
Triggerall = Command = "x"  && command !="holdup" && command ="holddown"
triggerall = power >= 1000 && !var(30)
Trigger1 = ctrl = 1
Value = 3000

;-----------------------------------------------------------------------
[State -1, Haunted Friend]
type = ChangeState
value = 1020
triggerall = command = "b" && command !="holdup" && command !="holddown"
Trigger1 = ctrl = 1
trigger2 = StateNo = 100

;-----------------------------------------------------------------------
; Ghost Trap
[State -1, Ghost Trap]
type = ChangeState
value = 1200
trigger1 = ctrl = 1
triggerall = command = "b"
trigger1 = p2bodydist X < 15 && p2bodydist X > -15
trigger1 = p2statetype = S || p2statetype = C || p2statetype = A
;-----------------------------------------------------------------------
[State -1, Cursed Apple]
type = ChangeState
value = 1050
triggerall = command = "b" && command ="holddown" && !NumHelper(1055)
Trigger1 = ctrl

;-----------------------------------------------------------------------
; Ghost Move
[State -1, Blazing Dive]
type = ChangeState
value = 400
triggerall = command = "a" && !var(30)
Trigger1 = ctrl


;-----------------------------------------------------------------------
; Rolling Mini Upper
[State -1,Rolling Mini Upper]
type = null;ChangeState
value = 750
triggerall = command = "b" && command ="holdup"
triggerall = StateType != A
Trigger1 = ctrl = 1
trigger2 = StateNo = 100



;---------------------------------------------------------------------------
; Guard
[State -1, Guard]
type = ChangeState
value = 150
triggerall = command = "Guard"
trigger1 = ctrl


