;-| Super Motions |--------------------------------------------------------
[Command]
name = "burning_body"
command = ~D,  F, D, F, a
time = 20

[Command]
name = "burning_body"
command = ~D, F, D, F, b
time = 20

[Command]
name = "soffio_di_fuoco"
command = ~D, F, D,  F, x
time = 20

[Command]
name = "soffio_di_fuoco"
command = ~D, F, D, F, y
time = 20

[Command]
name = "danza_di_fuoco"
command = ~D, B, D,  F, x
time = 20

[Command]
name = "danza_di_fuoco"
command = ~D,  B,  D,  F, y
time = 20

[Command]
name = "vortici_di_fuoco"
command = ~D,  B,  D,  F, a
time = 20

[Command]
name = "vortici_di_fuoco"
command = ~D,  B,  D,  F, b
time = 20

[Command]
name = "inferno"
command = ~D,  F,  D,  B, a
time = 20

[Command]
name = "inferno"
command = ~D,  F,  D, B, b
time = 20

;Death Mode
[Command]
name = "Death_Mode"
command = a+x
time = 1

;Death Mode
[Command]
name = "Death_Mode"
command = b+y
time = 1

;Death Mode
[Command]
name = "Death_Mode"
command = c+z
time = 1

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

[Command]
name = "fireball_x"
command = ~D, DF, F, x
time = 20

[Command]
name = "fireball_y"
command = ~D, DF, F, y
time = 20

[Command]
name = "geyser_a"
command = ~D, DF, F, a
time = 20

[Command]
name = "geyser_b"
command = ~D, DF, F, b
time = 20

[Command]
name = "schermo"
command = ~F, DF, D, DB, B, x
time = 20

[Command]
name = "schermo"
command = ~F, DF, D, DB, B, y
time = 20

[Command]
name = "lama_di_fuoco"
command = ~D, DB, B, x
time = 20

[Command]
name = "lama_di_fuoco"
command = ~D, DB, B, y
time = 20

[Command]
name = "shoryuken"
command = ~F, D, DF, F, x
time = 20

[Command]
name = "shoryuken"
command = ~F, D, DF, F, y
time = 20

[Command]
name = "counter"
command = ~B, DB, D, DF, F, a
time = 20

[Command]
name = "counter"
command = ~B, DB, D, DF, F, b
time = 20

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

;-| 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 = "s"
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

;-| Hold Button |--------------------------------------------------------------

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

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

; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]

;***********************************************
;SUPER MOVES
;***********************************************
;Super level 1
[State -1]
type = ChangeState
value = 3000
triggerall = power >= 1000
triggerall = command = "burning_body"
triggerall = var(9) != 1
trigger1 = statetype = S
trigger1 = ctrl

;Super level 2
[State -1]
type = ChangeState
value = 3100
triggerall = power >= 1000
triggerall = command = "soffio_di_fuoco"
triggerall = var(9) != 1
trigger1 = statetype = S
trigger1 = ctrl

;Super level 3
[State -1]
type = ChangeState
value = 3200
triggerall = power >= 2000
triggerall = command = "danza_di_fuoco"
triggerall = var(9) != 1
trigger1 = statetype = S
trigger1 = ctrl

;Super level 4
[State -1]
type = ChangeState
value = 3300
triggerall = power >= 2000
triggerall = command = "vortici_di_fuoco"
triggerall = var(9) != 1
trigger1 = statetype = S
trigger1 = ctrl

;Death Mode
[State -1, Death Mode]
type = ChangeState
value = 3500 + 10*(var(10)=1)
triggerall = command = "Death_Mode"
triggerall = power >= 3000 || var(10)=1
triggerall = !var(59)
triggerall = var(9) != 1
trigger1 = statetype = S
trigger1 = ctrl

;Inferno
[State -1]
type = ChangeState
value = 3400
triggerall = power >= 3000
triggerall = command = "inferno"
triggerall = var(10) ;si può eseguire solo in death mode
triggerall = var(9) != 1
trigger1 = statetype = S
trigger1 = ctrl

;***********************************************
;SPECIAL MOVES
;***********************************************
[State -1]
type = ChangeState
value = 1000
triggerall = var(9) != 1
triggerall = command = "counter"
trigger1 = statetype = S
trigger1 = ctrl

[State -1]
type = ChangeState
value = 1200
triggerall = var(9) != 1
triggerall = command = "schermo"
trigger1 = statetype = S
trigger1 = ctrl

[State -1]
type = ChangeState
value = 1300
triggerall = var(9) != 1
triggerall = command = "shoryuken"
trigger1 = statetype = S
trigger1 = ctrl

[State -1]
type = ChangeState
value = 1100+50*(statetype = A)
triggerall = var(9) != 1
triggerall = NumProjID(1100) = 0
triggerall = command = "fireball_x"
triggerall = ctrl
trigger1 = statetype = S
trigger2 = statetype = A

[State -1]
type = ChangeState
value = 1101+50*(statetype = A)
triggerall = var(9) != 1
triggerall = NumProjID(1100) = 0
triggerall = command = "fireball_y"
triggerall = ctrl
trigger1 = statetype = S
trigger2 = statetype = A

[State -1]
type = ChangeState
value = 1500
triggerall = var(9) != 1
triggerall = command = "geyser_a"
trigger1 = statetype = S
trigger1 = ctrl

[State -1]
type = ChangeState
value = 1501
triggerall = var(9) != 1
triggerall = command = "geyser_b"
trigger1 = statetype = S
trigger1 = ctrl

[State -1]
type = ChangeState
value = 1400
triggerall = var(9) != 1
triggerall = command = "lama_di_fuoco"
trigger1 = statetype = S
trigger1 = ctrl

;***********************************************
;RUN
;***********************************************
;Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = var(9) != 1
triggerall = command = "FF"
trigger1 = ctrl
trigger1 = statetype = S

;Run Back
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = var(9) != 1
triggerall = command = "BB"
trigger1 = ctrl
trigger1 = statetype = S

;***********************************************
;THROWS
;***********************************************
[State -1]
type = ChangeState
value = 800
triggerall = var(9) != 1
triggerall = command = "z"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = p2bodydist X<10
trigger1 = statetype = S
trigger1 = ctrl

[State -1]
type = ChangeState
value = 850
triggerall = var(9) != 1
triggerall = command = "c"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = p2bodydist X<10
trigger1 = statetype = S
trigger1 = ctrl

;***********************************************
;STAND BASIC
;***********************************************
;Pugno debole
[State -1]
type = ChangeState
value = 200+5*(p2bodydist X<8)
triggerall = var(9) != 1
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,205]
trigger2 = Time > 7

;Pugno forte
[State -1]
type = ChangeState
value = 210+5*(p2bodydist X<8)
triggerall = var(9) != 1
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,205]
trigger2 = movecontact
trigger3 = stateno = [250,256]
trigger3 = movecontact

;Calcio debole
[State -1]
type = ChangeState
value = 250+5*(p2bodydist X<8)
triggerall = var(9) != 1
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,205]
trigger2 = movecontact

;Calcio forte
[State -1]
type = ChangeState
value = 260+5*(p2bodydist X<8)
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = var(9) != 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,205]
trigger2 = movecontact
trigger3 = stateno = [210,215]
trigger3 = movecontact
trigger4 = stateno = [250,256]
trigger4 = movecontact

;***********************************************
;CROUCH BASIC
;***********************************************
;Crouch ­Pugno debole
[State -1]
type = ChangeState
value = 400
triggerall = var(9) != 1
triggerall = command = "x" || command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = [200,205]
trigger2 = Time > 7
trigger3 = stateno = 400
trigger3 = Time > 7

;---------------------------------------------------------------------------
;Crouch ­Calcio debole
[State -1]
type = ChangeState
value = 450
triggerall = var(9) != 1
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 400
trigger2 = movecontact

;---------------------------------------------------------------------------
;Crouch Calcio forte
[State -1]
type = ChangeState
value = 460
triggerall = var(9) != 1
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 400
trigger2 = movecontact
trigger3 = stateno = 450
trigger3 = movecontact

;***********************************************
;AIR BASIC
;***********************************************
;---------------------------------------------------------------------------
;pugno debole in aria
[State -1]
type = ChangeState
value = 600
triggerall = var(9) != 1
trigger1 = command = "x"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;pugno forte in aria
[State -1]
type = ChangeState
value = 610
triggerall = var(9) != 1
trigger1 = command = "y"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;calcio debole in aria
[State -1]
type = ChangeState
value = 650
triggerall = var(9) != 1
trigger1 = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;calcio forte in aria
[State -1]
type = ChangeState
value = 660
triggerall = var(9) != 1
trigger1 = command = "b"
trigger1 = statetype = A
trigger1 = ctrl

;***********************************************
;TAUNT
;***********************************************
[State -1]
type = ChangeState
value = 195
triggerall = var(9) != 1
triggerall = command = "s"
trigger1 = statetype = S
trigger1 = ctrl = 1
