;-| 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] ;Charge down, then up + c
name = "loop"
command = D, U, b
time = 20

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

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

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

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

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

[Command]
name = "forward_b"
command = /$F,b
time = 1

[Command]
name = "up"
command = /$U
time = 1

[Command]
name = "down"
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 = "holdb";Required (do not remove)
command = /$b
time = 1

[Statedef -1]

;===========================================================================
;---------------------------------------------------------------------------
; Dash
[State -1, Dash]
type = ChangeState
value = 100
trigger1 = command = "FF" || command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

 ;===========================================================================
; Mach tornado
[State -1, mach tornado]
type = ChangeState
value = 220
triggerall = command = "down_b"
trigger1 = statetype = C || (StateNo = 0 && command = "down_b")
trigger1 = ctrl
trigger2 = StateNo = 100

; Shield Blast
[State -1, Shield Blast]
type = ChangeState
value = 500
triggerall = command = "forward_b"
Trigger1 = StateType =S
trigger1 = ctrl

;---------------------------------------------------------------------------
; Lunging slide
[State -1, Lunging slide]
type = ChangeState
value = 203
triggerall = command = "holdfwd" && command = "b"
trigger1 = StateNo = 100

;------------------
; Shuttle Loop
[State -1, Shuttle loop]
type = ChangeState
value = 207
triggerall = command = "loop"
trigger1 = statetype = S
Trigger1 = ctrl = 1

; Up thrust
[State -1, Up thrust]
type = ChangeState
value = 204
triggerall = command = "holdup" && command = "b"
trigger1 = statetype = S
Trigger1 = ctrl = 1
trigger2 = StateNo = 100
;------------------
; Sword Slash
[State -1, Sword Slash]
type = ChangeState
value = 200
triggerall = command = "b"
trigger1 = statetype = S
Trigger1 = ctrl = 1
trigger2 = StateNo = 40


; Uppercut
[State -1, Uppercut]
type = ChangeState
value = 201
triggerall = command = "b"
trigger1 = statetype = S
Trigger1 = ctrl = 1
trigger2 = StateNo = 200
trigger2 = time >= 12

; Multisword stab
[State -1, Multisword stab]
type = ChangeState
value = 202
triggerall = command = "b"
trigger1 = statetype = S || statetype = C
Trigger1 = ctrl = 1
trigger2 = StateNo = 201
trigger2 = time >= 15

;---------------------------------------------------------------------------
; Galactic Darkness
[State -1,Galactic Darkness]
Type = ChangeState
Triggerall = Command = "x"
triggerall = power >= 1000
Trigger1 = ctrl
Trigger1 = StateType =S || statetype = C
trigger2 = StateNo = 100
Value = 3000

;---------------------------------------------------------------------------
; Hyper Mach Tornado
[State -1,Hyper Mach Tornado]
Type = ChangeState
Triggerall = Command = "x"
triggerall = power >= 1000
Trigger1 = ctrl
Trigger1 = StateType =A
trigger2 = StateNo = 100
Value = 4000
;---------------------------------------------------------------------------
; Wave
[State -1, Wave]
type = ChangeState
value = 400
triggerall = command = "down_a"
trigger1 = statetype = C || (StateNo = 0 && command = "down_a")
trigger1 = ctrl
trigger2 = StateNo = 100

;===========================================================================
; Spin
[State -1, Spin]
type = ChangeState
value = 630
triggerall = command = "holdfwd" && command = "b"
trigger1 = StateNo = [40, 50]
trigger1 = Vel X > 2
trigger1 = ctrl

;----------
; Down Trust
[State -1, Down Trust]
type = ChangeState
value = 620
triggerall = command = "holddown" && command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 51
trigger2 = ctrl

;---------------------------------------------------------------------------
; chop & thrust
[State -1, chop & thrust]
type = ChangeState
value = 600
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = StateNo = 207
trigger2 = time >= 18

;---------------------------------------------------------------------------
; Jump
[State -1, Jump]
type = ChangeState
value = IfElse(StateType = S, 41, 45)
triggerall = command = "a"
trigger1 = statetype = S || statetype = A
trigger1 = ctrl || StateNo = 100
trigger2 = stateno = 605

;---------------------------------------------------------------------------
; Guard
[State -1, Guard]
type = ChangeState
value = 150
triggerall = command = "Guard"
trigger1 = statetype = S || statetype = C
trigger1 = ctrl
trigger2 = StateNo = 100
