[Command]
name = "AI1"
command = D,D,D,F,F,F,a+b+c+x+z
time = 1

[Command]
name = "AI2"
command = D,D,D,F,F,U,a+b+c+x+z
time = 1

[Command]
name = "AI3"
command = D,D,D,F,F,UF,a+b+c+x+z
time = 1

[Command]
name = "AI4"
command = D,D,D,F,F,D,a+b+c+x+z
time = 1

[Command]
name = "AI5"
command = D,D,D,F,F,DF,a+b+c+x+z
time = 1

[Command]
name = "AI6"
command = D,D,D,F,F,B,a+b+c+x+z
time = 1

[Command]
name = "AI7"
command = D,D,D,F,F,DB,a+b+c+x+z
time = 1

[Command]
name = "AI8"
command = D,D,D,F,F,UB,a+b+c+x+z
time = 1

[Command]
name = "AI9"
command = D,D,D,F,U,F,a+b+c+x+z
time = 1

[Command]
name = "AI10"
command = D,D,D,F,UF,F,a+b+c+x+z
time = 1

[Command]
name = "AI11"
command = D,D,D,F,DF,F,a+b+c+x+z
time = 1

[Command]
name = "AI12"
command = D,D,D,F,D,F,a+b+c+x+z
time = 1

[Command]
name = "AI13"
command = D,D,D,F,DB,F,a+b+c+x+z
time = 1

[Command]
name = "AI14"
command = D,D,D,F,B,F,a+b+c+x+z
time = 1

[Command]
name = "AI15"
command = D,D,D,F,UB,F,a+b+c+x+z
time = 1

[Command]
name = "AI16"
command = D,D,D,F,F,F,a+b+c+x,z
time = 1

[Command]
name = "AI17"
command = D,D,D,F,F,F,a+b+c+x,y,z
time = 1

[Command]
name = "AI18"
command = D,D,D,F,F,F,a+b+c,x,y,z
time = 1

[Command]
name = "AI19"
command = D,D,D,F,F,F,a+b,c,x,y,z
time = 1

[Command]
name = "AI20"
command = D,D,D,F,F,F,a,b,c,x,y,z
time = 1

[Command]
name = "AI21"
command = D,D,D,F,F,F,a+b+c,x+z
time = 1

[Command]
name = "AI22"
command = D,D,D,F,F,U,a+b,c+x+z
time = 1

[Command]
name = "AI23"
command = D,D,D,F,F,UF,a,b+c+x+z
time = 1

[Command]
name = "AI24"
command = D,D,D,F,F,U,a+b,c+x+z
time = 1

[Command]
name = "AI25"
command = D,D,D,F,F,DF,a,b,c+x+z
time = 1

[Command]
name = "AI26"
command = D,D,D,F,F,B,a+b,c+x,y+z
time = 1

[Command]
name = "AI27"
command = D,D,D,F,F,DB,a,b+c+x,y+z
time = 1

[Command]
name = "AI28"
command = D,D,D,F,F,UB,a,b+c+x,z
time = 1

[Command]
name = "AI29"
command = DF,D,D,F,U,F,a+b+c+x+z
time = 1

[Command]
name = "AI30"
command = B,D,D,F,UF,F,a+b+c+x+z
time = 1

[Command]
name = "AI31"
command = B,B,BD,F,DF,F,a+b+c+x+z
time = 1

[Command]
name = "AI32"
command = D,F,F,F,D,F,a+b+c+x+z
time = 1

[Command]
name = "AI33"
command = DF,D,DF,UF,DB,F,a+b+c+x+z
time = 1

[Command]
name = "AI34"
command = D,D,D,F,DB,DF,a+b+c+x+z
time = 1

[Command]
name = "AI35"
command = D,D,UF,DF,UB,UF,a+b+c+x+z
time = 1

[Command]
name = "AI36"
command = D,DF,DF,DF,DF,F,a+b+c+x,z
time = 1

[Command]
name = "AI37"
command = D,D,DB,UF,DF,UF,a+b+c+x,y,z
time = 1

[Command]
name = "AI38"
command = F,U,F,F,F,F,a,b+c,x,y,z
time = 1

[Command]
name = "AI39"
command = DF,UF,D,DF,U,F,a+b,c+x,y,z
time = 1

[Command]
name = "AI40"
command = D,D,D,D,F,D,a+b,c,x,y+z
time = 1

[Command]
name = "AI41"
command = D,D,D,F,F,F,a+b+c+x+z,a
time = 1

[Command]
name = "AI42"
command = D,D,D,F,F,U,a+b+c+x+z,b
time = 1

[Command]
name = "AI43"
command = D,D,D,F,F,UF,a+b+c+x+z,c
time = 1

[Command]
name = "AI44"
command = D,D,D,F,F,D,a+b+c+x+z,x
time = 1

[Command]
name = "AI45"
command = D,D,D,F,F,DF,a+b+c+x+z,y
time = 1

[Command]
name = "AI46"
command = D,D,D,F,F,B,a+b+c+x+z,z
time = 1

[Command]
name = "AI47"
command = D,D,D,F,F,DB,a+b+c+x+z,a+b
time = 1

[Command]
name = "AI48"
command = D,D,D,F,F,UB,a+b+c+x+z,a+c
time = 1

[Command]
name = "AI49"
command = D,D,D,F,U,F,a+b+c+x+z,b+c
time = 1

[Command]
name = "AI50"
command = D,D,D,F,UF,F,a+b+c+x+z,x+z
time = 1
; 

;-| Button Remapping |-----------------------------------------------------
; This section lets you remap the player's buttons (to easily change the
; button configuration). The format is:
;   old_button = new_button
; If new_button is left blank, the button cannot be pressed.
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

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

; Default value for the "buffer.time" parameter of a Command. Minimum 1,
; maximum 30.
command.buffer.time = 1

;-| Super Motions |--------------------------------------------------------

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

;-| 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 = "kwarari" ;Required (do not remove)
command = x+y
time = 1

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

[Command]
name = "recovery"
command = x+z
time = 1

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

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

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

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "back_x"
command = /$B,x
time = 1

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

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

[Command]
name = "down_x"
command = /$D,x
time = 1

[Command]
name = "down_y"
command = /$D,y
time = 1

[Command]
name = "down_z"
command = /$D,z
time = 1

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

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

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

[Command]
name = "up_x"
command = /$U,x
time = 1

[Command]
name = "up_y"
command = /$U,y
time = 1

[Command]
name = "up_z"
command = /$U,z
time = 1

[Command]
name = "back_a"
command = /$B,a
time = 1

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

[Command]
name = "back_c"
command = /$B,c
time = 1

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

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

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

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

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

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

[Command]
name = "up_a"
command = /$U,a
time = 1

[Command]
name = "up_b"
command = /$U,b
time = 1

[Command]
name = "up_c"
command = /$U,c
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

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

;-| Single Dir |------------------------------------------------------------
[Command]
name = "fwd" ;Required (do not remove)
command = $F
time = 1

[Command]
name = "downfwd"
command = $DF
time = 1

[Command]
name = "down" ;Required (do not remove)
command = $D
time = 1

[Command]
name = "downback"
command = $DB
time = 1

[Command]
name = "back" ;Required (do not remove)
command = $B
time = 1

[Command]
name = "upback"
command = $UB
time = 1

[Command]
name = "up" ;Required (do not remove)
command = $U
time = 1

[Command]
name = "upfwd"
command = $UF
time = 1

;-| Hold Button |--------------------------------------------------------------
[Command]
name = "hold_x"
command = /x
time = 1

[Command]
name = "hold_y"
command = /y
time = 1

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

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

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

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

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

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd" ;Required (do not remove)
command = /$F
time = 1

[Command]
name = "holddownfwd"
command = /$DF
time = 1

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

[Command]
name = "holddownback"
command = /$DB
time = 1

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

[Command]
name = "holdupback"
command = /$UB
time = 1

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

[Command]
name = "holdupfwd"
command = /$UF
time = 1

;---------------------------------------------------------------------------
; 2. State entry
; --------------
; This is where you define what commands bring you to what states.
;
; Each state entry block looks like:
;   [State -1, Label]           ;Change Label to any name you want to use to
;                               ;identify the state with.
;   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"
;
; Note: The order of state entry is important.
;   State entry with a certain command must come before another state
;   entry with a command that is the subset of the first.  
;   For example, command "fwd_a" must be listed before "a", and
;   "fwd_ab" should come before both of the others.
;
; 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.
[Statedef -1]
;===========================================================================
;---------------------------------------------------------------------------
; Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = var(50) != 1
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; Run Back
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = var(50) != 1
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl
;===========================================================================
;---------------------------------------------------------------------------
; Taunt
;[State -1, Taunt]
;type = ChangeState
;value = 195
;triggerall = command = "s"
;trigger1 = statetype != A
;trigger1 = ctrl
;---------------------------------------------------------------------------
; counter
[State -1, Counter]
type = ChangeState
value = 1030
triggerall = power>= 250
triggerall = statetype = s
triggerall = stateno != 1030
triggerall = stateno != 5100
triggerall = command = "kwarari"
triggerall = command != "holddown"
triggerall = alive
trigger1 = movetype = H
trigger2 = stateno = 5030
trigger3 = stateno = 5035
triggerall = stateno != 5201
triggerall = stateno != 5210
;-------------------------------------
[State -1, Counter]
type = HitOverride
triggerall = power>= 250
triggerall = command = "kwarari"
triggerall = stateno != 5100
triggerall = !time
triggerall = alive
trigger1 = movetype = H
trigger2 = stateno = 5030
triggerall = stateno != 5201
triggerall = stateno != 5210
trigger3 = stateno = 5035
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 1030
time = 0
forceair = 1
;---------------------------------------------------------------------------
; counter
[State -1, Counter Air]
type = ChangeState
value = 1030
triggerall = power>= 250
triggerall = stateno != 1030
triggerall = stateno != 5100
triggerall = stateno != 5201
triggerall = stateno != 5210
triggerall = statetype = a
triggerall = command = "kwarari"
triggerall = command != "holddown"
triggerall = alive
trigger1 = movetype = H
trigger2 = stateno = 5030
trigger3 = stateno = 5035
trigger4 = stateno = 1026
trigger5 = stateno = 1027
trigger6 = stateno = 1028
;---------------------------------------------------------------------------
 ;a1
[State -1,  Combo1attack1]
type = ChangeState
value = 200
triggerall = var(50) != 1
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = command != "holdfwd"
triggerall = command != "holdup"
triggerall = command != "holdback"
triggerall = statetype = s
trigger1 = ctrl
;---------------------------------------------------------------------------
 ;a1
[State -1,  Combo1attack2]
type = ChangeState
value = 201
triggerall = var(50) != 1
triggerall = command = "x"
triggerall = statetype = s
trigger1 = stateno = 200 & time>= 14
;---------------------------------------------------------------------------
 ;a1
[State -1,  Combo1attack3]
type = ChangeState
value = 202
triggerall = var(50) != 1
triggerall = command = "x"
triggerall = statetype = s
trigger1 = stateno = 201 & time>= 14
;---------------------------------------------------------------------------
 ;a1
[State -1, Crouchattack]
type = ChangeState
value = 203
triggerall = var(50) != 1
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = command != "holdfwd"
triggerall = command != "holdup"
triggerall = command != "holdback"
triggerall = statetype = c
trigger1 = ctrl
;---------------------------------------------------------------------------
 ;a1
[State -1, Runattack]
type = ChangeState
value = 204
triggerall = var(50) != 1
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = command = "holdfwd"
triggerall = command != "holdup"
triggerall = command != "holdback"
triggerall = statetype = s
trigger1 = ctrl
;---------------------------------------------------------------------------
 ;a1
[State -1, Airattack]
type = ChangeState
value = 205
triggerall = var(50) != 1
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = command != "holdfwd"
triggerall = command != "holdup"
triggerall = command != "holdback"
triggerall = statetype = A
trigger1 = ctrl
;---------------------------------------------------------------------------
 ;a1
[State -1, WeaponThrow]
type = ChangeState
value = 206
triggerall = var(50) != 1
triggerall = command = "c" & command != "holdfwd"
triggerall = statetype = s
trigger1 = ctrl
;---------------------------------------------------------------------------
 ;a1
[State -1, ExplodeWeaponThrow]
type = ChangeState
value = 219
triggerall = var(50) != 1
triggerall = power>=300
triggerall = command = "c" & command = "holdfwd"
triggerall = statetype = s
trigger1 = ctrl
;---------------------------------------------------------------------------
 ;a1
[State -1, CrouchExplodeWeaponThrow]
type = ChangeState
value = 220
triggerall = var(50) != 1
triggerall = power>=300
triggerall = command = "c"& command = "holdfwd"
triggerall = statetype = c
trigger1 = ctrl
;---------------------------------------------------------------------------
 ;a1
[State -1, CrouchWeaponThrow]
type = ChangeState
value = 207
triggerall = var(50) != 1
triggerall = command = "c"& command != "holdfwd"
triggerall = statetype = c
trigger1 = ctrl
;---------------------------------------------------------------------------
 ;a1
[State -1, AirWeaponThrow]
type = ChangeState
value = 208
triggerall = var(50) != 1
triggerall = command = "c" & command != "holdfwd"
triggerall = statetype = a
trigger1 = ctrl
;---------------------------------------------------------------------------
 ;a1
[State -1, AirExplodeWeaponThrow]
type = ChangeState
value = 218
triggerall = var(50) != 1
triggerall = power>=300
triggerall = command = "c" & command = "holdfwd"
triggerall = statetype = a
trigger1 = ctrl
;---------------------------------------------------------------------------
;chakra
[State - 1, Chakra charge]
type = ChangeState
value = 217
triggerall = var(50) = 0
triggerall = var(50) != 1
triggerall = command = "hold_c" & command = "hold_y"
triggerall = StateType != A
triggerall = Movetype != H
trigger1 = ctrl
;---------------------------------------------------------------------------
;chakra
[State - 1, Heal]
type = ChangeState
value = 221
triggerall = var(50) != 1
triggerall = command = "start"
triggerall = StateType != A
triggerall = Movetype != H
trigger1 = ctrl
;---------------------------------------------------------------------------
 ;a1
[State -1, Shannaro]
type = ChangeState
value = 209
triggerall = var(50) != 1
triggerall = power>= 500
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = command = "holdfwd"
triggerall = command != "holdup"
triggerall = command != "holdback"
triggerall = statetype = s
trigger1 = ctrl
trigger2 = stateno = 212 & time>=73
trigger3 = stateno = 213 & time>=103
;---------------------------------------------------------------------------
 ;a1
[State -1, SmashySmashyNoJustsu]
type = ChangeState
value = 211
triggerall = var(50) != 1
triggerall = power>= 500
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = command != "holdfwd"
triggerall = command != "holdup"
triggerall = command != "holdback"
triggerall = statetype != a
trigger1 = ctrl
;---------------------------------------------------------------------------
 ;a1
[State -1, InnerSakuraCombo30RUSH]
type = ChangeState
value = 214
triggerall = var(50) != 1
triggerall = power>= 500
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = command != "holdfwd"
triggerall = command != "holdup"
triggerall = command != "holdback"
triggerall = statetype = s
trigger1 = ctrl
trigger2 = stateno = 212 & time>=73
trigger3 = stateno = 213 & time>=103
;---------------------------------------------------------------------------
 ;a1
[State -1, Special: "Shannaro"]
type = ChangeState
value = 222
triggerall = var(50) != 1
triggerall = power>= 2000
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = command != "holdfwd"
triggerall = command != "holdup"
triggerall = command != "holdback"
triggerall = statetype != a
trigger1 = ctrl




