; The CMD file.
;
; Two parts: 1. Command definition and  2. State entry
; (state entry is after the commands def section)
;
; 1. Command definition
; ---------------------
; Note: The commands are CASE-SENSITIVE, and so are the command names.
; The eight directions are:
;   B, DB, D, DF, F, UF, U, UB     (all CAPS)
;   corresponding to back, down-back, down, downforward, etc.
; The six buttons are:
;   a, b, c, x, y, z               (all lower case)
;   In default key config, abc are are the bottom, and xyz are on the
;   top row. For 2 button characters, we recommend you use a and b.
;   For 6 button characters, use abc for kicks and xyz for punches.
;
; Each [Command] section defines a command that you can use for
; state entry, as well as in the CNS file.
; The command section should look like:
;
;   [Command]
;   name = some_name
;   command = the_command
;   time = time (optional -- defaults to 15 if omitted)
;
; - some_name
;   A name to give that command. You'll use this name to refer to
;   that command in the state entry, as well as the CNS. It is case-
;   sensitive (QCB_a is NOT the same as Qcb_a or QCB_A).
;
; - command
;   list of buttons or directions, separated by commas.
;   Directions and buttons can be preceded by special characters:
;   slash (/) - means the key must be held down
;          egs. command = /D       ;hold the down direction
;               command = /DB, a   ;hold down-back while you press a
;   tilde (~) - to detect key releases
;          egs. command = ~a       ;release the a button
;               command = ~D, F, a ;release down, press fwd, then a
;          If you want to detect "charge moves", you can specify
;          the time the key must be held down for (in game-ticks)
;          egs. command = ~30a     ;hold a for at least 30 ticks, then release
;   dollar ($) - Direction-only: detect as 4-way
;          egs. command = $D       ;will detect if D, DB or DF is held
;               command = $B       ;will detect if B, DB or UB is held
;   plus (+) - Buttons only: simultaneous press
;          egs. command = a+b      ;press a and b at the same time
;               command = x+y+z    ;press x, y and z at the same time
;   You can combine them:
;     eg. command = ~30$D, a+b     ;hold D, DB or DF for 30 ticks, release,
;                                  ;then press a and b together
;   It's recommended that for most "motion" commads, eg. quarter-circle-fwd,
;   you start off with a "release direction". This matches the way most
;   popular fighting games implement their command detection.
;
; - time (optional)
;   Time allowed to do the command, given in game-ticks. Defaults to 15
;   if omitted
;
; If you have two or more commands with the same name, all of them will
; work. You can use it to allow multiple motions for the same move.
;
; Some common commands examples are given below.
;
; [Command] ;Quarter circle forward + x
; name = "QCF_x"
; command = ~D, DF, F, x
;
; [Command] ;Half circle back + a
; name = "HCB_a"
; command = ~F, DF, D, DB, B, a
;
; [Command] ;Two quarter circles forward + y
; name = "2QCF_y"
; command = ~D, DF, F, D, DF, F, y
;
; [Command] ;Tap b rapidly
; name = "5b"
; command = b, b, b, b, b
; time = 30
;
; [Command] ;Charge back, then forward + z
; name = "charge_B_F_z"
; command = ~60$B, F, z
; time = 10
; 
; [Command] ;Charge down, then up + c
; name = "charge_D_U_c"
; command = ~60$D, U, c
; time = 10
; 

;-| 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
;-|A.I.|------------------------------------------------------------------
[command]
name = "CPU1"
command = D,D,D
time = 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[Command]
name = "CPU31"
command = U,U,D,D
time = 0
;-| Super Motions |--------------------------------------------------------
[command]
name = "Stab"
command = ~D,DB,B,D,DB,B,~c
time = 25

[command]
name = "Stab"
command = ~D,DB,B,D,DB,B,~b
time = 25

[command]
name = "Stab"
command = ~D,DB,B,D,DB,B,~a
time = 25

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

[command]
name = "SFB"
command = ~D,DF,F,D,DF,F,~y
time = 25

[command]
name = "SFB"
command = ~D,DF,F,D,DF,F,~x
time = 25

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

[command]
name = "Ignite"
command = ~D,D,~y
time = 25

[command]
name = "Ignite"
command = ~D,D,~x
time = 25

[command]
name = "Pounch"
command = ~D,DB,B,D,DB,B,~x
time = 25

[command]
name = "Pounch"
command = ~D,DB,B,D,DB,B,~y
time = 25

[command]
name = "Pounch"
command = ~D,DB,B,D,DB,B,~z
time = 25

[command]
name = "SFG"
command = ~D,DF,F,D,DF,F,~c
time = 25

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

[command]
name = "SFG"
command = ~D,DF,F,D,DF,F,~a
time = 25

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

[command]
name = "blitz"
command = ~D,B,D,F,~y
time = 25

[command]
name = "blitz"
command = ~D,B,D,F,~x
time = 25

[command]
name = "Stab"
command = ~D,DB,B,D,DB,B,c
time = 25

[command]
name = "Stab"
command = ~D,DB,B,D,DB,B,b
time = 25

[command]
name = "Stab"
command = ~D,DB,B,D,DB,B,a
time = 25

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

[command]
name = "SFB"
command = ~D,DF,F,D,DF,F,y
time = 25

[command]
name = "SFB"
command = ~D,DF,F,D,DF,F,x
time = 25

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

[command]
name = "Ignite"
command = ~D,D,y
time = 25

[command]
name = "Ignite"
command = ~D,D,x
time = 25

[command]
name = "Pounch"
command = ~D,DB,B,D,DB,B,x
time = 25

[command]
name = "Pounch"
command = ~D,DB,B,D,DB,B,y
time = 25

[command]
name = "Pounch"
command = ~D,DB,B,D,DB,B,z
time = 25

[command]
name = "SFG"
command = ~D,DF,F,D,DF,F,c
time = 25

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

[command]
name = "SFG"
command = ~D,DF,F,D,DF,F,a
time = 25

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

[command]
name = "blitz"
command = ~D,B,D,F,y
time = 25

[command]
name = "blitz"
command = ~D,B,D,F,x
time = 25

[command]
name = "newdm"
command = ~D,D,D,~c
time = 25

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

[command]
name = "newdm"
command = ~D,D,D,~a
time = 25

[command]
name = "newdm"
command = ~D,D,D,c
time = 25

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

[command]
name = "newdm"
command = ~D,D,D,a
time = 25
;-| Special Motions |------------------------------------------------------
[command]
name = "ckick"
command = ~B,D,DB,~c
time = 15

[command]
name = "ckick2"
command = ~B,D,DB,~b
time = 15

[command]
name = "ckick3"
command = ~B,D,DB,~a
time = 15

[command]
name = "FG"
command = ~F,D,DF,~c
time = 15


[command]
name = "FG2"
command = ~F,D,DF,~b
time = 15

[command]
name = "FG3"
command = ~F,D,DF,~a
time = 15

[command]
name = "FB"
command = ~D,DF,F,~z
time = 15

[command]
name = "FB2"
command = ~D,DF,F,~y
time = 15

[command]
name = "FB3"
command = ~D,DF,F,~x
time = 15

[command]
name = "FS2"
command = ~D,DB,B,~y
time = 15
;command.buffer.time=5

[command]
name = "FS"
command = ~D,DB,B,~z
time = 15
;command.buffer.time=5

[command]
name = "FS3"
command = ~D,DB,B,~x
time = 15
;command.buffer.time=5

[command]
name = "Sill"
command = ~D,DB,B,~c
time = 15

[command]
name = "Sill"
command = ~D,DB,B,~b
time = 15

[command]
name = "Sill"
command = ~D,DB,B,~a
time = 15

[command]
name = "Sill2"
command = ~D,DF,F,~c
time = 15

[command]
name = "Sill2"
command = ~D,DF,F,~b
time = 15

[command]
name = "Sill2"
command = ~D,DF,F,~a
time = 15

[command]
name = "throw"
command = c+z
time = 1

[command]
name = "ckick"
command = ~B,D,DB,c
time = 15

[command]
name = "ckick2"
command = ~B,D,DB,b
time = 15

[command]
name = "ckick3"
command = ~B,D,DB,a
time = 15

[command]
name = "EXFG"
command = ~F,D,DF,c+b
time = 15

[command]
name = "EXFG"
command = ~F,D,DF,c+a
time = 15

[command]
name = "EXFG"
command = ~F,D,DF,a+b
time = 15

[command]
name = "FG"
command = ~F,D,DF,c
time = 15


[command]
name = "FG2"
command = ~F,D,DF,b
time = 15

[command]
name = "FG3"
command = ~F,D,DF,a
time = 15

[command]
name = "EXFS"
command = ~D,DB,B,z+x
time = 15

[command]
name = "EXFS"
command = ~D,DB,B,y+x
time = 15

[command]
name = "EXFS"
command = ~D,DB,B,z+y
time = 15

[command]
name = "EXFB"
command = ~D,DF,F,z+x
time = 15

[command]
name = "EXFB"
command = ~D,DF,F,z+y
time = 15

[command]
name = "EXFB"
command = ~D,DF,F,y+x
time = 15

[command]
name = "FB"
command = ~D,DF,F,z
time = 15

[command]
name = "FB2"
command = ~D,DF,F,y
time = 15

[command]
name = "FB3"
command = ~D,DF,F,x
time = 15

[command]
name = "FS2"
command = ~D,DB,B,y
time = 15
;command.buffer.time=5

[command]
name = "FS"
command = ~D,DB,B,z
time = 15
;command.buffer.time=5

[command]
name = "FS3"
command = ~D,DB,B,x
time = 15
;command.buffer.time=5

[command]
name = "Sill"
command = ~D,DB,B,c
time = 15

[command]
name = "Sill"
command = ~D,DB,B,b
time = 15

[command]
name = "Sill"
command = ~D,DB,B,a
time = 15

[command]
name = "Sill2"
command = ~D,DF,F,c
time = 15

[command]
name = "Sill2"
command = ~D,DF,F,b
time = 15

[command]
name = "Sill2"
command = ~D,DF,F,a
time = 15

[command]
name = "OH"
command = y+b
time = 15

;-| 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 = 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 = "rx"
command = ~x
time = 1

[Command]
name = "ry"
command = ~y
time = 1

[Command]
name = "rz"
command = ~z
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

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

[State -1]
type = VarSet
trigger1 = command = "CPU1"
trigger2 = command = "CPU2"
trigger3 = command = "CPU3"
trigger4 = command = "CPU4"
trigger5 = command = "CPU5"
trigger6 = command = "CPU6"
trigger7 = command = "CPU7"
v = 59
value = 1
[State -1]
type = VarSet
trigger1 = command = "CPU8"
trigger2 = command = "CPU9"
trigger3 = command = "CPU10"
trigger4 = command = "CPU11"
trigger5 = command = "CPU12"
trigger6 = command = "CPU13"
trigger7 = command = "CPU14"
trigger8 = command = "CPU15"
v = 59
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU16"
trigger2 = command = "CPU17"
trigger3 = command = "CPU18"
trigger4 = command = "CPU19"
trigger5 = command = "CPU20"
trigger6 = command = "CPU21"
trigger7 = command = "CPU22"
trigger8 = command = "CPU23"
v = 59
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU24"
trigger2 = command = "CPU25"
trigger3 = command = "CPU26"
trigger4 = command = "CPU27"
trigger5 = command = "CPU28"
trigger6 = command = "CPU29"
trigger7 = command = "CPU30"
trigger8 = command = "CPU31"
v = 59
value = 1

;===============================================================================
;Stab
[State -1, StabAI]
type = ChangeState
value = 1700
triggerall = var(59) >= 1 && StateType != A && Power >= 2000
triggerall = roundstate = 2
triggerall = p2statetype != L
triggerall = random < 199
triggerall = stateno !=[1000,3999]
triggerall = p2bodydist x = [0,70]
triggerall = movetype != H
triggerall = (Var(0) >= 1)
triggerall = life <= 250
triggerall = var(11) = 0
Triggerall = statetype!=A
triggerall = teammode != simul
trigger1=ctrl
;----------------------------------------------------------------------------
;SFG
[State -1, SFGAI]
type = ChangeState
value = 3100
triggerall = var(59) >= 1 && StateType != A && Power >= 2000
triggerall = roundstate = 2
triggerall = p2statetype != L
triggerall = random < 399
triggerall = p2statetype != A
triggerall = p2bodydist x=[20,250]
triggerall = stateno !=[3000,3999]
triggerall = movetype != H
triggerall = (Var(0) = 0)
trigger1 =  ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movehit
trigger3 = stateno = 210|| stateno=211
trigger3 =  movehit
trigger4 = stateno = 240|| stateno=241
trigger4 =  movehit
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 =  movehit
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 =  movehit
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movehit
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 =  movehit
trigger9 = stateno = 420 || stateno=421
trigger9 =  movehit
trigger10= stateno = 1500|| stateno=1501|| stateno=1502
trigger10 =  movehit
trigger11 = stateno = 1000 || stateno=1001|| stateno=1002 || stateno=10000
trigger11 =  movehit
trigger12 = stateno = 1005 || stateno=1008
trigger12 =  movehit
trigger13= var(31)
;-----------------------------------------------------------------
;Blitz
[State -1, BlitzAI]
type = ChangeState
value = 1800
triggerall = var(59) >= 1 && StateType != A && Power >= 3000
triggerall = roundstate = 2
triggerall = p2statetype != L
triggerall = random < 199
triggerall = stateno !=[1000,3999]
triggerall = p2bodydist x = [0,70]
triggerall = movetype != H
triggerall = (Var(0) >= 1)
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 =  movehit
trigger3 = stateno = 210|| stateno=211
trigger3 =  movehit
trigger4 = stateno = 240|| stateno=241
trigger4 =  movehit
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 =  movehit
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 =  movehit
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 =  movehit
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movehit
trigger9 = stateno = 420 || stateno=421
trigger9 =  movehit
trigger10= stateno = 1500|| stateno=1501|| stateno=1502
trigger10 =  movehit
trigger11 = stateno = 1000 || stateno=1001|| stateno=1002 || stateno=10000
trigger11 =  movehit
trigger12 = stateno = 1005 || stateno=1008
trigger12 = movehit
trigger13= var(31)

--------------------------------------------
;SFB
[State -1, SFBAI]
type = ChangeState
value = 1110
triggerall = var(59) >= 1 && StateType != A  && Power >= 2000
triggerall = roundstate = 2
triggerall = p2statetype != L
triggerall = random < 399
triggerall = p2statetype != A
triggerall = p2bodydist x=[20,250]
triggerall = stateno !=[3000,3999]
triggerall = movetype != H
triggerall = (Var(0) = 0)
trigger1= ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 =  movehit
trigger3 = stateno = 210|| stateno=211
trigger3 = movehit
trigger4 = stateno = 240|| stateno=241
trigger4 = movehit
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 =  movehit
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movehit
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 =  movehit
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 =  movehit
trigger9 = stateno = 420 || stateno=421
trigger9 =  movehit
trigger10= stateno = 1500|| stateno=1501|| stateno=1502
trigger10 = movehit
trigger11 = stateno = 1000 || stateno=1001|| stateno=1002 || stateno=10000
trigger11 =  movehit
trigger12 = stateno = 1005 || stateno=1008
trigger12 =  movehit
trigger13= var(31)

;-----------------------------------------------------------------
;Pounch
[State -1, PounchAI]
type = ChangeState
value = 8880
triggerall = var(59) >= 1 && StateType != A && Power >= 1000
triggerall = roundstate = 2
triggerall = p2statetype != L
triggerall = random < 149
triggerall = stateno !=[1000,3999]
triggerall = p2bodydist x = [0,70]
triggerall = movetype != H
triggerall = (Var(0) >= 0)
Triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movehit
trigger3 = stateno = 210|| stateno=211
trigger3 = movehit
trigger4 = stateno = 240|| stateno=241
trigger4 =  movehit
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 =  movehit
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movehit
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 =  movehit
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 =  movehit
trigger9 = stateno = 420 || stateno=421
trigger9 =  movehit
trigger10= stateno = 1500|| stateno=1501|| stateno=1502
trigger10 = movehit
trigger11 = stateno = 1000 || stateno=1001|| stateno=1002 || stateno=10000
trigger11 =  movehit
trigger12 = stateno = 1005 || stateno=1008
trigger12 =  movehit
trigger13= var(31)
;--------------------------------------------------------------------------
;------------------------------------------------------
[State -1, AI5]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType !=A
triggerall = roundstate = 2
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,30])&&(P2BodyDist Y = 0 )
Triggerall = Random <= 400
triggerall = p2statetype != L && p2statetype !=A
triggerall = p2stateno !=[120,150]
triggerall = p2statetype !=C
trigger1 = ctrl
value = ifelse(var(0)=1,201,201)
;------------------------------------------------------
[State -1, AI2]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,40])
Triggerall = (P2BodyDist y = [-80,0])
Triggerall = Random < 600
triggerall = roundstate = 2
triggerall = p2statetype != L
triggerall = p2stateno !=[120,150]
triggerall = p2statetype !=C
trigger1 = ctrl
trigger2 = stateno = 200 || stateno=201
trigger2 = movecontact
trigger3 = stateno = 230 || stateno=231
trigger3 = movecontact
trigger4 = stateno = 400 || stateno=401
trigger4 = movecontact
trigger5 = stateno = 430  || stateno=431
trigger5 = movecontact
value = ifelse(var(0)=1,211,211)
;------------------------------------------------------
[State -1, AI2]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,70]) && (P2BodyDist Y = 0 )
Triggerall = Random < 600
triggerall = p2statetype != L && p2statetype !=A
triggerall = p2stateno !=[120,150]
triggerall = p2statetype !=C
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact
trigger4 = stateno = 205&& movecontact
trigger5 = stateno = 235 && movecontact
trigger6= (stateno=405|| stateno=435) && movehit
trigger7= (stateno=400|| stateno=430) && movehit
value = ifelse((var(0)=1&&(p2bodydist x=[0,10])),221,ifelse((var(0)=0&&(p2bodydist x=[0,10])),221,ifelse(var(0)=1,221,221)))

;------------------------------------------------------
[State -1, AI9]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType !=A
trigger1 = ctrl
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,45]) && (P2BodyDist Y = 0 )
Triggerall = Random < 600
triggerall = p2statetype != L
triggerall = p2stateno !=[120,150]
triggerall = p2statetype !=C
trigger1 = ctrl
value = ifelse(var(0)=1,231,231)
;------------------------------------------------------
[State -1, AI 9]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
triggerall = p2stateno !=[120,150]
triggerall = p2statetype !=C
triggerall = p2statetype != L&& p2statetype !=A
Triggerall = (P2BodyDist X = [0,55]) && (P2BodyDist Y = [-90,0] )
Triggerall = Random < 600
trigger1 = ctrl
trigger2 = stateno = 200 || stateno=201
trigger2 = movecontact
trigger3 = stateno = 230 || stateno=231
trigger3 = movecontact
trigger4 = stateno = 400 || stateno=401
trigger4 = movecontact
trigger5 = stateno = 430  || stateno=431
trigger5 = movecontact
value =ifelse(var(0)=1,241,241)
;------------------------------------------------------
[State -1, AI8]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
trigger1 = ctrl
Triggerall = P2BodyDist X = [0,60]
triggerall=  (P2BodyDist Y = [-100,0] )
Triggerall = Random < 600
triggerall = p2statetype != L && p2statetype !=A
triggerall = p2statetype !=C
triggerall = p2stateno !=[120,150]
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 235 && movecontact
trigger4 = stateno = 200 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6= (stateno=405|| stateno=435) && movehit
trigger7= (stateno=400|| stateno=430) && movehit
value = ifelse((var(0)=1&&(p2bodydist x=[0,10])),253,ifelse((var(0)=0&&(p2bodydist x=[0,10])),251,ifelse(var(0)=1,253,251)))

;------------------------------------------------------
[State -1, AI5]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,30])&&(P2BodyDist Y = 0 )
Triggerall = Random < 600
triggerall = p2statetype != L && p2statetype !=A
trigger1 = ctrl
trigger2 = p2statetype =S && (p2stateno = [120,155]) && ctrl
triggerall = p2stateno !=[120,150]
value =ifelse(var(0)=1,401,401)
;------------------------------------------------------
[State -1, AI2]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,30])&&(P2BodyDist Y = 0 )
Triggerall = Random < 600
triggerall = p2statetype != L && p2statetype !=A
trigger1 = ctrl
trigger2 = stateno = 200 || stateno=201
trigger2 = movecontact
trigger3 = stateno = 230 || stateno=231
trigger3 = movecontact
trigger4 = stateno = 400 || stateno=401
trigger4 = movecontact
trigger5 = stateno = 430  || stateno=431
trigger5 = movecontact
trigger6 = p2statetype =S && ctrl
triggerall = p2stateno !=[120,150]
value =ifelse(var(0)=1,411,411)
;------------------------------------------------------
[State -1, AI2]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,40]) && (P2BodyDist Y = [-80,0] )
Triggerall = Random <= 800
triggerall = p2statetype != L  && p2statetype !=A
trigger1 = ctrl
trigger2 = stateno = 210|| stateno=211
trigger2 = movecontact
trigger3 = stateno = 240|| stateno=241
trigger3 = movecontact
trigger4 = stateno = 410|| stateno=411
trigger4 = movecontact
trigger5 = stateno = 440 || stateno=441
trigger5 = movecontact
triggerall = p2stateno !=[120,150]
value =ifelse(var(0)=1,421,421)
;------------------------------------------------------
[State -1, AI9]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
Triggerall = P2BodyDist X = [0,40]
triggerall = p2statetype != L && p2statetype !=A
Triggerall = Random < 600
trigger1 = ctrl
trigger2 = p2statetype =S && (p2stateno = [120,155]) && ctrl
triggerall = p2stateno !=[120,150]
value =ifelse(var(0)=1,431,431)
;------------------------------------------------------
[State -1, AI 9]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
triggerall = p2bodydist x > 30
triggerall = p2statetype != L && p2statetype !=A
Triggerall = (P2BodyDist X = [0,35]) && (P2BodyDist Y = 0 )
Triggerall = Random < 600
trigger1 = ctrl
trigger2 = stateno = 200 || stateno=201
trigger2 = movecontact
trigger3 = stateno = 230 || stateno=231
trigger3 = movecontact
trigger4 = stateno = 400 || stateno=401
trigger4 = movecontact
trigger5 = stateno = 430  || stateno=431
trigger5 = movecontact
trigger6 = p2statetype =S  && ctrl
triggerall = p2stateno !=[120,150]
value =ifelse(var(0)=1,441,441)
;------------------------------------------------------
[State -1, AI8]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
triggerall = p2statetype != L&& p2statetype !=A
trigger1 = ctrl
Triggerall = P2BodyDist X = [0,45]
Triggerall = Random < 600
triggerall = stateno !=240 && stateno !=210 && stateno !=215
trigger2 = stateno = 210|| stateno=211
trigger2 = movecontact
trigger3 = stateno = 240|| stateno=241
trigger3 = movecontact
trigger4 = stateno = 410|| stateno=411
trigger4 = movecontact
trigger5 = stateno = 440 || stateno=441
trigger5 = movecontact
trigger6 = p2statetype =S  && ctrl
triggerall = p2stateno !=[120,150]
value =ifelse(var(0)=1,451,451)
;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, AI9]
type = ChangeState
value =ifelse(var(0)=1,601,601)
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,50])
Triggerall = Random <= 500
triggerall = roundstate = 2
trigger1 = ctrl



;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, AI9]
type = ChangeState
value =ifelse(var(0)=1,611,611)
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,55])
Triggerall = Random <= 500
triggerall = roundstate = 2
trigger1 = ctrl
trigger2 = stateno = 600 || stateno=601
trigger2 = movecontact
trigger3 = stateno = 630||stateno=631
trigger3 = movecontact



;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, AI9]
type = ChangeState
value =ifelse(var(0)=1,621,621)
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,55])
Triggerall = Random <= 500
triggerall = roundstate = 2
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 610||stateno=611
trigger2 = movecontact
trigger3 = stateno = 640 ||stateno=641
trigger3 = movecontact


;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, AI9]
type = ChangeState
value =ifelse(var(0)=1,631,631)
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,55])
Triggerall = Random <= 500
triggerall = roundstate = 2
trigger1 = ctrl
;---------------------------------------------------------------------------

[State -1, AI9]
type = ChangeState
value =ifelse(var(0)=1,641,641)
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,65])
Triggerall = Random <= 500
triggerall = roundstate = 2
trigger1 = ctrl
trigger2 = stateno = 600 || stateno=601
trigger2 = movecontact
trigger3 = stateno = 630||stateno=631
trigger3 = movecontact

;---------------------------------------------------------------------------
[State -1, AI9]
type = ChangeState
value =ifelse(var(0)=1,651,650)
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = stateno !=615
triggerall = stateno !=640
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,65])
Triggerall = Random <= 500
triggerall = roundstate = 2
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 610||stateno=611
trigger2 = movecontact
trigger3 = stateno = 640 ||stateno=641
trigger3 = movecontact
;-----------------------------------------------------------------------------

;-----------------------------------------------------------------------------
;FS3
[State -1, FSAI]
type = ChangeState
value = 4202
triggerall = var(59) >= 1 && StateType != A
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[0,60])&&(p2bodydist y=[-100,0]))||(p2statetype=A && (p2bodydist x=[0,80]))
triggerall = stateno !=[800,4999]
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <=99
triggerall = p2movetype!=A || (p2statetype=A)
triggerall = stateno !=[800,899]
trigger1 = ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
;--------------------------------------------------------------------------
;FS2
[State -1, FSAI]
type = ChangeState
value = 4201
triggerall = var(59) >= 1 && StateType != A
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[40,80])&&(p2bodydist y=[-100,0]))||(p2statetype=A && (p2bodydist x=[0,80]))
triggerall = stateno !=[800,4999]
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <=99
triggerall = p2movetype!=A || (p2statetype=A)
triggerall = stateno !=[800,899]
trigger1 = ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
;-------------------------------------------------------------------------
;FS
[State -1, FSAI]
type = ChangeState
value = 4200
triggerall = var(59) >= 1 && StateType != A
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[50,100])&&(p2bodydist y=[-100,0]))||(p2statetype=A && (p2bodydist x=[0,80]))
triggerall = stateno !=[800,4999]
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <=99
triggerall = p2movetype!=A || (p2statetype=A)
triggerall = stateno !=[800,899]
trigger1 = ctrl
triggerall = p2stateno !=[120,150]
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger10 = p2statetype=A && ctrl
;---------------------------------------------------------------------
;FG
[State -1, FGAI]
type = ChangeState
value = 4000
triggerall = var(59) >= 1 && StateType != A
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[0,70])&&(p2bodydist y=[-120,0]))||(p2statetype=A && (p2bodydist x=[0,80]))
triggerall = stateno !=[800,4999]
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <=119
triggerall = stateno !=[800,899]
trigger1 = ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = p2statetype=A && ctrl

;--------------------------------------------------------------------------
;FG2
[State -1, FGAI]
type = ChangeState
value = 4001
triggerall = var(59) >= 1 && StateType != A
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[0,70])&&(p2bodydist y=[-120,0]))||(p2statetype=A && (p2bodydist x=[0,80]))
triggerall = stateno !=[800,4999]
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <=119
triggerall = stateno !=[800,899]
trigger1 = ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = p2statetype=A && ctrl
;--------------------------------------------------------------------------
;FG 3
[State -1, FGAI]
type = ChangeState
value = 4002
triggerall = var(59) >= 1 && StateType != A
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[0,60])&&(p2bodydist y=[-120,0]))||(p2statetype=A && (p2bodydist x=[0,80]))
triggerall = stateno !=[800,4999]
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <=119
triggerall = stateno !=[800,899]
trigger1 = ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact

;--------------------------------------------------------------------------
;FG 3
[State -1, FGAI]
type = ChangeState
value = 1505
triggerall = var(59) >= 1 && StateType != A
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[0,60])&&(p2bodydist y=[-120,0]))||(p2statetype=A && (p2bodydist x=[0,80]))
triggerall = stateno !=[800,4999]
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <=69
triggerall = power>499
triggerall = stateno !=[800,899]
trigger1 = ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact

;-------------------------------------------------------------------------
;FB
[State -1, FBAI]
type = ChangeState
value = 4100
triggerall = statetype!=A
triggerall = var(59)=1 && roundstate = 2
triggerall = (p2stateno!=[120,155])
trigger1 =  ctrl
triggerall = stateno !=410
triggerall = numhelper(1900) <= 0
triggerall = ((p2bodydist x>30) && (p2bodydist y = [-50,0]))
triggerall =  (random < 22)||(random<249 && movehit)
triggerall = stateno != [800,3999]
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact

;----------------------------------------------------------------------
;FB2
[State -1, FBAI]
type = ChangeState
value = 4101
triggerall = var(59)=1 && roundstate = 2
triggerall = (p2stateno!=[120,155])
trigger1 =  ctrl
triggerall = statetype!=A
triggerall = stateno !=410
triggerall = numprojid(7200) <= 0
triggerall = ((p2bodydist x>30) && (p2bodydist y = [-50,0]))
triggerall =  (random < 22)||(random<249 && movehit)
triggerall = stateno != [800,3999]
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact

;---------------------------------------------------------------------
;FB3
[State -1, FBAI]
type = ChangeState
value = 4102
triggerall = var(59)=1 && roundstate = 2
triggerall = (p2stateno!=[120,155])
trigger1 =  ctrl
triggerall = stateno !=410
triggerall = numhelper(1900) <= 0
triggerall = statetype!=A
triggerall = ((p2bodydist x>30) && (p2bodydist y = [-50,0]))
triggerall =  (random < 22)||(random<249 && movehit)
triggerall = stateno != [800,3999]
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
;---------------------------------------------------------------------
;FB3
[State -1, FBAI]
type = ChangeState
value = 41022
triggerall = var(59)=1 && roundstate = 2
triggerall = (p2stateno!=[120,155])
triggerall = power >499
trigger1 =  ctrl
triggerall = stateno !=410
triggerall = numhelper(1900) <= 0
triggerall = statetype!=A
triggerall = ((p2bodydist x>30) && (p2bodydist y = [-50,0]))
triggerall =  (random < 22)||(random<249 && movehit)
triggerall = stateno != [800,3999]
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact


;-------------------------------------------------------------------
[State -1, AISuper Jump]
type = ChangeState
value = 50
triggerall = var(59) >= 1
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = random < 250
trigger1 = (StateNo = 420)||(StateNo = 421)
trigger1 = movehit

;-------------------------------------------------
[state -1, AI jump]
type = changestate
triggerall = var(59) = 1
triggerall = p2statetype !=L
triggerall = statetype != A
triggerall = var(30)
trigger1 = ctrl && (p2bodydist x = [50,90])
trigger2 =p2statetype = C && (p2bodydist x = [50,90]) && ctrl
trigger3= enemy,hitdefattr=S,AT
value = 40

[State -1, Guard]
type = ChangeState
value = 120
triggerall = movetype !=H
triggerall = roundstate = 2
triggerall = statetype!=A
triggerall = stateno!=[120,155]
triggerall=var(59) >= 1
trigger1 =(StateNo !=[800,998])&&(StateNo != 105)
triggerall = Random < 900
triggerall =(EnemyNear, movetype=A)
triggerall=ctrl ||stateno=20
trigger2 = enemynear,hitdefattr = SCA,SP,HP
persistent = 0


[State -1, AI run]
type=changestate
value=100
triggerall = roundstate = 2
triggerall=var(59) >= 1 && statetype=S && ctrl && random < 199
triggerall = p2bodydist y =[-240,0]
trigger1= (stateno!=[100,105]) && p2movetype!=A && ((p2bodydist x=[400,788])|| numproj >0)

[State -1, AI run]
type=changestate
value=20
triggerall = roundstate = 2
triggerall=var(59) >= 1 && statetype=S && ctrl && random < 249
trigger1= (stateno!=[20,105]) && p2movetype!=A && (p2bodydist x=[20,399])

[State -1, AIRun Back]
type = ChangeState
value = 105
triggerall = var(59) = 1
triggerall = stateno !=105
triggerall = statetype != A
triggerall = random < 149
triggerall = roundstate = 2
triggerall = ctrl
trigger1 = (p2statetype =L || p2movetype = A) && (p2bodydist x=[-99,15])
;===========================================================================
;Pounch
[State -1, Pounch]
type = ChangeState
value = 8880
triggerall = Var(59) = 0
triggerall = command = "Pounch"
triggerall = power >= 1000
triggerall = (Var(0) = 0)
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10= stateno = 1500|| stateno=1501|| stateno=1502
trigger10 = movecontact
trigger11 = stateno = 1000 || stateno=1001|| stateno=1002 || stateno=10000
trigger11 = movecontact
trigger12 = stateno = 1005 || stateno=1008
trigger12 = movecontact
trigger13= var(31)

;Blitz
[State -1, Blitz]
type = ChangeState
value = 1800
triggerall = Var(59) = 0
triggerall = command = "blitz"
triggerall = power >= 2000
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno=201||stateno=231
trigger2 = movecontact
trigger3 = stateno=211
trigger3 = movecontact
trigger4 = stateno=241
trigger4 = movecontact
trigger5 = stateno=221||stateno=223
trigger5 = movecontact
trigger6 = stateno=251||stateno=253
trigger6 = movecontact
trigger7 = stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno=411
trigger8 = movecontact
trigger9 = stateno=421
trigger9 = movecontact
trigger10= stateno = 1500|| stateno=1501|| stateno=1502
trigger10 = movecontact
trigger11 = stateno = 1000 || stateno=1001|| stateno=1002 || stateno=10000
trigger11 = movecontact
trigger12 = stateno = 1005 || stateno=1008
trigger12 = movecontact
trigger13= var(31)

;NewDM
[State -1, NewDM]
type = ChangeState
value = 4700
triggerall = Var(59) = 0
triggerall = command = "newdm"
triggerall = life <= 250
triggerall = var(11) = 0
Triggerall = statetype!=A 
trigger1=ctrl

;SFG
[State -1, SFG]
type = ChangeState
value = 4400
triggerall = Var(59) = 0
triggerall = command = "SFG"
triggerall = power >= 2000
triggerall = (Var(0) = 0)
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10= stateno = 1500|| stateno=1501|| stateno=1502
trigger10 = movecontact
trigger11 = stateno = 1000 || stateno=1001|| stateno=1002 || stateno=10000
trigger11 = movecontact
trigger12 = stateno = 1005 || stateno=1008
trigger12 = movecontact
trigger13= var(31)

;SFB
[State -1, SFB]
type = ChangeState
value = 1110
triggerall = Var(59) = 0
triggerall = command = "SFB"
triggerall = power >= 2000
triggerall = (Var(0) = 0)
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10= stateno = 1500|| stateno=1501|| stateno=1502
trigger10 = movecontact
trigger11 = stateno = 1000 || stateno=1001|| stateno=1002 || stateno=10000
trigger11 = movecontact
trigger12 = stateno = 1005 || stateno=1008
trigger12 = movecontact
trigger13= var(31)

;EXFS
[State -1, EXFS]
type = ChangeState
value = 4003
triggerall = Var(59) = 0
triggerall = command = "EXFG"
Triggerall = statetype!=A
triggerall = power >= 500
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact

;EXFB
[State -1, EXFB]
type = ChangeState
value = 41022
triggerall = Var(59) = 0
triggerall = power >= 500
triggerall = command = "EXFB"
triggerall = numhelper(1900) <= 0
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact

;FG
[State -1, FG]
type = ChangeState
value = 4000
triggerall = Var(59) = 0
triggerall = command = "FG"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact

;FG2
[State -1, FG2]
type = ChangeState
value = 4001
triggerall = Var(59) = 0
triggerall = command = "FG2"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact

;FG 3
[State -1, FG3]
type = ChangeState
value = 4002
triggerall = Var(59) = 0
triggerall = command = "FG3"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact

;ckick
[State -1, ckick]
type = ChangeState
value = 662
triggerall = command = "ckick"
trigger1 = (statetype = s) && ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact

;ckick2
[State -1, ckick2]
type = ChangeState
value = 661
triggerall = command = "ckick2"
trigger1 = (statetype = s) && ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact

;ckick3
[State -1, ckick3]
type = ChangeState
value = 660
triggerall = command = "ckick3"
trigger1 = (statetype = s) && ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact

;FS
[State -1, FS]
type = ChangeState
value = 4200
triggerall = Var(59) = 0
triggerall = command = "FS"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact


;FS2
[State -1, FS2]
type = ChangeState
value = 4201
triggerall = Var(59) = 0
triggerall = command = "FS2"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact


;FS3
[State -1, FS3]
type = ChangeState
value = 4202
triggerall = Var(59) = 0
triggerall = command = "FS3"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact

;EXAFB
[State -1, EXAFB]
type = ChangeState
value = 4803
triggerall = Var(59) = 0
triggerall = command = "EXFB"
triggerall = numhelper(4900) <= 0
triggerall = power >= 500
Triggerall = statetype=A
trigger1=ctrl
trigger2 = stateno = 600|| stateno=601||stateno=630||stateno=631
trigger2 = movecontact
trigger3 = stateno = 610|| stateno=611
trigger3 = movecontact
trigger4 = stateno = 640|| stateno=641
trigger4 = movecontact
trigger5 = stateno = 620|| stateno=621|| stateno=622 || stateno=623
trigger5 = movecontact
trigger6 = stateno = 650|| stateno=651|| stateno=652 || stateno=653
trigger6 = movecontact

;AFB
[State -1, AFB]
type = ChangeState
value = 4800
triggerall = Var(59) = 0
triggerall = command = "FB"
triggerall = numhelper(4900) <= 0
Triggerall = statetype=A
trigger1=ctrl
trigger2 = stateno = 600|| stateno=601||stateno=630||stateno=631
trigger2 = movecontact
trigger3 = stateno = 610|| stateno=611
trigger3 = movecontact
trigger4 = stateno = 640|| stateno=641
trigger4 = movecontact
trigger5 = stateno = 620|| stateno=621|| stateno=622 || stateno=623
trigger5 = movecontact
trigger6 = stateno = 650|| stateno=651|| stateno=652 || stateno=653
trigger6 = movecontact

;AFB2
[State -1, AFB2]
type = ChangeState
value = 4801
triggerall = Var(59) = 0
triggerall = command = "FB2"
triggerall = numhelper(4900) <= 0
Triggerall = statetype=A
trigger1=ctrl
trigger2 = stateno = 600|| stateno=601||stateno=630||stateno=631
trigger2 = movecontact
trigger3 = stateno = 610|| stateno=611
trigger3 = movecontact
trigger4 = stateno = 640|| stateno=641
trigger4 = movecontact
trigger5 = stateno = 620|| stateno=621|| stateno=622 || stateno=623
trigger5 = movecontact
trigger6 = stateno = 650|| stateno=651|| stateno=652 || stateno=653
trigger6 = movecontact

;AFB3
[State -1, AFB3]
type = ChangeState
value = 4802
triggerall = Var(59) = 0
triggerall = command = "FB3"
triggerall = numhelper(4900) <= 0
Triggerall = statetype=A
trigger1=ctrl
trigger2 = stateno = 600|| stateno=601||stateno=630||stateno=631
trigger2 = movecontact
trigger3 = stateno = 610|| stateno=611
trigger3 = movecontact
trigger4 = stateno = 640|| stateno=641
trigger4 = movecontact
trigger5 = stateno = 620|| stateno=621|| stateno=622 || stateno=623
trigger5 = movecontact
trigger6 = stateno = 650|| stateno=651|| stateno=652 || stateno=653
trigger6 = movecontact

;FB
[State -1, FB]
type = ChangeState
value = 4100
triggerall = Var(59) = 0
triggerall = command = "FB"
triggerall = numhelper(4900) <= 0
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact

;FB2
[State -1, FB2]
type = ChangeState
value = 4101
triggerall = Var(59) = 0
triggerall = command = "FB2"
triggerall = numhelper(4900) <= 0
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact

;ChargeEnd
[State -1, ChargeEnd]
type = ChangeState
value = 4605
triggerall = Var(59) = 0
triggerall = command = "z" || command = "y" || command = "x"
Triggerall = statetype!=A
trigger1=stateno = 4600

;Charge
[State -1, Charge]
type = ChangeState
value = 4600
triggerall = Var(59) = 0
triggerall = command = "Ignite"
Triggerall = statetype!=A
triggerall = power != 3000
trigger1=ctrl

;FB3
[State -1, FB3]
type = ChangeState
value = 4102
triggerall = Var(59) = 0
triggerall = command = "FB3"
triggerall = numhelper(4900) <= 0
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200|| stateno=201||stateno=230||stateno=231
trigger2 = movecontact
trigger3 = stateno = 210|| stateno=211
trigger3 = movecontact
trigger4 = stateno = 240|| stateno=241
trigger4 = movecontact
trigger5 = stateno = 220|| stateno=221|| stateno=222 || stateno=223
trigger5 = movecontact
trigger6 = stateno = 250|| stateno=251|| stateno=252 || stateno=253
trigger6 = movecontact
trigger7 = stateno = 400 || stateno=430 || stateno=401 || stateno=431
trigger7 = movecontact
trigger8 = stateno = 410 || stateno=440|| stateno=411
trigger8 = movecontact
trigger9 = stateno = 420 || stateno=421
trigger9 = movecontact
trigger10 = stateno = 1005 || stateno=1001
trigger10 = movecontact

;OH
[State -1, OH]
type = ChangeState
value = 280
triggerall = command = "OH"
trigger1 = (statetype = s) && ctrl

;launch
[State -1, upfwd]
Type = changestate
value = 40000
triggerall = Var(59) = 0
triggerall = command = "upfwd"
trigger1 = (StateNo = 420)
trigger1 = movehit
trigger2 = (StateNo = 421)
trigger2 = movehit
;===========================================================================
;---------------------------------------------------------------------------

;===========================================================================
[State -1, Jump]
type = changestate
value = 40
triggerall = Var(59) = 0
triggerall = statetype != A
triggerall = command = "up"
triggerall = var(50)=1
triggerall = stateno !=9000
trigger1 = ctrl

;---------------------------------------------------------------------------
; Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 1601
triggerall = Var(59) = 0
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; Run Back
[State -1, Run Back]
type = ChangeState
value = 1600
triggerall = Var(59) = 0
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

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

;---------------------------------------------------------------------------
; Throw
[State -1, Throw]
type = ChangeState
value = 800
triggerall = Var(59) = 0
triggerall = command = "throw"
trigger1 = (statetype = s) && ctrl

;===========================================================================
;---------------------------------------------------------------------------
; Taunt
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = Var(59) = 0
triggerall = command = "s"
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
; Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 201
triggerall = Var(59) = 0
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Stand Medium Punch 2
[State -1, Stand Medium Punch 2]
type = ChangeState
value = 1005
triggerall = Var(59) = 0
triggerall = command = "fwd_y"
triggerall = command != "holddown"
Triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200 || stateno=201
trigger2 = movecontact
trigger3 = stateno = 230 || stateno=231
trigger3 = movecontact
trigger4 = stateno = 400 || stateno=401
trigger4 = movecontact
trigger5 = stateno = 430  || stateno=431
trigger5 = movecontact
trigger6 = stateno = 211
trigger6 = movecontact

;---------------------------------------------------------------------------
;Stand Medium Punch
[State -1, Stand Medium Punch]
type = ChangeState
value = 211
triggerall = Var(59) = 0
triggerall = command = "y"
triggerall = command != "holddown"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200 || stateno=201
trigger2 = movecontact
trigger3 = stateno = 230 || stateno=231
trigger3 = movecontact
trigger4 = stateno = 400 || stateno=401
trigger4 = movecontact
trigger5 = stateno = 430  || stateno=431
trigger5 = movecontact

;---------------------------------------------------------------------------
;Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 1001
triggerall = Var(59) = 0
triggerall = command = "z"
triggerall = command != "holddown"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 210|| stateno=211
trigger2 = movecontact
trigger3 = stateno = 240|| stateno=241
trigger3 = movecontact
trigger4 = stateno = 410|| stateno=411
trigger4 = movecontact
trigger5 = stateno = 440 || stateno=441
trigger5 = movecontact
trigger6 = stateno = 1005
trigger6 = movecontact
trigger7 = stateno = 200 || stateno=201
trigger7 = movecontact
trigger8 = stateno = 230 || stateno=231
trigger8 = movecontact
trigger9 = stateno = 400 || stateno=401
trigger9 = movecontact
trigger10 = stateno = 430  || stateno=431
trigger10 = movecontact

;---------------------------------------------------------------------------
; Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 231
triggerall = Var(59) = 0
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; Standing Medium Kick
[State -1, Standing Medium Kick]
type = ChangeState
value = 241
triggerall = Var(59) = 0
triggerall = command = "b"
triggerall = command != "holddown"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200 || stateno=201
trigger2 = movecontact
trigger3 = stateno = 230 || stateno=231
trigger3 = movecontact
trigger4 = stateno = 400 || stateno=401
trigger4 = movecontact
trigger5 = stateno = 430  || stateno=431
trigger5 = movecontact

;---------------------------------------------------------------------------
; Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 253
triggerall = Var(59) = 0
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = p2bodydist x <= 10
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 210|| stateno=211
trigger2 = movecontact
trigger3 = stateno = 240|| stateno=241
trigger3 = movecontact
trigger4 = stateno = 410|| stateno=411
trigger4 = movecontact
trigger5 = stateno = 440 || stateno=441
trigger5 = movecontact
trigger6 = stateno = 1005
trigger6 = movecontact
trigger7 = stateno = 200 || stateno=201
trigger7 = movecontact
trigger8 = stateno = 230 || stateno=231
trigger8 = movecontact
trigger9 = stateno = 400 || stateno=401
trigger9 = movecontact
trigger10 = stateno = 430  || stateno=431
trigger10 = movecontact

;---------------------------------------------------------------------------
; Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 252
triggerall = Var(59) = 0
triggerall = command = "c"
triggerall = command != "holddown"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 210|| stateno=211
trigger2 = movecontact
trigger3 = stateno = 240|| stateno=241
trigger3 = movecontact
trigger4 = stateno = 410|| stateno=411
trigger4 = movecontact
trigger5 = stateno = 440 || stateno=441
trigger5 = movecontact
trigger6 = stateno = 1005
trigger6 = movecontact
trigger7 = stateno = 200 || stateno=201
trigger7 = movecontact
trigger8 = stateno = 230 || stateno=231
trigger8 = movecontact
trigger9 = stateno = 400 || stateno=401
trigger9 = movecontact
trigger10 = stateno = 430  || stateno=431
trigger10 = movecontact

;---------------------------------------------------------------------------
; Crouching Light Punch
[State -1, Crouching Light Punch]
type = ChangeState
value = 401
triggerall = Var(59) = 0
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
; Crouching Medium Punch
[State -1, Crouching Medium Punch]
type = ChangeState
value = 411
triggerall = Var(59) = 0
triggerall = command = "y"
triggerall = command = "holddown"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200 || stateno=201
trigger2 = movecontact
trigger3 = stateno = 230 || stateno=231
trigger3 = movecontact
trigger4 = stateno = 400 || stateno=401
trigger4 = movecontact
trigger5 = stateno = 430  || stateno=431
trigger5 = movecontact

;---------------------------------------------------------------------------
; Crouching Strong Punch
[State -1, Crouching Strong Punch]
type = ChangeState
value = 421
triggerall = Var(59) = 0
triggerall = command = "z"
triggerall = command = "holddown"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 210|| stateno=211
trigger2 = movecontact
trigger3 = stateno = 240|| stateno=241
trigger3 = movecontact
trigger4 = stateno = 410|| stateno=411
trigger4 = movecontact
trigger5 = stateno = 440 || stateno=441
trigger5 = movecontact
trigger6 = stateno = 1005
trigger6 = movecontact
trigger7 = stateno = 200 || stateno=201
trigger7 = movecontact
trigger8 = stateno = 230 || stateno=231
trigger8 = movecontact
trigger9 = stateno = 400 || stateno=401
trigger9 = movecontact
trigger10 = stateno = 430  || stateno=431
trigger10 = movecontact

;---------------------------------------------------------------------------
; Crouching Light Kick
[State -1, Crouching Light Kick]
type = ChangeState
value = 431
triggerall = Var(59) = 0
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
; Crouching Medium Kick
[State -1, Crouching Medium Kick]
type = ChangeState
value = 441
triggerall = Var(59) = 0
triggerall = command = "b"
triggerall = command = "holddown"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 200 || stateno=201
trigger2 = movecontact
trigger3 = stateno = 230 || stateno=231
trigger3 = movecontact
trigger4 = stateno = 400 || stateno=401
trigger4 = movecontact
trigger5 = stateno = 430  || stateno=431
trigger5 = movecontact

;---------------------------------------------------------------------------
; Crouching Strong Kick
[State -1, Crouching Strong Kick]
type = ChangeState
value = 451
triggerall = Var(59) = 0
triggerall = command = "c"
triggerall = command = "holddown"
Triggerall = statetype!=A 
trigger1=ctrl
trigger2 = stateno = 210|| stateno=211
trigger2 = movecontact
trigger3 = stateno = 240|| stateno=241
trigger3 = movecontact
trigger4 = stateno = 410|| stateno=411
trigger4 = movecontact
trigger5 = stateno = 440 || stateno=441
trigger5 = movecontact
trigger6 = stateno = 1005
trigger6 = movecontact
trigger7 = stateno = 200 || stateno=201
trigger7 = movecontact
trigger8 = stateno = 230 || stateno=231
trigger8 = movecontact
trigger9 = stateno = 400 || stateno=401
trigger9 = movecontact
trigger10 = stateno = 430  || stateno=431
trigger10 = movecontact

;---------------------------------------------------------------------------
; Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 601
triggerall = Var(59) = 0
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump Medium Punch
[State -1, Jump Medium Punch]
type = ChangeState
value = 611
triggerall = Var(59) = 0
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno=601
trigger2 = movecontact
trigger3 = stateno = 630||stateno=631
trigger3 = movecontact


;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 621
triggerall = Var(59) = 0
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 610||stateno=611
trigger2 = movecontact
trigger3 = stateno = 640 ||stateno=641
trigger3 = movecontact
trigger4 = stateno = 600 || stateno=601
trigger4 = movecontact
trigger5 = stateno = 630||stateno=631
trigger5 = movecontact

;---------------------------------------------------------------------------
; Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 631
triggerall = Var(59) = 0
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
; Jump Medium Kick
[State -1, Jump Medium Kick]
type = ChangeState
value = 641
triggerall = Var(59) = 0
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno=601
trigger2 = movecontact
trigger3 = stateno = 630||stateno=631
trigger3 = movecontact

;---------------------------------------------------------------------------
; Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 651
triggerall = Var(59) = 0
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 610||stateno=611
trigger2 = movecontact
trigger3 = stateno = 640 ||stateno=641
trigger3 = movecontact
trigger4 = stateno = 600 || stateno=601
trigger4 = movecontact
trigger5 = stateno = 630||stateno=631
trigger5 = movecontact

;---------------------------------------------------------------------------
;Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 700
triggerall = (var(59) =0)
triggerall = command = "x"
triggerall = statetype = A
trigger1 = stateno = 100
trigger2 = stateno = 105

;---------------------------------------------------------------------------
;Jump Medium Punch
[State -1, Jump Medium Punch]
type = ChangeState
value = 710
triggerall = (var(59) =0)
triggerall = command = "y"
triggerall = statetype = A
trigger1 = stateno = 100
trigger2 = stateno = 105

;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 720
triggerall = (var(59) =0)
triggerall = command = "z"
triggerall = statetype = A
trigger1 = stateno = 100
trigger2 = stateno = 105

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 730
triggerall = (var(59) =0)
triggerall = command = "a"
triggerall = statetype = A
trigger1 = stateno = 100
trigger2 = stateno = 105

;---------------------------------------------------------------------------
;Jump Medium Kick
[State -1, Jump Medium Kick]
type = ChangeState
value = 740
triggerall = (var(59) =0)
triggerall = command = "b"
triggerall = statetype = A
trigger1 = stateno = 100
trigger2 = stateno = 105

;---------------------------------------------------------------------------
;Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 750
triggerall = (var(59) =0)
triggerall = command = "c"
triggerall = statetype = A
trigger1 = stateno = 100
trigger2 = stateno = 105

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