;---------------------------------------------------------------------------
; Crocodile CMD file
;---------------------------------------------------------------------------
;---------------------------------------------------------
;---------------------------------------------------------
;AI
;---------------------------------------------------------
;---------------------------------------------------------

Command]
name = "CPU1"
command = U,U,D,D
time = 0

[Command]
name = "CPU2"
command = D,D,F,F,D,F
time = 0

[Command]
name = "CPU3"
command =F,F,F,F,F
time = 0

[Command]
name = "CPU4"
command = F,B,F,D,F,F,F
time = 0

[Command]
name = "CPU5"
command = F,F,U,U
time = 0

[Command]
name = "CPU6"
command = D,F,D,F,D,F,D
time = 0

[Command]
name = "CPU7"
command = F,B,D,F,B,F
time = 0

[Command]
name = "CPU8"
command = F,U,D,F,B,F,B
time = 0

[Command]
name = "CPU9"
command = F,F,B,F,B,F,F
time = 0

[Command]
name = "CPU10"
command = F,D,B,F,B,F
time = 0

[Command]
name = "CPU11"
command = F, B, D, F, B
time = 0

[Command]
name = "CPU12"
command = U,B,F,F,B,F,U,U
time = 0

[Command]
name = "CPU13"
command = U,F,F,F,B,F,F
time = 0

[Command]
name = "CPU14"
command = U,F,B,F,B,F,F,B,F
time = 0

[Command]
name = "CPU15"
command = U,D,B,F,D,B,F
time = 1

[Command]
name = "CPU16"
command = B,D,U,U,B,U,D,D,F
time = 0

[Command]
name = "CPU17"
command = F,B,D,F,B,F,F,F
time = 0

[Command]
name = "CPU18"
command = F,U,F,F,B,F,D,U,F
time = 0

[Command]
name = "CPU19"
command = F,F,B,F,B,F,F,U
time = 0

[Command]
name = "CPU20"
command = F,D,B,F,B,F,F,B,B
time = 0

[Command]
name = "CPU21"
command = D,B,D,F,B, DF,F
time = 0

[Command]
name = "CPU22"
command = U,B,F,F,B,F,U
time = 0

[Command]
name = "CPU23"
command = U,F,F,F,B,F,F,F
time = 0

[Command]
name = "CPU24"
command = U,F,B,F,B,F,F,D
time = 0

[Command]
name = "CPU25"
command = U,D,B,F,D,B,F,B,D
time = 0

[Command]
name = "CPU26"
command = B,D,U,U,B,U,D,D
time = 0

[Command]
name = "CPU27"
command = F,B,D,F,B,B,F,B
time = 0

[Command]
name = "CPU28"
command = F,U,D,F,B,F,D
time = 0

[Command]
name = "CPU29"
command = F,U,B,F,B,U,F
time = 0

[Command]
name = "CPU30"
command = D,D,B,F,B,F,F
time = 0

[Command]
name = "CPU31"
command = F,B,F,F,B,F
time = 0

[Command]
name = "CPU32"
command = U,B,F,F,B,F
time = 0

[Command]
name = "CPU33"
command = U,F,F,F,B,F
time = 0

[Command]
name = "CPU34"
command = U,F,B,F,B,F
time = 0

[Command]
name = "CPU35"
command = U,D,B,F,B,F
time = 0

[Command]
name = "CPU36"
command = B,D,U,F,B,F
time = 0

[Command]
name = "CPU37"
command = F,B,D,F,B,F
time = 0

[Command]
name = "CPU38"
command = F,U,D,F,B,F
time = 0

[Command]
name = "CPU39"
command = F,F,B,F,B,F
time = 0

[Command]
name = "CPU40"
command = F,D,B,F,B,F
time = 0

[Command]
name = "CPU41"
command = F,B,F,F,B,F
time = 0

[Command]
name = "CPU42"
command = U,B,F,F,B,F
time = 0

[Command]
name = "CPU43"
command = U,F,F,F,B,F
time = 0

[Command]
name = "CPU44"
command = U,F,B,F,B,F
time = 0

[Command]
name = "CPU45"
command = U,D,B,F,B,F
time = 0

[Command]
name = "CPU46"
command = B,D,U,F,B,F
time = 0

[Command]
name = "CPU47"
command = F,B,D,F,B,F
time = 0

[Command]
name = "CPU48"
command = F,U,D,F,B,F
time = 0

[Command]
name = "CPU49"
command = F,F,B,F,B,F
time = 0

[Command]
name = "CPU50"
command = F,D,B,F,B,F
time = 0

[Command]
name = "CPU51"
command = F,U,F,F,U,F
time = 0

[Command]
name = "CPU52"
command = U,B,F,U,B,F
time = 0

[Command]
name = "CPU53"
command = U,F,U,F,B,U
time = 0

[Command]
name = "CPU54"
command = U,D,D,F,B,D
time = 0

[Command]
name = "CPU55"
command = U,D,B,D,B,F
time = 0

[Command]
name = "CPU56"
command = B,D,U,D,B,F
time = 0

[Command]
name = "CPU57"
command = U,U,D,F,B,D
time = 0

[Command]
name = "CPU58"
command = F,U,U,F,B,F
time = 0


;--- None of your own command definitions should be above this line. ---

;-| CPU |--------------------------------------------------------------
; Note that if you make any changes to the basic one-button or recovery
; commands, you'll need to make the same changes to their matching commands here
; and/or in the XOR VarSet controller.  That includes things like, for example:
;  * changing the recovery command to use a different combination of buttons.
;  * renaming the b button command as "d", or the start button command as "s".
;  * switching the button names around, e.g. so button y triggers "a" and button a triggers "y".
;  * having more than one way to trigger the same command name.
; If you understand how the XOR method works, the proper changes should be obvious.
; If you don't understand it, then simply disable the lines in the XOR VarSet
; controller that correspond to the commands you've altered.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[Command]
name = "holdx2"
command = /x
time = 1

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

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

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

[Command]
name = "recovery2"
command = x+y
time = 1
;---------------------------------------------------------------------------
; BUTTON REMAPPING
;---------------------------------------------------------------------------

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

;---------------------------------------------------------------------------
; DEFAULTS VALUES
;---------------------------------------------------------------------------
[Defaults]

command.time = 15
command.buffer.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 = "holdback1"
command = B
time = 1
;-| Hold Button |----------------------------------------------------------
; Please define Anim 74140108 in your AIR file if AND ONLY IF you place these
; 7 Hold Button commands immediately after the 11 Single Button and Hold Dir
; commands at the very top of your CMD list, as demonstrated here.
; In this version of the AI code, these commands are only used by the XOR
; method, and thus are optional.  But there remains a possibility that a
; future version of the helper method might be helped by having these
; commands placed here, and Anim 74140108 would then be used to indicate
; that a partner character has a compatible CMD.

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

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

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

[Command]
name = "holdx"
command = /x
time = 1

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

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

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


;---------------------------------------------------------------------------
; SUPERS
;---------------------------------------------------------------------------


[Command]
name = "DESERT" 
command = ~D, DB, B, D, DB, B, x
Time = 30

[Command]
name = "DESERT1" 
command = ~D, DB, B, D, DB, B, y
Time = 30

[Command]
name = "CUSTOM" 
command = ~D, DB, B, D, DB, B, a
Time = 30

[Command]
name = "GIRASOLE" 
command = ~D, DF, F, D, DF, F, a+b
Time = 30

[Command]
name = "CONE"
command = ~D, DF, F,~D, DF, F, x
Time=30

[Command]
name = "CONE1"
command = ~D, DF, F,~D, DF, F, y
Time=30

[Command]
name = "SABLES"
command = ~D, DF, F,~D, DF, F, b
Time=30

[Command]
name = "FINAL"
command = ~D, DF, F,~D, DF, F, x+y
Time=30

;---------------------------------------------------------------------------
; SPECIALS
;---------------------------------------------------------------------------

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

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

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

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


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

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

[Command]
name = "QCF_z"
command = ~D, DF, F, z
Time=30

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

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

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

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


[Command]
name = "QCB_a"
command = ~D, DB, B, a

[Command]
name = "QCB_b"
command = ~D, DB, B, b

[Command]
name = "FF_ab"
command = F, F, a+b

[Command]
name = "FF_a"
command = F, F, a

[Command]
name = "FF_b"
command = F, F, b

;---------------------------------------------------------------------------
; 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 = "recovery"
command = x+y
time = 1

[Command]
name = "ROBIN"
command = c+z
time = 1
;---------------------------------------------------------------------------
; DIR+BUTTON
;---------------------------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

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

;---------------------------------------------------------------------------
; 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]
type = varset
trigger1  = command = "CPU1"
trigger2  = command = "CPU2"
trigger3  = command = "CPU3"
trigger4  = command = "CPU4"
trigger5  = command = "CPU5"
trigger6  = command = "CPU6"
trigger7  = command = "CPU7"
trigger8  = command = "CPU8"
trigger9  = command = "CPU9"
trigger10 = command = "CPU10"
trigger11 = command = "CPU11"
trigger12 = command = "CPU12"
trigger13 = command = "CPU13"
trigger14 = command = "CPU14"
trigger15 = command = "CPU15"
trigger16 = command = "CPU16"
trigger17 = command = "CPU17"
trigger18 = command = "CPU18"
trigger19 = command = "CPU19"
trigger20 = command = "CPU20"
trigger21 = command = "CPU21"
trigger22 = command = "CPU22"
trigger23 = command = "CPU23"
trigger24 = command = "CPU24"
trigger25 = command = "CPU25"
trigger26 = command = "CPU26"
trigger27 = command = "CPU27"
trigger28 = command = "CPU28"
trigger29 = command = "CPU29"
trigger30 = command = "CPU30"
trigger31 = command = "CPU31"
trigger32 = command = "CPU32"
trigger33 = command = "CPU33"
trigger34 = command = "CPU34"
trigger35 = command = "CPU35"
trigger36 = command = "CPU36"
trigger37 = command = "CPU37"
trigger38 = command = "CPU38"
trigger39 = command = "CPU39"
trigger40 = command = "CPU40"
trigger41 = command = "CPU41"
trigger42 = command = "CPU42"
trigger43 = command = "CPU43"
trigger44 = command = "CPU44"
trigger45 = command = "CPU45"
trigger46 = command = "CPU46"
trigger47 = command = "CPU47"
trigger48 = command = "CPU48"
trigger49 = command = "CPU49"
trigger50 = command = "CPU50"
trigger51 = command = "CPU51"
trigger52 = command = "CPU52"
trigger53 = command = "CPU53"
trigger54 = command = "CPU54"
trigger55 = command = "CPU55"
trigger56 = command = "CPU56"
trigger57 = command = "CPU57"
trigger58 = command = "CPU58"
triggerall = var(7) = 1 
;===========================================================================
;CARDS
;===========================================================================
;---------------------------------------------------------------------------
;CALL ROBIN
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 3200
triggerall = command = "ROBIN"
triggerall = numhelper(3210) = 0
triggerall = statetype = S
triggerall = Stateno != 1600
triggerall = Stateno != 1700
triggerall = Stateno != 1800
triggerall = Stateno != 1900
triggerall = Stateno != 2100
triggerall = Stateno != 2200
triggerall = Stateno != 3000
triggerall = Stateno != 3100
triggerall = Stateno != 3300
triggerall = var(6) >= 1
trigger1 = ctrl = 1
triggerall = var(7) = 0

;----------------------------------------------------
;ROBIN
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 3210
triggerall = command = "ROBIN"
triggerall = numhelper(3210) = 0
triggerall = statetype = S
triggerall = Stateno != 1600
triggerall = Stateno != 1700
triggerall = Stateno != 1800
triggerall = Stateno != 1900
triggerall = Stateno != 2100
triggerall = Stateno != 2200
triggerall = Stateno != 3000
triggerall = Stateno != 3100
triggerall = Stateno != 3300
triggerall = var(6) >= 1
trigger1 = ctrl = 1
triggerall = var(7) = 0
;---------------------------------------------------------------------------
;MULTI HOOK CARD
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = var(7) = 0
triggerall = Stateno != 1600
triggerall = Stateno != 1700
triggerall = Stateno != 1800
triggerall = Stateno != 1900
triggerall = Stateno != 2100
triggerall = Stateno != 2200
triggerall = Stateno != 3000
triggerall = Stateno != 3100
triggerall = Stateno != 3200
triggerall = command = "QCF_z" 
triggerall = statetype != A
triggerall = var(8) >= 1
trigger1 = ctrl 
trigger2 = StateType = S
trigger3 = StateNo = [200,440]
trigger3 = MoveHit
value = 3300

;---------------------------------------------------------------------------
;LIFE RECOVER 
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = var(7) = 0
triggerall = Stateno != 1600
triggerall = Stateno != 1700
triggerall = Stateno != 1800
triggerall = Stateno != 1900
triggerall = Stateno != 2100
triggerall = Stateno != 2200
triggerall = Stateno != 3100
triggerall = Stateno != 3200
triggerall = Stateno != 3300
triggerall = command = "c" 
triggerall = statetype != A
triggerall = var(3) >= 1
trigger1 = ctrl 
trigger2 = StateType = S
value = 3000
;---------------------------------------------------------------------------
;TELEPORT CARD
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = var(7) = 0
triggerall = Stateno != 1600
triggerall = Stateno != 1700
triggerall = Stateno != 1800
triggerall = Stateno != 1900
triggerall = Stateno != 2100
triggerall = Stateno != 2200
triggerall = Stateno != 3000
triggerall = Stateno != 3200
triggerall = Stateno != 3300
triggerall = command = "z"
triggerall = statetype != A
triggerall = var(4) >= 1
trigger1 = StateType = S
trigger1 = ctrl
value = 3100
;===========================================================================
;SUPERS
;===========================================================================
;---------------------------------------------------------------------------
;FINAL COMBO
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 2200
triggerall = var(7) = 0
triggerall = statetype != A
triggerall = Power >= 3000
triggerall = Stateno != 1600
triggerall = Stateno != 1700
triggerall = Stateno != 1800
triggerall = Stateno != 1900
triggerall = Stateno != 2100
triggerall = Stateno != 2200
triggerall = Stateno != 3000
triggerall = Stateno != 3100
triggerall = Stateno != 3200
triggerall = Stateno != 3300
triggerall = (command = "FINAL")
trigger1 = statetype != A
trigger2 = (StateNo = (200,240]) 
trigger2 = MoveContact

;---------------------------------------------------------------------------
;DESERT GIRASOLE (level3)
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = var(7) = 0
triggerall = !NumHelper(2110)
triggerall = Stateno != 1600
triggerall = Stateno != 1700
triggerall = Stateno != 1800
triggerall = Stateno != 1900
triggerall = Stateno != 2100
triggerall = Stateno != 2200
triggerall = command = "GIRASOLE"
triggerall = statetype != A
trigger1 = power >= 3000
trigger2 = StateNo = (200,240]
trigger2 != Movehit
value = 2100

;---------------------------------------------------------------------------
;SUPER DESERT SPADA (level1)
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 1600
triggerall = var(7) = 0
triggerall = statetype != A
triggerall = Stateno != 1600
triggerall = Stateno != 1700
triggerall = Stateno != 1800
triggerall = Stateno != 1900
triggerall = Stateno != 2100
triggerall = Stateno != 2200
triggerall = !numhelper(1610)
triggerall = (command = "DESERT") || (command = "DESERT1") 
triggerall = power >= 1000
trigger1 = StateNo != [200,240]
trigger2 = StateNo = 200
trigger2 = MoveContact


;---------------------------------------------------------------------------
;SUPER LA SPADA (level1)
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 1700
triggerall = var(7) = 0
triggerall = statetype != A
triggerall = Stateno != 1600
triggerall = Stateno != 1700
triggerall = Stateno != 1800
triggerall = Stateno != 1900
triggerall = Stateno != 2100
triggerall = Stateno != 2200
triggerall = !numhelper(1710)
triggerall = (command = "CONE") || (command = "CONE1") 
triggerall = power >= 1000
trigger1 = StateNo != [200,240]
trigger2 = StateNo = 200
trigger2 = MoveContact

 
;---------------------------------------------------------------------------
;SABLES (level2)
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = var(7) = 0
triggerall = !NumHelper(1810)
triggerall = Stateno != 1600
triggerall = Stateno != 1700
triggerall = Stateno != 1800
triggerall = Stateno != 1900
triggerall = Stateno != 2100
triggerall = Stateno != 2200
triggerall = command = "SABLES"
triggerall = statetype != A
trigger1 = power >= 2000
trigger2 = StateNo = (200,240]
trigger2 != Movehit
value = 1800


;--------------------------------------------------------------------------
;CUSTOM COMBO (level2)
;---------------------------------------------------------------------------
[State -1]
type=changestate
value=1900
triggerall = var(7) = 0
triggerall= command="CUSTOM"
triggerall = Stateno != 1600
triggerall = Stateno != 1700
triggerall = Stateno != 1800
triggerall = Stateno != 1900
triggerall = Stateno != 2100
triggerall = Stateno != 2200
triggerall = statetype != A
triggerall= roundstate=2 
trigger1 = power>= 2000 && !var(5)


;===========================================================================
;SPECIALS
;===========================================================================
;---------------------------------------------------------------------------
;LA SPADA
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = var(7) = 0
triggerall = command = "LASPADA1"
triggerall = statetype != A
triggerall = !NumHelper(1210)
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = (StateNo = [200,240])
trigger2 = Movecontact
value = 1200


;---------------------------------------------------------------------------
;LA SPADA2
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = var(7) = 0
triggerall = command = "LASPADA"
triggerall = statetype != A
triggerall = !NumHelper(1251)
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = (StateNo = [200,240])
trigger2 = Movecontact
value = 1250

;---------------------------------------------------------------------------
;HOOK
;---------------------------------------------------------------------------
[State -1, SPEAR]
type = ChangeState
value = 1150
triggerall = var(7) = 0
triggerall = command = "QCF_y" && P2Stateno !=100000
trigger1 = NumHelper(1150) = 0 
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl
trigger2 =  (stateno = [200,440]) && (stateno !=[600,640]) 
trigger2 = movecontact

;---------------------------------------------------------------------------
;AIR SPADA (proj)
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = var(7) = 0
triggerall = statetype = A
triggerall = !NumHelper(1521)
triggerall = !NumHelper(1510)
triggerall = command = "QCF_y"
trigger1 = ctrl
trigger2 = StateNo = [600,640]
trigger2 = MoveContact
value = 1520

;---------------------------------------------------------------------------
;AIR SPADA
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = var(7) = 0
triggerall = statetype = A
triggerall = !NumHelper(1510)
triggerall = !NumHelper(1521)
triggerall = command = "QCF_x"
trigger1 = ctrl
trigger2 = StateNo = [600,640]
trigger2 = MoveContact
value = 1500

;---------------------------------------------------------------------------
;POISON
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 1100
triggerall = var(7) = 0
triggerall = (command = "QCF_x")
triggerall = statetype != A
trigger1 = ctrl
trigger2 = StateNo = [200,440]
trigger2 = MoveHit
triggerall = var(7) = 0 


;---------------------------------------------------------------------------
;CANCEL
;---------------------------------------------------------------------------
[State -1, Cancel]
type = ChangeState
value = 1300
triggerall = var(7) = 0
triggerall = command = "QCF_b"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 230
trigger4 = movecontact
trigger5 = stateno = 240
trigger5 = movecontact
trigger6 = stateno = 600
trigger6 = movecontact
trigger7 = stateno = 610
trigger7 = movecontact
trigger8 = stateno = 640
trigger8 = movecontact
trigger9 = stateno = 630
trigger9 = movecontact
trigger10 = stateno = 640
trigger10 = movecontact

;---------------------------------------------------------------------------
;TELEPORT
;---------------------------------------------------------------------------
[State -1, Cancel]
type = ChangeState
value = 1400
triggerall = var(7) = 0
triggerall = command = "QCB_b"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
trigger4 = stateno = 230
trigger4 = movecontact
trigger5 = stateno = 240
trigger5 = movecontact
trigger6 = stateno = 600
trigger6 = movecontact
trigger7 = stateno = 610
trigger7 = movecontact
trigger8 = stateno = 640
trigger8 = movecontact
trigger9 = stateno = 630
trigger9 = movecontact
trigger10 = stateno = 640
trigger10 = movecontact
trigger6 = stateno = 400
trigger6 = movecontact
trigger7 = stateno = 410
trigger7 = movecontact
trigger8 = stateno = 440
trigger8 = movecontact
trigger9 = stateno = 430
trigger9 = movecontact

;---------------------------------------------------------------------------
;SPADA
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = var(7) = 0
triggerall = command = "QCB_x"
triggerall = statetype != A
triggerall = !NumHelper(1001)
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = (StateNo = [200,240])
trigger2 = Movecontact
value = 1000



;---------------------------------------------------------------------------
;SPADA (short)
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = var(7) = 0
triggerall = command = "QCB_y"
triggerall = statetype != A
triggerall = !NumHelper(1051)
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = (StateNo = [200,240])
trigger2 = Movecontact
value = 1050




;===========================================================================
;BASICS
;===========================================================================

;---------------------------------------------------------------------------
;Run Fwd
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 100
triggerall = var(7) = 0
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

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

;---------------------------------------------------------------------------
;WALL JUMP
;---------------------------------------------------------------------------
[State -1: ChangeState]
type = ChangeState
value = 40
triggerall = var(7) = 0
triggerall = (StateType = A) && (Ctrl) && (Pos Y < -30)
trigger1 = ((command = "holdup") && (command = "holdfwd") && (Vel X <= 0) && (backedgebodydist <= 10) && (backedgebodydist > -10))
trigger2 = ((command = "holdup") && (command = "holdback") && (Vel X >= 0) && (frontedgebodydist <= 10) && (frontedgebodydist > -10))
persistent = 0
;===========================================================================

;---------------------------------------------------------------------------
;Stand Light Punch
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 200
triggerall = var(7) = 0
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = Stateno != 1400
triggerall = Stateno != 1500
triggerall = Stateno != 1600
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Stand Kick
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 230
triggerall = var(7) = 0
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 210)&& movecontact

;---------------------------------------------------------------------------
;Stand Strong Punch
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 210
triggerall = var(7) = 0
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 230)&& movecontact



;---------------------------------------------------------------------------
;Standing Strong Kick
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 240
triggerall = var(7) = 0
triggerall = statetype != A
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200)&& movecontact
trigger3 = (stateno = 210) && movecontact
trigger4 = (stateno = 230)&& movecontact

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


;---------------------------------------------------------------------------
;Crouching Light Punch
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 400
triggerall = var(7) = 0
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2= (stateno=[200,240]) && movecontact


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


;---------------------------------------------------------------------------
;Crouching Strong Kick
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 440
triggerall = var(7) = 0
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2= (stateno=[200,240]) || (stateno=[400,440)) && movecontact


;---------------------------------------------------------------------------
;Jump Light Punch
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 600
triggerall = var(7) = 0
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1350 


;---------------------------------------------------------------------------
;Jump Strong Punch
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 610
triggerall = var(7) = 0
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 || stateno = 640
trigger2 = movecontact
trigger3 = stateno = 1350 



;---------------------------------------------------------------------------
;Jump KICK
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 630
triggerall = var(7) = 0
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 640
trigger2 = movecontact
trigger3 = stateno = 1350 


;---------------------------------------------------------------------------
;Jump Strong Kick
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 640
triggerall = var(7) = 0
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 
trigger2 = movecontact
trigger3 = stateno = 1350 


;---------------------------------
;---------------------------------
AI
;---------------------------------
;------------------------------------------------------------------------------
; AI FINAL COMBO
[State -1]
type = ChangeState
triggerall = var(7) = 1 
trigger1 = StateType != A && ctrl && random <= 950
value = 2200
triggerall = statetype = S
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2Life > 0 && P2BodyDist x >= 200
triggerall = power >= 3000
;------------------------------------------------------------------------------
; AI DESERT GIRASOLE
[State -1]
type = ChangeState
triggerall = var(7) = 1 
trigger1 = StateType != A && ctrl && random <= 950
value = 2100
triggerall = statetype = S
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2Life > 0 && P2BodyDist x >= 300
triggerall = power >= 3000
;------------------------------------------------------------------------------
; AI SUPER DESERT SPADA
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 1600
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 40
triggerall = statetype = S
triggerall = power >= 1000
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
; AI SUPER DESERT SPADA
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 1700
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 60
triggerall = statetype = S
triggerall = power >= 1000
;------------------------------------------------------------------------------
; AI SUPER SABLES
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 1800
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 200
triggerall = statetype = S
triggerall = power >= 2000
;------------------------------------------------------------------------------
; AI CUSTOM COMBO
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 1900
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 40
triggerall = statetype = S
triggerall = power >= 2000
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
; AI SPADA
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 1000
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 400
triggerall = statetype = S
;------------------------------------------------------------------------------
; AI SPADA2
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 1000
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 250
triggerall = statetype = S
;------------------------------------------------------------------------------
; AI LA SPADA
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 1200
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 200
triggerall = statetype = S
;------------------------------------------------------------------------------
; AI LA SPADA
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 1250
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 200
triggerall = statetype = S
;-----------------------------------------------------------------
;AI HOOK
[State -1]
type = ChangeState
triggerall = var(7) = 1 
trigger1 = StateType != A && ctrl && random <= 950
trigger1 = P2StateType != L && P2StateType = A && P2Life > 0 && P2BodyDist x >= 500
triggerall = Statetype = S
value = 1150
;-----------------------------------------------------------------
;AI AIR SPADA
[State -1]
type = ChangeState
triggerall = var(7) = 1 
trigger1 = StateType = A && ctrl && random <= 950
trigger1 = P2StateType != L && P2StateType = A && P2Life > 0 && P2BodyDist x >= 300
triggerall = Statetype != S
value = 1520
;-----------------------------------------------------------------
;AI AIR SPADA2
[State -1]
type = ChangeState
triggerall = var(7) = 1 
trigger1 = StateType = A && ctrl && random <= 950
trigger1 = P2StateType != L && P2StateType = A && P2Life > 0 && P2BodyDist x >= 100
triggerall = Statetype != S
value = 1500
;-----------------------------------------------------------
;AI POISON
[State -1]
type = ChangeState
triggerall = var(7) = 1 
triggerall = P2StateType != A && P2Movetype != A && P2Life > 0 && P2BodyDist x >= 100
trigger1 = StateType = A && ctrl && random <= 950
trigger2 = StateNo = [200,240]
trigger2 = MoveContact
trigger3 = StateNo = 200 && MoveContact
value = 1100
;---------------------------------------------------------------------------
;AI GUARD
[State -1]
type = ChangeState
triggerall = var(7) = 1 
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != C && P2Movetype = A && P2Life > 0 
value = 120


;------------------------------------------------------------------------------
; AI CANCEL
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 1300
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 20
triggerall = statetype = S
;------------------------------------------------------------------------------
; AI TELEPORT
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 1400
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 10
triggerall = statetype = S
;------------------------------------------------------------------------------
; AI ROBIN
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 3200
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 50
triggerall = statetype = S

;------------------------------------------------------------------------------
; AI MULTIHOOK
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 3300
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 45
triggerall = statetype = S
;------------------------------------------------------------------------------
; AI LIFE
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 3000
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 500
triggerall = statetype = S
;------------------------------------------------------------------------------
; AI TELE
[State -1]
type = ChangeState
triggerall = var(7) = 1 
value = 3100
trigger1 = StateType != A && ctrl && random <= 950
triggerall = P2StateType != L && P2Life > 0 
trigger1 = P2StateType != A && P2BodyDist x >= 15
triggerall = statetype = S

;---------------------------------------------------------------------------
;AI CROUCH GUARD
[State -1]
type = ChangeState
triggerall = var(7) = 1 
trigger1 = StateType != A && ctrl && random <= 990
triggerall = P2StateType = C && P2Movetype = A && P2Life > 0 
value = 121

;---------------------------------------------------------------------------
;AI AIR GUARD
[State -1]
type = ChangeState
triggerall = var(7) = 1 
trigger1 = StateType = A && ctrl && random <= 990
triggerall = P2StateType = A && P2Movetype = A && P2Life > 0 
value = 121

;------------------------------------------------------------------
;AI Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
triggerall = var(7) = 1 
value = 200
triggerall = P2StateType != L && P2StateType != A && P2Life > 0 && P2BodyDist x <= 50
trigger1 = StateType = S && ctrl && StateType != A
trigger2 = StateNo = 210 && MoveContact
trigger3 = StateNo = 230 && MoveContact
trigger4 = StateNo = 240 && MoveContact
trigger5 = StateNo = 400 && MoveContact

;---------------------------------------------------------------------------
;AI Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
triggerall = var(7) = 1 
value = 210
trigger1 = StateType = S && ctrl && StateType != A
triggerall = P2StateType != L && P2StateType != A && P2Life > 0 && P2BodyDist x <= 50
trigger2 = StateNo = 200 && MoveContact
trigger3 = StateNo = 240 && MoveContact
trigger4 = StateNo = 230 && MoveContact
;---------------------------------------------------------------------------
;AI Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
triggerall = var(7) = 1 
trigger1 = StateType = S && ctrl && StateType != A
triggerall = P2StateType != L && P2StateType != A && P2Life > 0 && P2BodyDist x <= 50
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = StateType = S && ctrl 
trigger2 = StateNo = 200 && MoveContact

;---------------------------------------------------------------------------
;AI Jump Kick
[State -1, Jump Kick]
type = ChangeState
triggerall = var(7) = 1 
value = 640
triggerall = P2StateType != L && P2StateType != A && P2Movetype != A && P2Life > 0 && P2BodyDist x <= 150
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 
trigger2 = movecontact