;-| super motions |--------------------------------------------------------

[command]
name = "pedradas"
command = ~D, DF, F, a+b
time = 20

[command] 
name = "pedradas"   
command = ~D, DF, F, b+c
time = 20

[command]
name = "super_twister"
command = ~D, DF, F, x+y
time = 20

[command] 
name = "super_twister"   
command = ~D, DF, F, y+z
time = 20

[command]
name = "tornadosuper"
command = ~D, DB, B, x+y
time = 20

[command] 
name = "tornadosuper"   
command = ~D, DB, B, y+z
time = 20

;-| special motions |------------------------------------------------------

[command]
name = "flashingblade"
command = a, a, a
time = 35

[command]
name = "flashingblade"
command = b, b, b
time = 35

[command]
name = "flashingblade"
command = c, c, c
time = 45

[command]
name = "soco_raio"
command = ~D, DF, F, a

[command]
name = "soco_raio"
command = ~D, DF, F, b

[command]
name = "soco_raio"
command = ~D, DF, F, c

[command]
name = "golpes_invisiveis"
command =  ~58$B, F, a
time = 30

[command]
name = "golpes_invisiveis"
command =  ~58$B, F, b
time = 30

[command]
name = "golpes_invisiveis"
command =  ~58$B, F, c
time = 30

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

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

[command]
name = "wind_z"
command = ~D, DF, F, z

[command]
name = "twister_x"
command = ~D, DB, B, x

[command]
name = "twister_y"
command = ~D, DB, B, y

[command]
name = "twister_z"
command = ~D, DB, B, z

[command]
name = "high_speed"
command = ~F, D, F, x

[command]
name = "high_speed"
command = ~F, D, F, y

[command]
name = "high_speed"
command = ~F, D, F, z

[command]
name = "wallandceiling"
command = ~B, D, B, a

[command]
name = "wallandceiling"
command = ~B, D, B, b

[command]
name = "wallandceiling"
command = ~B, D, B, c

[command]
name = "rapidpunch_x"
command = x, x, x
time = 35

[command]
name = "rapidpunch_y"
command = y, y, y
time = 35

[command]
name = "rapidpunch_z"
command = z, z, z
time = 35

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

[command]
name = "superjump"
command = a+b+c
time = 20

[Command]
name = "Jay"
command = b+y

;-| 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 = "superjump"
command = $D, $U
time = 20

; Don't remove the Following line. it's required by the cmd standard.
[statedef -1]

;===========================================================================
;===========================================================================
[State -1]
type = ChangeState
value = 4000
triggerall = NumHelper(800) = 0
triggerall = command = "Jay"
triggerall = var(12) != 0
trigger1 = statetype = S
trigger1 = ctrl = 1
;===========================================================================
[State -1]
type = ChangeState
value = 4100
triggerall = NumHelper(800) = 0
triggerall = command = "Jay"
triggerall = power >= 500
trigger1 = statetype = S
trigger1 = ctrl = 1
;===========================================================
; ---------------------pedradas-----------------------------
;===========================================================
[state -1]
type = changestate
value = 3010
triggerall = command = "pedradas"
triggerall = command != "holddown"
triggerall = statetype = s
trigger1 = power >= 1000
trigger1 = ctrl = 1
trigger2 = (stateno = [200,230]) && movecontact
trigger3 = (stateno = [400,430]) && movecontact
trigger4 = (stateno = [210,240]) && movecontact
trigger5 = (stateno = [410,440]) && movecontact
;---------------------------------------------------------------------------
; super twister
[state -1, super twister]
type = changestate
value = 3000
triggerall = command = "super_twister"
triggerall = power >= 1000
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = statetype != a
trigger2 = hitdefattr = sc, na, sa
trigger2 = movecontact

;===========================================================================
;--------------------------------- super ataques ---------------------------
;===========================================================================

;Tornado horizontal
[State -1, Tornado horizontal]
type = ChangeState
value = 3100
triggerall = power > 1000
triggerall = command = "tornadosuper"
trigger1 = statetype != A
trigger1 = ctrl

;===========================================================================
;--------------------------------- Flashing Blade -----------------------
;===========================================================================
[state -1,Flashing Blade]
type = changestate
value = 1700
triggerall = command = "flashingblade"
trigger1 = statetype = s
trigger1 = ctrl; = 1

;===========================================================================
;--------------------------------- Flash punch -----------------------
;===========================================================================
[state -1]
type = changestate
value = 1600
triggerall = command = "soco_raio"
trigger1 = statetype != a && ctrl
trigger2 = var(6) = [1,5]
trigger2 = (stateno =  [200, 450] )
trigger3 = var(6) = [1,5]
trigger3 =  movecontact
;===========================================================================

;===========================================================================
;--------------------------------- golpes invisiveis -----------------------
;===========================================================================
[state -1]
type = changestate
value = 1500
triggerall = command = "golpes_invisiveis"
triggerall = command != "holddown"
;triggerall = power >= 2000
trigger1 = statetype = s
trigger1 = ctrl = 1
trigger2 = stateno = [200, 3000]
trigger2 = movecontact

;high speed knock Down
[state -1,high speed knock Down]
type = changestate
value = 1300
triggerall = command = "high_speed"
trigger1 = statetype = s
trigger1 = ctrl = 1

;----------------------------------------------------------------------------
;wall & ceiling run
[state -1,wall & ceiling run]
type = changestate
value = 1400
triggerall = command = "wallandceiling"
trigger1 = statetype = s
trigger1 = ctrl

;---------------------------------------------------------------------------
;wind_x
[state -1]
type = changestate
value = 1000
triggerall = command = "wind_x"
triggerall = numhelper = 0
trigger1 = statetype = s
trigger1 = ctrl = 1
trigger2 = stateno = 200        ;stand_a
trigger3 = stateno = 230        ;stand_x
trigger3 = movecontact
trigger4 = stateno = 240        ;stand_y
trigger4 = movecontact
trigger5 = stateno = 250        ;stand_z
trigger5 = movecontact
trigger6 = stateno = 400        ;crouch_a
trigger6 = movecontact
trigger6 = time > 7
trigger7 = stateno = 430        ;crouch_x
trigger7 = movecontact
trigger7 = time > 6
trigger8 = stateno = 440        ;crouch_y
trigger8 = movecontact
trigger9 = stateno = 355        ;stand_back_z
trigger9 = movecontact
trigger10 = stateno = 245       ;stand_y (close)
trigger10 = movecontact

;---------------------------------------------------------------------------
;wind_y
[state -1]
type = changestate
value = 1002
triggerall = command = "wind_y"
triggerall = numhelper = 0
trigger1 = statetype = s
trigger1 = ctrl = 1
trigger2 = stateno = 200        ;stand_a
trigger3 = stateno = 230        ;stand_x
trigger3 = movecontact
trigger4 = stateno = 240        ;stand_y
trigger4 = movecontact
trigger5 = stateno = 250        ;stand_z
trigger5 = movecontact
trigger6 = stateno = 400        ;crouch_a
trigger6 = movecontact
trigger6 = time > 7
trigger7 = stateno = 430        ;crouch_x
trigger7 = movecontact
trigger7 = time > 6
trigger8 = stateno = 440        ;crouch_y
trigger8 = movecontact
trigger9 = stateno = 355        ;stand_back_z
trigger9 = movecontact
trigger10 = stateno = 245       ;stand_y (close)
trigger10 = movecontact

;---------------------------------------------------------------------------
;wind_z
[state -1]
type = changestate
value = 1003
triggerall = command = "wind_z"
triggerall = numhelper = 0
trigger1 = statetype = s
trigger1 = ctrl = 1
trigger2 = stateno = 200        ;stand_a
trigger3 = stateno = 230        ;stand_x
trigger3 = movecontact
trigger4 = stateno = 240        ;stand_y
trigger4 = movecontact
trigger5 = stateno = 250        ;stand_z
trigger5 = movecontact
trigger6 = stateno = 400        ;crouch_a
trigger6 = movecontact
trigger6 = time > 7
trigger7 = stateno = 430        ;crouch_x
trigger7 = movecontact
trigger7 = time > 6
trigger8 = stateno = 440        ;crouch_y
trigger8 = movecontact
trigger9 = stateno = 355        ;stand_back_z
trigger9 = movecontact
trigger10 = stateno = 245       ;stand_y (close)
trigger10 = movecontact

;---------------------------------------------------------------------------
;twister
[state -1, weak twister]
type = changestate
value = 1101
triggerall = command = "twister_x"
trigger1 = statetype != a
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;except For sweep kick
trigger2 = movecontact

;---------------------------------------------------------------------------
;twister
[state -1, strong twister]
type = changestate
value = 1102
triggerall = command = "twister_y"
trigger1 = statetype != a
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;except For sweep kick
trigger2 = movecontact

;---------------------------------------------------------------------------
;twister
[state -1, Fierce twister]
type = changestate
value = 1103
triggerall = command = "twister_z"
trigger1 = statetype != a
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;except For sweep kick
trigger2 = movecontact

;----------------------------------------------------------------------------
;rapid punch_x
[state -1,rapid punch]
type = changestate
value = 1200
triggerall = command = "rapidpunch_x"
trigger1 = statetype = s
trigger1 = ctrl = 1

;----------------------------------------------------------------------------
;rapid punch_y
[state -1,rapid punch]
type = changestate
value = 1200
triggerall = command = "rapidpunch_y"
trigger1 = statetype = s
trigger1 = ctrl = 1

;----------------------------------------------------------------------------
;rapid punch_z
[state -1,rapid punch]
type = changestate
value = 1200
triggerall = command = "rapidpunch_z"
trigger1 = statetype = s
trigger1 = ctrl = 1

;===========================================================================
;---------------------------------------------------------------------------
;run Fwd
;ƒ_ƒbƒvƒ…
[state -1, run Fwd]
type = changestate
value = 100
trigger1 = command = "ff"
trigger1 = statetype = s
trigger1 = ctrl

;---------------------------------------------------------------------------
;run back
;œã‘þƒ_ƒbƒvƒ…
[state -1, run back]
type = changestate
value = 105
trigger1 = command = "bb"
trigger1 = statetype = s
trigger1 = ctrl; = 0

;---------------------------------------------------------------------------
;super jump
[state -1, super jump]
type = changestate
value = 1045
trigger1 = command = "superjump"
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = command = "holdup"
trigger2 = stateno = 450
trigger2 = movehit


;===========================================================================
;--------------------------------- normal ataques --------------------------
;===========================================================================


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

;---------------------------------------------------------------------------
;stand medium punch
[state -1, stand medium punch]
type = changestate
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6

;---------------------------------------------------------------------------
;stand strong punch
[state -1, stand strong punch]
type = changestate
value = 220
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = (stateno = 210) && time > 5
trigger3 = (stateno = 230) && time > 6

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

;---------------------------------------------------------------------------
;standing medium kick
[state -1, standing medium kick]
type = changestate
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6

;---------------------------------------------------------------------------
;standing strong kick
[state -1, standing strong kick]
type = changestate
value = 250
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = (stateno = 240) && time > 5
trigger3 = (stateno = 210) && 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

;---------------------------------------------------------------------------
;crouching medium punch
[state -1, crouching medium 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 strong punch
[state -1, crouching strong punch]
type = changestate
value = 420
triggerall = command = "z"
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 medium kick
[state -1, crouching medium 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)

;---------------------------------------------------------------------------
;crouching strong kick
[state -1, crouching strong kick]
type = changestate
value = 450
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = c
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 440)
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 = statetime >= 7

;---------------------------------------------------------------------------
;jump medium punch
[state -1, jump medium punch]
type = changestate
value = 610
triggerall = command = "y"
trigger1 = statetype = a
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630
trigger2 = movecontact

;---------------------------------------------------------------------------
;jump strong punch
[state -1, jump strong punch]
type = changestate
value = 620
triggerall = command = "z"
trigger1 = statetype = a
trigger1 = ctrl
trigger2 = stateno = 610 || stateno = 640
trigger2 = movecontact

;---------------------------------------------------------------------------
;jump light kick
[state -1, jump light kick]
type = changestate
value = 630
triggerall = command = "a"
trigger1 = statetype = a
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = movecontact

;---------------------------------------------------------------------------
;jump medium kick
[state -1, jump medium kick]
type = changestate
value = 640
triggerall = command = "b"
trigger1 = statetype = a
trigger1 = ctrl
trigger2 = stateno = 610 || stateno = 630
trigger2 = movecontact

;---------------------------------------------------------------------------
;jump strong kick
[state -1, jump strong kick]
type = changestate
value = 650
triggerall = command = "c"
trigger1 = statetype = a
trigger1 = ctrl
trigger2 = stateno = 610 || stateno = 640
trigger2 = movecontact
