[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;---------------------------------------------------------------------------
[Defaults]
; Default value for the "time" parameter of a Command. Minimum 1.
command.time = 15

; Default value for the "buffer.time" parameter of a Command. Minimum 1,
; maximum 30.
command.buffer.time = 1
;---------------------------------------------------------------------------
[Command]
name = "Asgore Fork"     
command = D, DB, B, a+b
time = 10

[Command]
name = "slash"     
command = D, DF, F, y+b
time = 10

[Command]
name = "Asriel"     
command = D, DF, F, x+a
time = 10

[Command]
name = "Heart summon"     
command = D, DF, F, x+y
time = 10

[Command]
name = "knife summon 2"     
command = D, DB, B, y
time = 10

[Command]
name = "knife summon"     
command = D, DB, B, x
time = 10

[Command]
name = "counter"     
command = D, DB, B, b
time = 10

[Command]
name = "counter"     
command = D, DB, B, a
time = 10

[Command]
name = "throw2"     
command = D, DF, F, y
time = 10

[Command]
name = "throw"     
command = D, DF, F, x
time = 10

[Command]
name = "blocking"
command = $F,x
time = 3

[Command]
name = "blocking" 
command = x,$F
time = 3

[Command]
name = "FF"     
command = F, F
time = 10

[Command]
name = "BB"     
command = B, B
time = 10

[Command]
name = "down_a"
command = /$D,a
time = 1

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

[Command]
name = "recovery";Required (do not remove)
command = x+y
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 = "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

[Statedef -1]
;---------------------------------------------------------------------------
;Asgore Fork
[State -1, Asgore Fork]
type = ChangeState
value = 3010
triggerall = power >= 1000
triggerall = command = "Asgore Fork" 
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 1000
trigger2 = time > 30
;---------------------------------------------------------------------------
;slash
[State -1, slash]
type = ChangeState
value = 3006
triggerall = power >= 2000
triggerall = command = "slash" 
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 1000
trigger2 = time > 30
;---------------------------------------------------------------------------
;Asriel
[State -1, Asriel]
type = ChangeState
value = 3003
triggerall = power >= 2000
triggerall = command = "Asriel" 
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 1000
trigger2 = time > 30
;---------------------------------------------------------------------------
;Heart summon
[State -1, Heart summon]
type = ChangeState
value = 3000
triggerall = power >= 1000
triggerall = command = "Heart summon" 
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 1000
trigger2 = time > 30
;---------------------------------------------------------------------------
;knife summon 2
[State -1, knife summon 2]
type = ChangeState
value = 1011
triggerall = command = "knife summon 2" 
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 1000
trigger2 = time > 30
;---------------------------------------------------------------------------
;knife summon
[State -1, knife summon]
type = ChangeState
value = 1008
triggerall = command = "knife summon" 
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 1000
trigger2 = time > 30
;---------------------------------------------------------------------------
;counter
[State -1, counter]
type = ChangeState
value = 1005
triggerall = command = "counter" 
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 1000
trigger2 = time > 30
;---------------------------------------------------------------------------
;throw2
[State -1, throw2]
type = ChangeState
value = 1002
triggerall = command = "throw2" 
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 1000
trigger2 = time > 30
;---------------------------------------------------------------------------
;Throw
[State -1, Throw]
type = ChangeState
value = 1000
triggerall = command = "throw" 
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 1000
trigger2 = time > 30

;---------------------------------------------------------------------------
;Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

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

;---------------------------------------------------------------------------
;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 20

;---------------------------------------------------------------------------
;Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 30


;---------------------------------------------------------------------------
;Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 7
trigger3 = (stateno = 230) && time > 20

;---------------------------------------------------------------------------
;Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 20
trigger3 = (stateno = 230) && time > 6

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

;---------------------------------------------------------------------------
;Crouching Light Punch
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

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

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

;---------------------------------------------------------------------------
;Crouching Strong Kick
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = movecontact
trigger3 = stateno = 1350 ;Air blocking

;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact
trigger3 = stateno = 1350 ;Air blocking

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1350 ;Air blocking

;---------------------------------------------------------------------------
;Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact
trigger3 = stateno = 1350 ;Air blocking