;==================================================================

;====================================================================
;-| Hyper      |----------------------------------------
[command]
name = "orochi"
command = ~D, B, D, F, a
time = 25

[command]
name = "orochi"
command = ~D, B, D, F, c
time = 25

[command]
name = "orochi1"
command = ~D, B, D, F, c+a
time = 25


[command]
name = "HM"
command = ~D, F, D, F, b
time = 25

[command]
name = "HM1"
command = ~D, F, D, F, z
time = 25

[command]
name = "Ran"
command = ~D, F, D, B, a
time = 25

[command]
name = "Ran"
command = ~D, F, D, B, c
time = 25

[command]
name = "Ran1"
command = ~D, F, D, B, a+c
time = 25


;-| Special    |----------------------------------------
;upper cut
[command]
name = "DP_a"
command = ~F, D, DF, F,a
time = 25

;upper cut
[command]
name = "DP_c"
command = ~F, D, DF, F,c
time = 25

;raising kick
[command]
name = "DP_B"
command = ~B, D, DB, B, b
time = 20

;raising kick
[command]
name = "DP_Y"
command = ~B, D, DB, B, z
time = 20

;SK
[command]
name = "SK"
command = F, D, DF, F, z
time = 25

;TKF
[command]
name = "TKF"
command = D, DB , B, b
time = 20

;RP
[command]
name = "RP"
command = D, DB, B, a
time = 20

;RP1
[command]
name = "RP1"
command = D, DB, B, c
time = 20



;TK
[command]
name = "TK"
command = D, DB, B, b
time = 20

;TK
[command]
name = "TK1"
command = D, DB, B, z
time = 20

;DK
[command]
name = "DK"
command = D, DF, F, b
time = 15


;Tonado
[command]
name = "tonado_X"
command = ~B, D, B, c
time = 20

[command]
name = "tonado_a"
command = ~B, D, B, a
time = 20


;first combo a
[command]
name = "comboa"
command = D, DB, B, a

[command]
name = "comboa1"
command = D, DF, F, b

;first combo c
[command]
name = "comboc"
command = D, DB, B, c


;power wave
[Command]
name = "power_wave1"
command = ~D, DF, F, a
time = 20

;power wave
[Command]
name = "power_wave2"
command = ~D, DF, F, c
time = 20


;Reversal_B
[command]
name= "reversal_B"
command = ~D, DF, F, a
time = 25


;Reversal_Y
[command]
name= "reversal_Y"
command = ~D, DF, F, c
time = 25



;-| Double Tap |-----------------------------------------------------------

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

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

;-| 2/3 Button Combination |-----------------------------------------------

[Command]
name = "recovery"
command = a+b
time = 1

[Command]
name = "dodge"
command = c+z
time = 1

[Command]
name = "CD"
command = c+z
time = 1

[Command]
name = "st"
command = b+c
time = 3

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "fwdlowkick"
command = /DF,b
time = 1

[Command]
name = "fwd_a"
command = /F,a
time = 1

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

[Command]
name = "fwd_x"
command = /F,c
time = 1

[Command]
name = "fwd_y"
command = /F,z
time = 1

[Command]
name = "back_b"
command = /B,b
time = 1

[Command]
name = "back_y"
command = /B,z
time = 1

;-| Single Button |---------------------------------------------------------

[Command]
name = "a"
command = a
time = 1

[Command]
name = "hold_a"
command = /$a
time = 1

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

[Command]
name = "b"
command = b
time = 1

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

[Command]
name = "hold_z"
command = /$z
time = 1

[command]
name = "punch"
command = a
time = 1


[command]
name = "punch"
command = c
time = 1


[Command]
name = "c"
command = x
time = 1

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

[Command]
name = "x"
command = c
time = 1

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

[Command]
name = "y"
command = z
time = 1

[Command]
name = "hold_y"
command = /$z
time = 1

[Command]
name = "z"
command = y
time = 1

[Command]
name = "hold_z"
command = /$y
time = 1

[Command]
name = "s"
command = s
time = 1

[Command]
name = "hold_s"
command = /$s
time = 1

;-| Hold Dir |--------------------------------------------------------------

[Command]
name = "holdfwd_x"
command = /$F, c
time = 1

[Command]
name = "holdfwd_y"
command = /$F, z
time = 1

[command]
name = "holdback_x"
command = /$D, c
time = 1

[Command]
name = "holdfwd"
command = /$F
time = 1

[Command]
name = "holdback"
command = /$B
time = 1

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

[Command]
name = "holddown"
command = /$D
time = 1

;longjump
[Command]
name = "longjump"
command = D, $U
time = 18


;---------------------------------------------------------------------------
; 2. State entry
; --------------
; This is where you define what commands bring you to what states.
;
; Each state entry block looks like:
;   [State -1]                  ;Don't change this
;   type = ChangeState          ;Don't change this
;   value = new_state_number
;   trigger1 = command = command_name
;   . . .  (any additional triggers)
;
; - new_state_number is the number of the state to change to
; - command_name is the name of the command (from the section above)
; - Useful triggers to know:
;   - statetype
;       S, C or A : current state-type of player (stand, crouch, air)
;   - ctrl
;       0 or 1 : 1 if player has control. Unless "interrupting" another
;                move, you'll want ctrl = 1
;   - stateno
;       number of state player is in - useful for "move interrupts"
;   - movecontact
;       0 or 1 : 1 if player's last attack touched the opponent
;                useful for "move interrupts"
;
; For reference on triggers, see CNS documentation.
;
; Just for your information (skip if you're not interested):
; This part is an extension of the CNS. "State -1" is a special state
; that is executed once every game-tick, regardless of what other state
; you are in.


; Don't remove the following line. It's required by the CMD standard.

;-|Commands|------------------------------------------------------------------------------
[Statedef -1]
;==========================================
;AI
;==========================================
[State -1, dodge]
type = changestate
triggerall = var(7) >= 1
triggerall = p2movetype = A
triggerall = statetype != A
triggerall = ctrl = 1
triggerall = random = [0,699]
trigger1 = P2bodydist X >= 20
trigger1 = P2bodydist X <= 100
trigger2 = p2stateno = [1000,1550]
value = 350

[state -1, clk]
type = changestate
triggerall = var(7)=1
triggerall = p2statetype !=C
triggerall = p2statetype !=A
triggerall = statetype != A
triggerall = ctrl = 1
triggerall = random = [0,699]
trigger1 = p2movetype != H
trigger1 = P2bodydist X <= 30
value = 410

[State -1]
type = ChangeState
value = 400
triggerall = var(7) = 1
triggerall = statetype = C
trigger1 = stateno = 410
trigger1 = Movehit = 1



[State -1]
type = ChangeState
value = 3006
triggerall = power = 3000
triggerall = var(7) = 1
triggerall = var(12) != 1
triggerall = p2stateno != [5030,5200]
triggerall = statetype != A
triggerall = p2bodydist x < 150
triggerall = random = [0,699]
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger6 = stateno = 351
trigger6 = movecontact = 1
trigger7 = p2movetype = A
trigger7 = p2bodydist X >=20
trigger7 = p2bodydist X <=100

[State -1]
type = ChangeState
value = 3540
triggerall = power >= 2000
triggerall = var(7) = 1
triggerall = var(12) != 1
triggerall = p2stateno != [5030,5200]
triggerall = statetype != A
triggerall = random = [0,699]
trigger1 = ctrl = 1
trigger2 = p2movetype = A
trigger2 = p2statetype != A
trigger2 = p2bodydist x >= 60
trigger2 = random = [0,899]
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger6 = stateno = 351
trigger6 = movecontact = 1


[State -1]
type = ChangeState
value = 3000
triggerall = power >= 1000
triggerall = var(7) = 1
triggerall = var(12) != 1
triggerall = p2stateno != [5030,5200]
triggerall = statetype != A
triggerall = p2bodydist x < 150
triggerall = random = [0,899]
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger6 = stateno = 351
trigger6 = movecontact = 1
trigger7 = p2movetype = A
trigger7 = p2bodydist X >=20
trigger7 = p2bodydist X <=100



;2nd combo
[State -1]
type = ChangeState
value = 510
triggerall = var(7) = 1
triggerall = var(12) != 1
triggerall = statetype = S
trigger1 = stateno = 500
trigger1 = Time > 13
trigger2 = stateno = 500
trigger2 = MoveContact = 1

[State -1]
type = ChangeState
value = 1502
triggerall = Var(7) >= 1
triggerall = var(12) != 1
triggerall = random < 600
triggerall = p2stateno != [5030,5200]
triggerall = statetype = S
triggerall = P2bodydist X = (5,50)
triggerall = ctrl
triggerall = FrontEdgeDist > 50
trigger1 = P2dist Y = (-50,-40)
trigger2 = P2statetype = A
trigger3 = P2movetype = A
trigger3 = p2movetype !=H

;3rd combo II
[State -1]
type = ChangeState
value = 530
triggerall = var(7) = 1
triggerall = var(12) != 1
triggerall = random = [100,900]
triggerall = statetype = S
trigger1 = stateno = 510
trigger1 = Time > 13
trigger2 = stateno = 510
trigger2 = MoveContact = 1

;3rd combo I
[State -1]
type = ChangeState
value = 520
triggerall = var(7) = 1
triggerall = var(12) != 1
triggerall = random = [100,900]
triggerall = statetype = S
trigger1 = stateno = 510
trigger1 = Time > 13
trigger2 = stateno = 510
trigger2 = MoveContact = 1


;3rd combo II
[State -1]
type = ChangeState
value = 1300
triggerall = var(7) = 1
triggerall = var(12) != 1
triggerall = random = [100,300]
triggerall = statetype = S
trigger1 = stateno = 530
trigger1 = Time > 13
trigger2 = stateno = 530
trigger2 = MoveContact = 1

[State -1]
type = ChangeState
value = 6000
triggerall = Var(7) >= 1
triggerall = var(12) != 1
triggerall = Var(4) != 1
triggerall = statetype = S
triggerall = P2bodydist X = (0,40)
triggerall = ctrl
trigger1 = P2dist Y = (-50,-40)
trigger2 = P2statetype = A
trigger2 = P2movetype != H
trigger3 = P2movetype = A
trigger4 = P2statetype = S



[State -1]
type = ChangeState
value = 420
triggerall = Var(7) >= 1
triggerall = statetype != A
triggerall = random < 500
triggerall = P2bodydist X = (5,30)
triggerall = ctrl
trigger1 = P2dist Y = (-50,-40)
trigger2 = P2statetype = S


[State -1]
type = ChangeState
value = 301
triggerall = var(7) = 1
triggerall = random = [100,900]
triggerall = statetype = S
trigger1 = stateno = 420
trigger1 = Movehit = 1
trigger2 = stateno = 400
trigger2 = Movehit = 1



[State -1]
type = ChangeState
value = 1000
triggerall = Var(7)>=1
triggerall = var(12) != 1
triggerall = statetype != A
triggerall = random = [0,599]
triggerall = p2movetype !=H
triggerall = p2bodydist x >=200
triggerall = ctrl
trigger1 = p2bodydist y = [-10,0]
trigger2 = p2movetype = A

;2nd combo
[State -1]
type = ChangeState
value = 560
triggerall = var(7) = 1
triggerall = var(12) != 1
triggerall = statetype = S
trigger1 = stateno = 550
trigger1 = Time > 13
trigger2 = stateno = 550
trigger2 = MoveContact = 1

;3nd combo
[State -1]
type = ChangeState
value = 570
triggerall = var(7) = 1
triggerall = var(12) != 1
triggerall = statetype = S
trigger1 = stateno = 560
trigger1 = Time > 13
trigger2 = stateno = 560
trigger2 = Movehit = 1
;============================================================================================
;==========================
;transform
;==========================
[State -1]
type = ChangeState
value = 700
trigger1 = stateno = 0
trigger1 = command = "st"
trigger1 = ctrl = 1
trigger1 = var(12)  != 1
trigger1 = statetype != A

[State -1]
type = ChangeState
value = 701
trigger1 = stateno = 0
trigger1 = command = "st"
trigger1 = ctrl = 1
trigger1 = var(12)  = 1
trigger1 = statetype != A

;==========================================
SUPPERS
;==========================================
[State -1]
type = ChangeState
value = 4000
triggerall = var(12) = 1
triggerall = power >= 1000
triggerall = command = "HM"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1

[State -1]
type = ChangeState
value = 4004
triggerall = var(12) = 1
triggerall = power >= 1000
triggerall = command = "HM1"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1


[State -1]
type = ChangeState
value = 3559
triggerall = var(12) != 1
triggerall = var(4) != 1
triggerall = power >= 2000
triggerall = command = "Ran1"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1


[State -1]
type = ChangeState
value = 3540
triggerall = var(12) != 1
triggerall = var(4) != 1
triggerall = power >= 1000
triggerall = command = "Ran"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1



[State -1]
type = ChangeState
value = 3006
triggerall = var(12) != 1
triggerall = power >= 2000
triggerall = command = "orochi1"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1



[State -1]
type = ChangeState
value = 3000
triggerall = var(12) != 1
triggerall = power >= 1000
triggerall = command = "orochi"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1

;==========================================
;special
;==========================================
;Throw Attack C
[State -1]
type = ChangeState
value = 370
triggerall = P2bodydist X <= 2
triggerall = p2movetype != H
triggerall = p2statetype != A
triggerall = statetype = S
triggerall = p2stateno != 5120
triggerall = ctrl
trigger1 = stateno != 100
trigger1 = command = "fwd_x"
trigger2 = Var(7) >= 1
trigger2 = Random <= 100

[State -1]
type = VarSet
v = 2
value = 1
trigger1 = command = "fwd_y"
trigger1 = stateno = 1504

[State -1]
type = VarSet
v = 2
value = 2
trigger1 = command = "fwd_b"
trigger1 = stateno = 1504
;===========================================
;slide
[State -1]
type = changeState
value = 550
triggerall = var(12) = 1 
triggerall = command = "fwdlowkick"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1

[State -1]
type = ChangeState
value = 710
triggerall = var(7) != 1
triggerall = var(12) = 1
triggerall = command = "punch"
triggerall = statetype = S
trigger1 = stateno = 550
trigger1 = Time > 13
trigger2 = stateno = 550
trigger2 = MoveContact = 1


;uppercut
[State -1]
type = changeState
value = 1500
triggerall = var(12) != 1 
triggerall = command = "DP_a"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1
trigger7 = stateno = 1720
trigger7 = movecontact = 1
trigger8 = stateno = 1730
trigger8 = movecontact = 1


;---------------------------------------------------
[State -1]
type = changeState
value = 1502
triggerall = var(12) != 1 
triggerall = command = "DP_c"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1
trigger7 = stateno = 1720
trigger7 = movecontact = 1
trigger8 = stateno = 1730
trigger8 = movecontact = 1
;==========================================================
;Spin kick
[State -1]
type = ChangeState
value = 1775
triggerall = var(12) = 1
triggerall = var(7) != 1
triggerall = command = "DP_B"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1
trigger7 = stateno = 1720
trigger7 = movecontact = 1
trigger8 = stateno = 1730
trigger8 = movecontact = 1
trigger9 = stateno = 313
trigger9 = movecontact = 1

;----------------------------------
;spin kick 
[State -1]
type = ChangeState
value = 1770
triggerall = var(12) = 1 
triggerall = var(7) != 1
triggerall = command = "DP_Y"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1
trigger7 = stateno = 1720
trigger7 = movecontact = 1
trigger8 = stateno = 1730
trigger8 = movecontact = 1

; air Spin kick
[State -1]
type = ChangeState
value = 1777
triggerall = var(12) = 1 
triggerall = command = "DP_B"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 314
trigger2 = movecontact = 1
;----------------------------------
;spin kick 
[State -1]
type = ChangeState
value = 1778
triggerall = var(12) = 1 
triggerall = command = "DP_Y"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 314
trigger2 = movecontact = 1

;==========================================================
;SK STARt
[State -1]
type = changeState
value = 2118
triggerall = var(12) = 1 
triggerall = var(7) != 1
triggerall = command = "SK"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1
trigger7 = stateno = 710
trigger7 = movecontact = 1



;SK Mid
[State -1]
type = ChangeState
value = 2110
triggerall = var(12) = 1
triggerall = var(7) != 1
triggerall = command = "SK"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger1 = stateno = 2060
trigger1 = time > 14
trigger2 = stateno = 2060
trigger2 = movecontact = 1



;tK STARt
[State -1]
type = changeState
value = 2123
triggerall = var(12) = 1     
triggerall = var(7) != 1
triggerall = command = "TKF"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1
trigger7 = stateno = 710
trigger7 = movecontact = 1


;TK Mid
[State -1]
type = ChangeState
value = 2114
triggerall = var(12) = 1
triggerall = var(7) != 1
triggerall = command = "TKF"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger1 = stateno = 2060
trigger1 = time > 14
trigger2 = stateno = 2060
trigger2 = movecontact = 1




;==========================================================

;Tonado

[State -1]
type = changeState
value = 6000
triggerall = var(12) != 1 
triggerall = var(4) != 1
triggerall = command = "tonado_X"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1
trigger7 = stateno = 1720
trigger7 = movecontact = 1
trigger8 = stateno = 1730
trigger8 = movecontact = 1

[State -1]
type = changeState
value = 6010
triggerall = var(12) != 1 
triggerall = var(4) != 1
triggerall = command = "tonado_a"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1
trigger7 = stateno = 1720
trigger7 = movecontact = 1
trigger8 = stateno = 1730
trigger8 = movecontact = 1

;=============================================
;1combo
[state -1]
type = changestate
value = 500
triggerall = var(12) != 1 
triggerall = command = "comboa"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1

;2nd combo
[State -1]
type = ChangeState
value = 510
triggerall = var(12) != 1
triggerall = command = "comboa"
triggerall = statetype = S
trigger1 = stateno = 500
trigger1 = Time > 13
trigger2 = stateno = 500
trigger2 = MoveContact = 1

;3rd combo I
[State -1]
type = ChangeState
value = 520
triggerall = var(12) != 1
triggerall = command = "comboa"
triggerall = statetype = S
trigger1 = stateno = 510
trigger1 = Time > 13
trigger2 = stateno = 510
trigger2 = MoveContact = 1

;3rd combo II
[State -1]
type = ChangeState
value = 530
triggerall = var(12) != 1
triggerall = command = "comboa1"
triggerall = statetype = S
trigger1 = stateno = 510
trigger1 = Time > 13
trigger2 = stateno = 510
trigger2 = MoveContact = 1

;3rd combo II
[State -1]
type = ChangeState
value = 1300
triggerall = var(12) != 1
triggerall = command = "comboa1"
triggerall = statetype = S
trigger1 = stateno = 530
trigger1 = Time > 13
trigger2 = stateno = 530
trigger2 = MoveContact = 1
;+++++++++++++++++++++++++++++++++++++++
;1combo
[state -1]
type = changestate
value = 550
triggerall = var(12) != 1
triggerall = command = "comboc"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1

;2nd combo
[State -1]
type = ChangeState
value = 560
triggerall = var(12) != 1
triggerall = command = "comboc"
triggerall = statetype = S
trigger1 = stateno = 550
trigger1 = Time > 13
trigger2 = stateno = 550
trigger2 = MoveContact = 1

;3nd combo
[State -1]
type = ChangeState
value = 570
triggerall = var(12) != 1
triggerall = command = "holdfwd_x"
triggerall = statetype = S
trigger1 = stateno = 560
trigger1 = Time > 13
trigger2 = stateno = 560
trigger2 = MoveContact = 1

;================================================
;power wave
[State -1]
type = ChangeState
value = 1000
triggerall = var(12) != 1
triggerall = var(4) != 1
triggerall = command = "power_wave2"
triggerall = numproj = 0
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1

[State -1]
type = ChangeState
value = 2000
triggerall = var(12) != 1
triggerall = var(4) != 1
triggerall = command = "power_wave1"
triggerall = numproj = 0
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1
;==========================================
;REVERSAL B
[State -1]
type = ChangeState
value = 8000
triggerall = var(12) = 1
triggerall = var(7) != 1
triggerall = command = "reversal_B"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1
trigger7 = stateno = 1720
trigger7 = movecontact = 1
trigger8 = stateno = 1730
trigger8 = movecontact = 1

;----------------------------------------------
;REVERSAL Y
[State -1]
type = ChangeState
value = 8004
triggerall = var(7) != 1
triggerall = var(12) = 1
triggerall = command = "reversal_Y"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1
trigger7 = stateno = 1720
trigger7 = movecontact = 1
trigger8 = stateno = 1730
trigger8 = movecontact = 1
;==================================================
;rever punch
[state -1]
type = ChangeState
value = 1203
triggerall = var(7) != 1
triggerall = var(12) = 1
triggerall = command = "RP"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1


;turn kick1
[state -1]
type = ChangeState
value = 1204
triggerall = var(7) != 1
triggerall = var(12) = 1
triggerall = command = "RP1"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1
;===============================================================

;DK
[state -1]
type = changestate
value = 2060
triggerall = var(12) = 1
triggerall = var(7) != 1
triggerall = command = "DK"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 356
trigger6 = stateno = 351
trigger6 = movecontact = 1
trigger7 = stateno = 710
trigger7 = movecontact = 1


;========================================
;Normal moves
;========================================
; 355 dodge backward
[State -1]
type = ChangeState
value = 355
trigger1 = command = "a"
trigger1 = command = "b"
trigger1 = command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = command = "c"
trigger2 = command = "holdback"
trigger2 = statetype = S
trigger2 = ctrl = 1

; 350 dodge forward
[State -1]
type = ChangeState
value = 350
trigger1 = command = "a"
trigger1 = command = "b"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = command = "c"
trigger2 = statetype = S
trigger2 = ctrl = 1

; 351 dodge forward attack
[State -1]
type = ChangeState
value = 351
triggerall = stateno = 350
trigger1 = command = "a"
trigger2 = command = "b"
trigger3 = command = "x"
trigger4 = command = "y"

; FWD_A
[State -1]
type = ChangeState
value = 300
triggerall = var(12) = !1
triggerall = command = "fwd_a"
trigger1 = statetype = S
trigger1 = ctrl = 1

; FWD_A Type 2
[State -1]
type = ChangeState
value = 301
triggerall = var(12) = !1
triggerall = command = "fwd_a"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 351
trigger4 = movecontact = 1


; FWD_B
[State -1]
type = ChangeState
value = 310
triggerall = command = "fwd_b"
trigger1 = statetype = S
trigger1 = ctrl = 1

; FWD_B Type2
[State -1]
type = ChangeState
value = 313
triggerall = command = "fwd_b"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [250,280]
trigger2 = movecontact = 1
trigger3 = stateno = [400,430]
trigger3 = movecontact = 1
trigger4 = stateno = 301
trigger4 = movecontact = 1
trigger5 = stateno = 1720
trigger5 = movecontact = 1
trigger5 = var(6) != 0
trigger6 = stateno = 1730
trigger6 = movecontact = 1
trigger6 = var(6) != 0
trigger7 = stateno = 351
trigger7 = movecontact = 1

; CD hit high
[State -1]
type = ChangeState
value = 320
triggerall = var(7) != 1
trigger1 = command = "CD"
trigger1 = statetype != A
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = command = "z"
trigger2 = statetype = S
trigger2 = ctrl = 1

; CD hit high (during guard)
[State -1]
type = ChangeState
value = 321
triggerall = command = "CD"
triggerall = command != "holddown"
triggerall = power >= 1000
triggerall = statetype != A
triggerall = stateno = 150
trigger1 = stateno = 152


; CD hit high in Air
[State -1]
type = ChangeState
value = 650
trigger1 = command = "CD"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = command = "z"
trigger2 = statetype = A
trigger2 = ctrl = 1
;================================================
; Stand_A (close)
[State -1]
type = ChangeState
value = 250
triggerall = command = "a"
triggerall = p2bodydist x <= 18
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 250
trigger2 = movecontact = 1

; Stand_A
[State -1]
type = ChangeState
value = 200
triggerall = command = "a"
trigger1 = statetype = S
trigger1 = ctrl = 1

; Stand_B (close)
[State -1]
type = ChangeState
value = 260
triggerall = command = "b"
triggerall = p2bodydist x <= 18
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 250
trigger2 = movecontact = 1

; Stand_B
[State -1]
type = ChangeState
value = 210
triggerall = command = "b"
trigger1 = statetype = S
trigger1 = ctrl = 1

; Stand_C (close)
[State -1]
type = ChangeState
value = 270
triggerall = command = "x"
trigger1 = P2bodydist X <= 18
trigger1 = var(6) != 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 250
trigger2 = movecontact = 1
trigger3 = stateno = 260
trigger3 = movecontact = 1
trigger4 = var(6) != 0
trigger4 = p2bodydist x >= 150
value = 100

[State -1]
type = ChangeState
value = 270
triggerall = command = "x"
trigger1 = P2bodydist X <= 18
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 250
trigger2 = movecontact = 1
trigger3 = stateno = 260
trigger3 = movecontact = 1

; Stand_C
[State -1]
type = ChangeState
value = 220
triggerall = command = "x"
trigger1 = statetype = S
trigger1 = ctrl = 1

; Stand_D (close)
[State -1]
type = ChangeState
value = 280
triggerall = command = "y"
triggerall = p2bodydist x <= 18
trigger1 = statetype = S
trigger1 = ctrl = 1

[State -1]
type = ChangeState
value = 280
triggerall = command = "y"
triggerall = p2bodydist x <= 18
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = Var(6) != 0
trigger2 = var(6) != 0
trigger2 = p2bodydist x >= 150
value = 100




; Stand_D
[State -1]
type = ChangeState
value = 230
triggerall = command = "y"
trigger1 = statetype = S
trigger1 = ctrl = 1

; Crouching light punch
[State -1]
type = ChangeState
value = 400
triggerall = command = "a"
triggerall = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 410
trigger2 = movecontact = 1

; Crouching light kick
[State -1]
type = ChangeState
value = 410
triggerall = command = "b"
triggerall = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 400
trigger2 = movecontact = 1

; Crouching hard punch
[State -1]
type = ChangeState
value = 420
trigger1 = command = "x"
trigger1 = statetype = C
trigger1 = ctrl = 1

; Crouching hard kick
[State -1]
type = ChangeState
value = 430
trigger1 = command = "y"
trigger1 = statetype = C
trigger1 = ctrl = 1

; Jumping light punch
[State -1]
type = ChangeState
value = 600
trigger1 = command = "a"
trigger1 = statetype = A
trigger1 = ctrl = 1

; Jumping light kick
[State -1]
type = ChangeState
value = 610
trigger1 = command = "b"
trigger1 = statetype = A
trigger1 = Vel X = 0
trigger1 = ctrl = 1

; Jumping forward light kick
[State -1]
type = ChangeState
value = 615
trigger1 = command = "b"
trigger1 = statetype = A
trigger1 = ctrl = 1

; Jumping hard punch
[State -1]
type = ChangeState
value = 620
trigger1 = command = "x"
trigger1 = statetype = A
trigger1 = ctrl = 1

; Jumping hard kick
[State -1]
type = ChangeState
value = 630
trigger1 = command = "y"
trigger1 = statetype = A
trigger1 = ctrl = 1

; Taunt
;[State -1]
;type = ChangeState
;value = 195
;trigger1 = command = "s"
;trigger1 = statetype = S
;trigger1 = stateno != 195
;trigger1 = ctrl = 1

; Run Forward
[State -1]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = command != "holddown"
trigger1 = ctrl = 1

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

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\




