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

;-| AI Activation Commands |-----------------------------------------------
; From BBH
[Command]
name = "CPU0"
command = U,B,D,B,B,F,B,F,s,s
time = 0

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

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

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

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

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

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

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

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

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

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

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

[Command]
name = "CPU12"
command = B,F,D,D,B,F,B,F,x,z
time = 0

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

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

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

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

;-| Super Motions |--------------------------------------------------------
;The following two have the same name, but different motion.
;Either one will be detected by a "command = TripleKFPalm" trigger.
;Time is set to 20 (instead of default of 15) to make the move
;easier to do.
;
[Command]
name = "CaveyFly"
command = ~B, DB, D, DF, F, a+b
time = 45

[Command]
name = "CaptainHammer"
command = ~D, DF, F, y+z
time = 10

[Command]
name = "Avalanche"
command = ~F, DF, D, DB, B, b+c
time = 35

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

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

[Command]
name = "Spinx"
command = ~D, DB, B, y+z

[Command]
name = "boom"
command = x+y

[Command]
name = "SuperBuble!"
command = ~F, DF, D, DB, B, y+x
time = 45

[Command]
name = "dragon5"
command = ~F, DF,D ,DB ,B, x+y
time = 45


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

[Command]
name = "BRANG"
command = ~D ,DB ,B, a
time = 45

[Command]
name = "Chabacker2"
command = b+c;~D, D, z
time = 10

[Command]
name = "Mud"
command = ~D, D, a
time = 10

[Command]
name = "Mud"
command = ~D, D, b
time = 10

[Command]
name = "Mud"
command = ~D, D, c
time = 10

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

[Command]
name = "ButSlam"
command = /D , b
time = 45

[Command]
name = "ButSlam"
command = /DB , b
time = 45

[Command]
name = "ButSlam"
command = /DF , b
time = 45

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

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

[Command]
name = "yardslam"
command = ~F, DF, D, DB, B, y

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

[Command]
name = "dragon1"
command = ~D, DF, F, x
time = 12

[Command]
name = "dragon2"
command = ~B, DB, D, DF, F, y
time = 45

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

[Command]
name = "Donald"
command = ~D, D, x
time = 15

[Command]
name = "AwaySon!"
command = ~D, D, y
time = 15

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

[Command]
name = "russel"
command = ~D, DF, F, b
time = 12

[Command]
name = "Bucky"
command = ~D, D, a+b
time = 15

;[Command]
;name = "Slam2"
;command = ~D, DF, F, b
;time = 15

;[Command]
;name = "Slam3"
;command = ~D, DF, F, a
;time = 15;

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


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

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

[Command]
name = "Assist3"
command = ~B, DB, D, DF, F, c 
time = 15

[Command]
name = "Assist4"
command = ~D, D, a 
time = 15

[Command]
name = "Assist5"
command = ~D, D, c 
time = 35

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

[Command]
name = "Phant"
command = ~D, DB, B, y
time = 15

[Command]
name = "Phant2"
command = ~D, DB, B, z
time = 15

;-| Special Commands |-----------------------------------------------------

[Command]
name = "SuperJumpUp"
command = D, U

[Command]
name = "SuperJumpFwd"
command = D, UF

[Command]
name = "SuperJumpBck"
command = D, UB

[Command]
name = "UFRun"     
command = /UF, y+z

[Command]
name = "UBRun"     
command = /UB, y+z

[Command]
name = "DFRun"     
command = /DF, y+z


[Command]
name = "DBRun"     
command = /DB, y+z

[Command]
name = "FRun"     
command = /F, y+z

[Command]
name = "BRun"     
command = /B, y+z 


[Command]
name = "URun"     
command = /U, y+z

[Command]
name = "DRun"     
command = /D, y+z

[Command]
name = "HoldB"
command = /b

[Command]
name = "HoldC"
command = /c

[Command]
name = "HoldA"
command = /a

[Command]
name = "HoldZ"
command = /z

[Command]
name = "HoldX"
command = /x

[Command]
name = "HoldY"
command = /y

[Command]
name = "HoldZ"
command = /z

[Command]
name = "HoldKICKS"
command = /a+b 

[Command]
name = "Up"
command = U

[Command]
name = "Down"
command = D



;-| Dir + Button |---------------------------------------------------------

[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 = "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_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 = "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 = "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 = "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

[Command]
name = "airlaucher"
command = /DF, z
time = 1


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

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

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

;-| Single Button |---------------------------------------------------------
[Command]
name = "a"
command = a
time = 1

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

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

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

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

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

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

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

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

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

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

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

;===========================================================================
;---------------------------------------------------------------------------
;AI Activation
[State -1]
type = VarSet
triggerall = roundstate = 2
trigger1 = command = "CPU0"
trigger2 = command = "CPU1"
trigger3 = command = "CPU2"
trigger4 = command = "CPU3"
trigger5 = command = "CPU4"
trigger6 = command = "CPU5"
trigger7 = command = "CPU6"
trigger8 = command = "CPU7"
trigger9 = command = "CPU8"
trigger10 = command = "CPU9"
trigger11 = command = "CPU10"
trigger12 = command = "CPU11"
trigger13 = command = "CPU12"
trigger14 = command = "CPU13"
trigger15 = command = "CPU14"
trigger16 = command = "CPU15"
v = 13
value = 1

;---------------------
; Supper Combos

;Power Pummel
[State -1, ]
type = ChangeState
value = 1383
triggerall = stateno != 1383
triggerall = Var(13) = 1
triggerall = StateType = S || StateType = C || StateType = A
triggerall = roundstate != 4
triggerall = movetype != H
triggerall = power >= 1000
trigger1 = StateNo = 640
trigger1 = MoveHit
trigger1 = p2movetype = H
trigger1 = p2bodydist y <= 10
trigger1 = Random <= 700
trigger2 = p2bodydist y >= -30
trigger2 = MoveHit
trigger2 = p2movetype = H
trigger2 = p2bodydist y <= 0
trigger2 = p2bodydist y >= -30
trigger2 = StateNo = 4102

;Power Pummel
[State -1, ]
type = ChangeState
value = 4265
triggerall = stateno != 4265
triggerall = Var(13) = 1
triggerall = StateType = S || StateType = C || StateType = A
triggerall = roundstate != 4
triggerall = movetype != H
triggerall = power >= 1000
trigger1 = StateNo = 640
trigger1 = MoveHit
trigger1 = p2movetype = H
trigger1 = p2bodydist y <= -31
trigger2 = StateNo = 4102
trigger2 = MoveHit
trigger2 = p2movetype = H
trigger2 = p2bodydist y <= -31
ctrl = 0

;Power Pummel
[State -1, ]
type = ChangeState
value = 4319
triggerall = stateno != 4319
triggerall = Var(13) = 1
triggerall = StateType = S || StateType = C
triggerall = roundstate != 4
triggerall = movetype != H
triggerall = power >= 1000
triggerall = frontedgedist >= 90
triggerall = ctrl = 1
trigger1 = random < 300
trigger1 = StateNo = 220
trigger1 = MoveHit
trigger1 = p2movetype = H
trigger1 = Time >= 22
trigger2 = StateNo = 0
trigger2 = p2movetype = H
trigger2 = P2StateNo = 5010
trigger3 = numhelper(4279) = 1
trigger3 = StateNo = 0
trigger3 = p2movetype = H
trigger4 = p2Dist Y <= -150
trigger4 = p2bodyDist X <= 150
trigger4 = stateno = 0
trigger4 = Random <= 50
trigger4 = p2movetype = A
trigger5 = random < 300
trigger5 = StateNo = 1270
trigger5 = MoveHit
trigger5 = p2movetype = H
trigger5 = Time >= 35
ctrl = 0

;Power Pummel
[State -1, ]
type = ChangeState
value = 4269
triggerall = stateno != 4269
triggerall = Var(13) = 1
triggerall = StateType = S || StateType = C || StateType = A
triggerall = roundstate != 4
triggerall = movetype != H
triggerall = power >= 1000
trigger1 = StateNo = 1391
trigger1 = p2StateNo = 1389
trigger1 = p2movetype = H
trigger1 = numhelper(1387) = 1
trigger1 = Time >= 10


;---------------------
; Special Combos

;Power Pummel
[State -1, ]
type = ChangeState
value = 4102
triggerall = stateno != 4102
triggerall = Var(13) = 1
triggerall = StateType = S || StateType = C
triggerall = roundstate != 4
triggerall = movetype != H
trigger1 = StateNo = 220
trigger1 = MoveHit
trigger1 = p2movetype = H
trigger1 = frontedgedist <= 89
trigger2 = random < 800
trigger2 = StateNo = 220
trigger2 = MoveHit
trigger2 = p2movetype = H
trigger3 = StateNo = 640
trigger3 = MoveHit
trigger3 = pos y <= -120
trigger3 = p2movetype = H
ctrl = 0

;Power Pummel
[State -1, ]
type = ChangeState
value = 4107
triggerall = stateno != 4107
triggerall = Var(13) = 1
triggerall = StateType = A
triggerall = roundstate != 4
triggerall = movetype != H
trigger1 = StateNo = 720 || stateno = 690
trigger1 = p2dist x >= 170
trigger1 = Pos y <= -60
trigger1 = numhelper(4289) = 1
trigger2 = StateNo = 50
trigger2 = p2dist x >= 170
trigger2 = Pos y <= -60
trigger2 = P2StateNo != 5050
trigger3 = StateNo = 50
trigger3 = p2dist x >= 170
trigger3 = numhelper(4289) = 1
trigger3 = P2StateNo != 5050
trigger4 = Random <= 500
trigger4 = p2dist x >= 90
trigger4 = pos y <= -120
trigger4 = p2bodydist y >= 0
trigger4 = stateno = 690 ||stateno = 720
 ctrl = 0
 
; Desintagrator Air
[State -1,]
type = ChangeState
value = 690
triggerall = StateType = S
triggerall = Var(13) = 1
triggerall = roundstate != 4
triggerall = stateno != 690
triggerall = movetype != H
trigger1 = Random <= 500
trigger1 = p2dist x >= 90
trigger1 = stateno = 0 ||stateno = 100
trigger1 = P2movetype = A
 ctrl = 0

; Desintagrator Air
[State -1,]
type = ChangeState
value = 2440
triggerall = StateType = A
triggerall = Var(13) = 1
triggerall = roundstate != 4
triggerall = stateno != 2440
triggerall = p2bodydist y >= 0
triggerall = movetype != H
trigger1 = Random <= 500
trigger1 = p2dist x >= 100
trigger1 = pos y <= -100
trigger1 = stateno = 690 ||stateno = 720
trigger1 = p2movetype != H
 ctrl = 0

; Bolt Up
[State -1, ]
type = ChangeState
value = 2445
triggerall = Prevstateno != 2445
triggerall = Var(13) = 1
triggerall = StateType = S || StateType = C
triggerall = roundstate != 4
triggerall = movetype != H
triggerall = numhelper(2446)= 0
trigger1 = p2bodyDist X >= 90
trigger1 = Random <= 500
trigger1 = stateno = 0 ||stateno = 100 || stateno = 11
trigger2 = p2Dist Y >= -50
trigger2 = p2bodyDist X >= 110
trigger2 = stateno = 0 ||stateno = 100 || stateno = 11
trigger2 = Random <= 500
trigger3 = p2Dist X >= 190
trigger3 = Random <= 500
trigger3 = stateno = 0 ||stateno = 100 || stateno = 11

; Bolt Up
[State -1, ]
type = ChangeState
value = 1380
triggerall = Prevstateno != 1380
triggerall = Var(13) = 1
triggerall = StateType = S || StateType = C
triggerall = roundstate != 4
triggerall = movetype != H
trigger1 = StateNo = 420
trigger1 = MoveHit
trigger1 = p2movetype = H

; Bolt Up
[State -1, ]
type = ChangeState
value = 3025
triggerall = Prevstateno != 3025
triggerall = Var(13) = 1
triggerall = StateType = S || StateType = C
triggerall = roundstate != 4
triggerall = movetype != H
trigger1 = StateNo = 220
trigger1 = MoveGuarded
trigger1 = Time = 15
trigger2 = StateNo = 0
trigger2 = numhelper(2446)= 1
;trigger1 = frontedgedist <= 95

; Bolt Up
[State -1, ]
type = ChangeState
value = 4312
triggerall = Prevstateno != 4312
triggerall = Var(13) = 1
triggerall = StateType = S || StateType = C
triggerall = roundstate != 4
triggerall = movetype != H
trigger1 = StateNo = 3025
trigger1 = Time = 10
trigger1 = Random <= 500;trigger1 = frontedgedist >= 155

; Bolt Up
[State -1, ]
type = ChangeState
value = 1391
triggerall = Prevstateno != 1391
triggerall = Var(13) = 1
triggerall = StateType = A
triggerall = roundstate != 4
triggerall = movetype != H
trigger1 = StateNo = 610
trigger1 = MoveHit
trigger1 = p2movetype = H
trigger1 = Random <= 200
trigger1 = pos y <= -80

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

; Normal combos
[State -1, S. Short]
type = ChangeState
value = 100
triggerall = Var(13) = 1
triggerall = statetype = S || StateType = C
triggerall = statetype != A
triggerall = movetype != H
triggerall = P2movetype != H
triggerall = stateno != 100
triggerall = ctrl = 1
triggerall = roundstate = 2
trigger1 = P2BodyDist X >= 40
trigger1 = P2BodyDist X <= 100
trigger1 = stateno = 0 ||stateno = 100
trigger2 = numhelper(2446) = 1
trigger2 = stateno = 0
trigger2 = p2movetype = H

[State -1, S. Short]
type = ChangeState
value = 200
triggerall = var(13) = 1
triggerall = movetype != H
triggerall = StateType = S || StateType = C
triggerall = ctrl = 1
;triggerall = roundstate = 2
triggerall = stateno != 200
trigger1 = P2BodyDist X <= 40
trigger1 = prevstateno != 200 && prevstateno != 210 && prevstateno != 220 && prevstateno != 230 && prevstateno != 240 && prevstateno != 250


[State -1, S. Strong]
type = ChangeState
value = 230
triggerall = var(13) = 1
triggerall = movetype != H
triggerall = StateType = S || StateType = C
;triggerall = roundstate = 2
trigger1 = stateno = 200
trigger1 = MoveContact
;trigger1 = AnimElem = 7


[State -1, S. Fierce]
type = ChangeState
value = 210
triggerall = var(13) = 1
triggerall = movetype != H
triggerall = StateType = S || StateType = C
;triggerall = roundstate = 2
trigger1 = stateno = 230
;trigger1 = AnimElem = 4
trigger1 = MoveContact


[State -1, S. Forward]
type = ChangeState
value = 240
triggerall = var(13) = 1
triggerall = movetype != H
triggerall = StateType = S || StateType = C
;triggerall = roundstate = 2
trigger1 = stateno = 210
trigger1 = MoveContact
;trigger1 = AnimElem = 7

[State -1, S. Roundhousex]
type = ChangeState
value = 250
triggerall = var(13) = 1
triggerall = movetype != H
triggerall = StateType = S || StateType = C
triggerall = random < 200
trigger1 = stateno = 240
trigger1 = movecontact
;trigger1 = AnimElem = 4
;trigger2 = stateno = 240
;trigger2 = MoveContact

[State -1, S. Roundhouse]
type = ChangeState
value = 220
triggerall = var(13) = 1
triggerall = movetype != H
triggerall = StateType = S || StateType = C
trigger1 = random < 100
trigger1 = stateno = 240
trigger1 = MoveContact

[State -1, C. Roundhoused]
type = ChangeState
value = 450
triggerall = var(13) = 1
triggerall = numhelper(5554) = 0
triggerall = StateType = C || StateType = S
triggerall = movetype != H
;triggerall = roundstate = 2
trigger1 = stateno = 220
trigger1 = movecontact
trigger1 = AnimElem = 11
trigger2 = stateno = 220
trigger2 = AnimElem = 11
trigger2 = P2BodyDist X >= 80

[State -1, S. Short]
type = ChangeState
value = 200
triggerall = var(13) = 1
triggerall = movetype != H
triggerall = StateType = S || StateType = C
;triggerall = roundstate = 2
trigger1 = stateno = 240
trigger1 = movecontact
trigger1 = AnimElem = 5

[State -1, C. Jab]
type = ChangeState
value = 400
triggerall = var(13) = 1
triggerall = StateType = C
triggerall = movetype != H
;triggerall = roundstate = 2
trigger1 = var(13) = 1
trigger1 = StateNo = 410
trigger1 = Movehit

[State -1, C. Short]
type = ChangeState
value = 430
triggerall = var(13) = 1
triggerall = StateType = C
triggerall = movetype != H
;triggerall = roundstate = 2
trigger1 = StateNo = 200
trigger1 = AnimElem = 7
trigger1 = Movecontact
trigger2 = StateNo = 0 || StateNo = 11 || StateNo = 100
trigger2 = P2stateno = 5010 || P2stateno = 5011
trigger2 = p2dist x <= 50
trigger2 = ctrl = 1
;trigger1 = Random <= 300

[State -1, C. Strong]
type = ChangeState
value = 410
triggerall = var(13) = 1
triggerall = StateType = C
triggerall = movetype != H
;triggerall = roundstate = 2
trigger1 = StateNo = 400
trigger1 = AnimElem = 3
trigger1 = Movehit
;trigger1 = Random <= 700
trigger2 = StateNo = 400
trigger2 = AnimElem = 3
trigger2 = Movehit
trigger2 = var(1) = 1

[State -1, C. Fierce]
type = null;ChangeState
value = 420
triggerall = var(13) = 1
triggerall = StateType = C || StateType = S
triggerall = movetype != H
;triggerall = roundstate = 2
trigger1 = StateNo = 400
trigger1 = AnimElem = 3
trigger1 = Movehit
trigger2 = StateNo = 200
trigger2 = AnimElem = 3
trigger2 = Movehit
trigger3 = StateNo = 230
trigger3 = AnimElem = 5
trigger3 = Movehit
trigger4 = StateNo = 410
trigger4 = AnimElem = 4
trigger4 = Movehit
trigger5 = StateNo = 210
trigger5 = AnimElem = 5
trigger5 = Movehit
trigger6 = p2stateno = 2454
trigger6 = StateNo != 420
trigger6 = p2dist x <= 30
trigger6 = ctrl = 1
trigger7 = p2dist y <= -30
trigger7 = p2dist x <= 10
trigger7 = StateNo != 420
trigger8 = p2dist x <= 10
trigger8 = StateNo != 420

; Superjump Up
[State -1, Superjump Up]
type = ChangeState
value = 690
triggerall = StateType = C || StateType = S
triggerall = var(13) = 1
triggerall = numhelper(455) = 0
triggerall = movetype != H
;triggerall = roundstate = 2
trigger1 = stateno = 250
trigger1 = p2movetype = H
trigger1 = Time = 13
trigger2 = p2bodydist x >= 170
trigger2 = P2movetype = H
trigger2 = numhelper(4289) = 1
trigger2 = stateno = 0 || stateno = 100
trigger2 = ctrl = 1

[State -1, C. Forward]
type = ChangeState
value = 440
triggerall = var(13) = 1
triggerall = StateType = C
triggerall = movetype != H
;triggerall = roundstate = 2
trigger1 = StateNo = 430
trigger1 = AnimElem = 3
trigger1 = Movehit
;trigger1 = Random <= 850
trigger2 = StateNo = 410
trigger2 = AnimElem = 4
trigger2 = Movehit
;trigger2 = Random <= 900
trigger3 = StateNo = 400
trigger3 = AnimElem = 3
trigger3 = Movehit
;trigger3 = Random <= 800

;Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = var(13) = 1
triggerall = statetype = A
triggerall = StateNo != 600
triggerall = movetype != H
;triggerall = roundstate = 2
triggerall = pos y <= -15
triggerall = Movetype != H
triggerall = Movetype != A
trigger1 = p2dist x <= 50
trigger1 = pos y >= -75
trigger1 = ctrl = 1
trigger2 = stateno = 690
trigger2 = p2dist x <= 50
trigger3 = p2dist x <= 50
trigger3 = stateno = 720
trigger3 = p2bodydist y <= 0
trigger3 = p2bodydist y >= -60
trigger4 = p2dist x <= 70
trigger4 = p2bodydist y <= 0
trigger4 = p2bodydist y >= -60
trigger4 = ctrl = 1
;trigger4 = p2dist y >= 50
;trigger4 = p2dist y <= -10

;Jump Medium Punch
[State -1, Jump Medium Punch]
type = ChangeState
value = 610
triggerall = var(13) = 1
triggerall = statetype = A
triggerall = movetype != H
;triggerall = roundstate = 2
triggerall = pos y <= -15
trigger1 = stateno = 630
trigger1 = MoveContact
trigger2 = stateno = 660
trigger2 = MoveContact

;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = var(13) = 1
triggerall = statetype = A
triggerall = movetype != H
;triggerall = roundstate = 2
triggerall = pos y <= -15
trigger1 = stateno = 600
trigger1 = MoveHit

;Jump Medium Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = var(13) = 1
triggerall = statetype = A
triggerall = movetype != H
;triggerall = roundstate = 2
triggerall = pos y <= -70
trigger1 = stateno = 610
trigger1 = MoveContact

;Jump Hard Punch
[State -1, Jump Hard Punch]
type = ChangeState
value = 620
triggerall = var(13) = 1
triggerall = statetype = A
triggerall = Frontedgedist <= 85
triggerall = pos y <= -40
triggerall = movetype != H
triggerall = stateno != 620
trigger1 = stateno = 640
trigger1 = MoveContact
trigger1 = p2bodydist y <= 30
trigger1 = p2bodydist y >= -50

;Jump Hard Kick
[State -1, Jump Hard Kick]
type = ChangeState
value = 650
triggerall = var(13) = 1
triggerall = statetype = A
triggerall = movetype != H
;triggerall = roundstate = 2
triggerall = pos y <= -15
triggerall = stateno != 650
trigger1 = stateno = 600
trigger1 = MoveContact
trigger2 = stateno = 610
trigger2 = MoveContact
trigger3 = stateno = 620
trigger3 = MoveContact
trigger4 = stateno = 630
trigger4 = MoveContact
trigger5 = stateno = 640
trigger5 = movecontact
trigger5 = p2bodydist y >= 31
trigger5 = p2bodydist y <= 50
trigger5 = ctrl = 1
trigger6 = stateno = 660
trigger6 = MoveContact

;Jump Hard Kick
[State -1, Jump Hard Kick]
type = ChangeState
value = 660
triggerall = var(13) = 1
triggerall = statetype = A
triggerall = movetype != H
;triggerall = roundstate = 2
triggerall = pos y <= -70
triggerall = stateno != 660
trigger1 = p2bodydist y >= 50
trigger1 = p2dist x <= 60
trigger1 = stateno = 50
trigger1 = ctrl = 1
trigger2 = p2bodydist y >= 50
trigger2 = p2dist x <= 60
trigger2 = stateno = 720
trigger3 = p2bodydist y >= 50
trigger3 = p2dist x <= 60
trigger3 = stateno = 4107




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


;---------------------------------------
;AI Push Block (Thanks BB Hood!)
[State -1]
type = ChangeState
value = 860
triggerall = var(13) = 1
triggerall = random < 50
trigger1 = stateno = [150,151]

[State -1]
type = ChangeState
value = 870
triggerall = var(13) = 1
triggerall = random < 50
trigger1 = stateno = [152,153]

[State -1]
type = ChangeState
value = 880
triggerall = var(13) = 1
triggerall = random < 50
trigger1 = stateno = 154
trigger2 = stateno = 155
trigger2 = Time <= 10

;===========================================================================
; Put specials and supers here

; Assist 
[State -1, ]
type = ChangeState
value = 4305;4251
triggerall = Command = "UngaBlam!"
triggerall = power >= 1000
triggerall = statetype = S || Statetype = C  
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveContact
trigger4 = stateno = 220
trigger4 = MoveContact
trigger5 = stateno = 230
trigger5 = MoveContact
trigger6 = stateno = 240
trigger6 = MoveContact
trigger7 = stateno = 250
trigger7 = MoveContact
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger13 = MoveContact
trigger14 = stateno = 4036
trigger15 = stateno = 1380
trigger16 = stateno = 1230
trigger17 = stateno = 2445
trigger18 = stateno = 3029
trigger19 = stateno = 3031
trigger20 = stateno = 1270
;trigger20 = stateno = 4065

;------------------------------------------
;
[State -1, ]
type = ChangeState
value = 4319
triggerall = command = "Bucky"
triggerall = power >= 1000
triggerall = statetype = S || statetype = C
trigger1 = ctrl
trigger2 = stateno = 240
trigger2 = MoveContact
trigger3 = stateno = 450
trigger3 = MoveContact
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 200
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact
trigger10 = stateno = 445
trigger10 = MoveContact
trigger11 = stateno = 3024
trigger11 = MoveContact
trigger12 = stateno = 220
trigger12 = MoveContact
trigger13 = stateno = 420
trigger13 = MoveContact
trigger14 = stateno = 250
trigger14 = MoveContact
trigger15 = stateno = 410
trigger15 = MoveContact
trigger16 = stateno = 210
trigger16 = MoveContact
trigger17 = stateno = 1380
trigger18 = stateno = 1230
trigger19 = stateno = 2445
trigger20 = stateno = 3029
trigger21 = stateno = 3031
trigger22 = stateno = 1270
trigger23 = stateno = 4036

;------------------------------------------
; 
[State -1, ]
type = ChangeState
value = 4241
triggerall = command = "Spinx"
triggerall = power >= 1000
triggerall = statetype = A || statetype = S || statetype = C
trigger1 = ctrl
trigger2 = stateno = 240
trigger2 = MoveContact
trigger3 = stateno = 450
trigger3 = MoveContact
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 200
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact
trigger10 = stateno = 445
trigger10 = MoveContact
trigger11 = stateno = 3024
trigger11 = !MoveContact
trigger12 = stateno = 220
trigger12 = MoveContact
trigger13 = stateno = 420
trigger13 = MoveContact
trigger14 = stateno = 250
trigger14 = MoveContact
trigger15 = stateno = 410
trigger15 = MoveContact
trigger16 = stateno = 210
trigger16 = MoveContact
trigger17 = Stateno = 600
trigger17 = MoveContact
trigger18 = Stateno = 610
trigger18 = MoveContact
trigger19 = Stateno = 620
trigger19 = MoveContact
trigger20 = Stateno = 630
trigger20 = MoveContact
trigger21 = stateno = 640
trigger21 = MoveContact
trigger22 = stateno = 650
trigger22 = MoveContact
trigger23 = stateno = 2440
trigger24 = stateno = 2445
trigger25 = stateno = 1310
trigger26 = stateno = 1331
trigger27 = stateno = 1330
trigger28 = stateno = 1380
trigger29 = stateno = 3031
trigger30 = stateno = 4036
trigger31 = stateno = 1325;11
trigger32 = stateno = 1270
trigger33 = stateno = 4103
trigger34 = stateno = 4104
trigger35 = stateno = 4105
trigger36 = stateno = 4106
trigger37 = stateno = 4107
trigger38 = stateno = 4108
trigger39 = stateno = 4109
trigger40 = stateno = 4110
trigger41 = stateno = 4065
trigger42 = stateno = 4102
trigger43 = stateno = 1390
trigger44 = stateno = 1391

[State -1, ]
type = ChangeState
value = 4265
triggerall = Command = "CaptainHammer"
triggerall = power >= 1000
triggerall = statetype = S || Statetype = C || Statetype = A
trigger1 = ctrl
trigger2 = stateno = 240
trigger2 = MoveContact
trigger3 = stateno = 450
trigger3 = MoveContact
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 200
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact
trigger10 = stateno = 445
trigger10 = MoveContact
trigger11 = stateno = 3024
trigger11 = !MoveContact
trigger12 = stateno = 220
trigger12 = MoveContact
trigger13 = stateno = 420
trigger13 = MoveContact
trigger14 = stateno = 250
trigger14 = MoveContact
trigger15 = stateno = 410
trigger15 = MoveContact
trigger16 = stateno = 210
trigger16 = MoveContact
trigger17 = Stateno = 600
trigger17 = MoveContact
trigger18 = Stateno = 610
trigger18 = MoveContact
trigger19 = Stateno = 620
trigger19 = MoveContact
trigger20 = Stateno = 630
trigger20 = MoveContact
trigger21 = stateno = 640
trigger21 = MoveContact
trigger22 = stateno = 650
trigger22 = MoveContact
trigger23 = stateno = 2440
trigger24 = stateno = 2445
trigger25 = stateno = 1310
trigger26 = stateno = 1331
trigger27 = stateno = 1330
trigger28 = stateno = 1380
trigger29 = stateno = 3031
trigger30 = stateno = 4036
trigger31 = stateno = 1325;11
trigger32 = stateno = 1270
trigger33 = stateno = 4103
trigger34 = stateno = 4104
trigger35 = stateno = 4105
trigger36 = stateno = 4106
trigger37 = stateno = 4107
trigger38 = stateno = 4108
trigger39 = stateno = 4109
trigger40 = stateno = 4110
trigger41 = stateno = 4065
trigger42 = stateno = 4102
trigger43 = stateno = 1390
trigger44 = stateno = 1391

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

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

[State -1,]
type = ChangeState
value = 4098
triggerall = command = "CaveyFly"
triggerall = NumHelper(4097) = 1
triggerall = statetype = A || statetype = S || statetype = C
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveContact
trigger4 = stateno = 220
;trigger4 = MoveContact
trigger5 = stateno = 230
trigger5 = MoveContact
trigger6 = stateno = 240
trigger6 = MoveContact
trigger7 = stateno = 250
trigger7 = MoveContact
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
;trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = !MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger13 = MoveContact
trigger14 = Stateno = 600
trigger14 = MoveContact
trigger15 = Stateno = 610
trigger15 = MoveContact
trigger16 = Stateno = 620
trigger17 = Stateno = 630
trigger17 = MoveContact
trigger18 = stateno = 640
trigger18 = MoveContact
trigger19 = stateno = 650
trigger19 = MoveContact
trigger20 = stateno = 660

[State -1, ]
type = ChangeState
value = 4096
triggerall = command = "CaveyFly"
triggerall = NumHelper(4097) = 0
triggerall = statetype = A || statetype = S || statetype = C
trigger1 = ctrl
trigger2 = stateno = 240
trigger2 = MoveContact
trigger3 = stateno = 450
trigger3 = MoveContact
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 200
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact
trigger10 = stateno = 445
trigger10 = MoveContact
trigger11 = stateno = 3024
trigger11 = !MoveContact
trigger12 = stateno = 220
trigger12 = MoveContact
trigger13 = stateno = 420
trigger13 = MoveContact
trigger14 = stateno = 250
trigger14 = MoveContact
trigger15 = stateno = 410
trigger15 = MoveContact
trigger16 = stateno = 210
trigger16 = MoveContact
trigger17 = Stateno = 600
trigger17 = MoveContact
trigger18 = Stateno = 610
trigger18 = MoveContact
trigger19 = Stateno = 620
trigger19 = MoveContact
trigger20 = Stateno = 630
trigger20 = MoveContact
trigger21 = stateno = 640
trigger21 = MoveContact
trigger22 = stateno = 650
trigger22 = MoveContact
trigger23 = stateno = 660

; Assist 
[State -1, ]
type = ChangeState
value = 4036
triggerall = Command = "Assist2"
trigger1 = statetype = S || Statetype = C || Statetype = A
trigger1 = numhelper(4094) = 0 
trigger1 = ctrl
trigger2 = stateno = 240
trigger2 = MoveContact
trigger3 = stateno = 450
trigger3 = MoveContact
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 200
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact
trigger10 = stateno = 445
trigger10 = MoveContact
trigger11 = stateno = 3024
trigger11 = !MoveContact
trigger12 = stateno = 220
trigger12 = MoveContact
trigger13 = stateno = 420
trigger13 = MoveContact
trigger14 = stateno = 250
trigger14 = MoveContact
trigger15 = stateno = 410
trigger15 = MoveContact
trigger16 = stateno = 210
trigger16 = MoveContact
trigger17 = Stateno = 600
trigger17 = MoveContact
trigger18 = Stateno = 610
trigger18 = MoveContact
trigger19 = Stateno = 620
trigger19 = MoveContact
trigger20 = Stateno = 630
trigger20 = MoveContact
trigger21 = stateno = 640
trigger21 = MoveContact
trigger22 = stateno = 650
trigger22 = MoveContact

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

; "SuperBuble!"
[State -1, ]
type = ChangeState
value = 1383
triggerall = numhelper(4094) = 0
triggerall = StateType = S || StateType = C || StateType = A
triggerall = command = "SuperBuble!"
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = StateNo = 200
trigger2 = Movecontact = 1 
trigger3 = StateNo = 210
trigger3 = Movecontact = 1
trigger4 = StateNo = 220
trigger4 = Movecontact = 1
trigger5 = StateNo = 230
trigger5 = Movecontact = 1
trigger6 = StateNo = 240
trigger6 = Movecontact = 1
trigger7 = StateNo = 250
trigger7 = Movecontact = 1
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger14 = stateno = 2440
trigger15 = stateno = 2445
trigger16 = stateno = 4036
trigger17 = stateno = 1331
trigger18 = stateno = 1330
trigger19 = stateno = 1380
trigger20 = stateno = 3031
trigger21 = stateno = 4065
trigger22 = stateno = 1270
trigger23= stateno = 4069
trigger24 = stateno = 3025
trigger25 = stateno = 4073
trigger26 = stateno = 4057
trigger27 = stateno = 4079
trigger28 = stateno = 4055
trigger29 = stateno = 4165
trigger30 = Stateno = 600
trigger30 = MoveContact
trigger31 = Stateno = 610
trigger31 = MoveContact
trigger32 = Stateno = 620
trigger32 = MoveContact
trigger33 = Stateno = 630
trigger33 = MoveContact
trigger34 = stateno = 640
trigger34 = MoveContact
trigger35 = stateno = 4102
trigger36 = stateno = 1323
trigger37 = stateno = 660
trigger38 = stateno = 1310
trigger39 = stateno = 1390
trigger40 = stateno = 1391

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

[State -1, ]
type = ChangeState
value = 4269
triggerall = numhelper(4094) = 0
triggerall = StateType = S || StateType = C || StateType = A
triggerall = command = "Avalanche"
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = 240
trigger2 = MoveContact
trigger3 = stateno = 450
trigger3 = MoveContact
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 200
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact
trigger10 = stateno = 445
trigger10 = MoveContact
trigger11 = stateno = 3024
trigger11 = !MoveContact
trigger12 = stateno = 220
trigger12 = MoveContact
trigger13 = stateno = 420
trigger13 = MoveContact
trigger14 = stateno = 250
trigger14 = MoveContact
trigger15 = stateno = 410
trigger15 = MoveContact
trigger16 = stateno = 210
trigger16 = MoveContact
trigger17 = Stateno = 600
trigger17 = MoveContact
trigger18 = Stateno = 610
trigger18 = MoveContact
trigger19 = Stateno = 620
trigger19 = MoveContact
trigger20 = Stateno = 630
trigger20 = MoveContact
trigger21 = stateno = 640
trigger21 = MoveContact
trigger22 = stateno = 650
trigger22 = MoveContact
trigger23 = stateno = 2440
trigger24 = stateno = 2445
trigger25 = stateno = 1310
trigger26 = stateno = 1331
trigger27 = stateno = 1330
trigger28 = stateno = 1380
trigger29 = stateno = 3031
trigger30 = stateno = 4036
trigger31 = stateno = 1325;11
trigger32 = stateno = 1270
trigger33 = stateno = 4103
trigger34 = stateno = 4104
trigger35 = stateno = 4105
trigger36 = stateno = 4106
trigger37 = stateno = 4107
trigger38 = stateno = 4108
trigger39 = stateno = 4109
trigger40 = stateno = 4110
trigger41 = stateno = 4065
trigger42 = stateno = 4102
trigger43 = stateno = 1390
trigger44 = stateno = 1391

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

[State -1,AirRunUF]
type = ChangeState
value = 4103
triggerall = command = "UFRun"
;triggerall = statetype = A
triggerall = var(11) = 0
trigger1 = ctrl
trigger2 = Stateno = 600
trigger2 = MoveContact
trigger3 = Stateno = 610
trigger3 = MoveContact
trigger4 = Stateno = 620
trigger4 = MoveContact
trigger5 = Stateno = 630
trigger5 = MoveContact
trigger6 = stateno = 640
trigger6 = MoveContact

;------------------------------------------
[State -1,AirRunUF]
type = ChangeState
value = 4104
triggerall = command = "DFRun"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = Stateno = 600
trigger2 = MoveContact
trigger3 = Stateno = 610
trigger3 = MoveContact
trigger4 = Stateno = 620
trigger4 = MoveContact
trigger5 = Stateno = 630
trigger5 = MoveContact
trigger6 = stateno = 640
trigger6 = MoveContact
trigger7 = stateno = 650
trigger7 = MoveContact


;------------------------------------------
[State -1,AirRunUF]
type = ChangeState
value = 4105
triggerall = command = "DBRun"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = Stateno = 600
trigger2 = MoveContact
trigger3 = Stateno = 610
trigger3 = MoveContact
trigger4 = Stateno = 620
trigger4 = MoveContact
trigger5 = Stateno = 630
trigger5 = MoveContact
trigger6 = stateno = 640
trigger6 = MoveContact
trigger7 = stateno = 650
trigger7 = MoveContact


;------------------------------------------
[State -1,AirRunUF]
type = ChangeState
value = 4106
triggerall = command = "UBRun"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = Stateno = 600
trigger2 = MoveContact
trigger3 = Stateno = 610
trigger3 = MoveContact
trigger4 = Stateno = 620
trigger4 = MoveContact
trigger5 = Stateno = 630
trigger5 = MoveContact
trigger6 = stateno = 640
trigger6 = MoveContact


;------------------------------------------
[State -1,AirRunUF]
type = ChangeState
value = 4107
triggerall = command = "FRun"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = Stateno = 600
trigger2 = MoveContact
trigger3 = Stateno = 610
trigger3 = MoveContact
trigger4 = Stateno = 620
trigger4 = MoveContact
trigger5 = Stateno = 630
trigger5 = MoveContact
trigger6 = stateno = 640
trigger6 = MoveContact

;------------------------------------------
[State -1,AirRunUF]
type = ChangeState
value = 4108
triggerall = command = "BRun"
triggerall = Prevstateno != 2451
triggerall = statetype = A
trigger1 = ctrl
trigger2 = Stateno = 600
trigger2 = MoveContact
trigger3 = Stateno = 610
trigger3 = MoveContact
trigger4 = Stateno = 620
trigger4 = MoveContact
trigger5 = Stateno = 630
trigger5 = MoveContact
trigger6 = stateno = 640
trigger6 = MoveContact

;------------------------------------------
[State -1,AirRunUF]
type = ChangeState
value = 4109
triggerall = command = "URun"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = Stateno = 600
trigger2 = MoveContact
trigger3 = Stateno = 610
trigger3 = MoveContact
trigger4 = Stateno = 620
trigger4 = MoveContact
trigger5 = Stateno = 630
trigger5 = MoveContact
trigger6 = stateno = 640
trigger6 = MoveContact

------------------------------------------------

[State -1,AirRunUF]
type = ChangeState
value = 4110
triggerall = command = "DRun"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = Stateno = 600
trigger2 = MoveContact
trigger3 = Stateno = 610
trigger3 = MoveContact
trigger4 = Stateno = 620
trigger4 = MoveContact
trigger5 = Stateno = 630
trigger5 = MoveContact
trigger6 = stateno = 640
trigger6 = MoveContact

;------------------------------------------
;
[State -1, ]
type = ChangeState
value = 4291
triggerall = command = "Chabacker2"
triggerall = numhelper(4289) = 0
triggerall = statetype = A || statetype = S || statetype = C
trigger1 = ctrl
trigger2 = stateno = 240
trigger2 = MoveContact
trigger3 = stateno = 450
trigger3 = MoveContact
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 200
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact
trigger10 = stateno = 445
trigger10 = MoveContact
trigger11 = stateno = 3024
trigger11 = !MoveContact
trigger12 = stateno = 220
trigger12 = MoveContact
trigger13 = stateno = 420
trigger13 = MoveContact
trigger14 = stateno = 250
trigger14 = MoveContact
trigger15 = stateno = 410
trigger15 = MoveContact
trigger16 = stateno = 210
trigger16 = MoveContact
trigger17 = Stateno = 600
trigger17 = MoveContact
trigger18 = Stateno = 610
trigger18 = MoveContact
trigger19 = Stateno = 620
trigger19 = MoveContact
trigger20 = Stateno = 630
trigger20 = MoveContact
trigger21 = stateno = 640
trigger21 = MoveContact
trigger22 = stateno = 650


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

[State -1, ]
type = ChangeState
value = 3025
triggerall = Command = "Assist"
triggerall = NumHelper(4094) = 0
triggerall = numhelper(3024) = 0
triggerall = numhelper(3029) = 0
triggerall = numhelper(4056) = 0
triggerall = numhelper(4315) = 0
trigger1 = statetype = S || Statetype = C || Statetype = A
trigger1 = ctrl
trigger2 = stateno = 240
trigger2 = MoveContact
trigger3 = stateno = 450
trigger3 = MoveContact
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 200
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact
trigger10 = stateno = 445
trigger10 = MoveContact
trigger11 = stateno = 3024
trigger11 = MoveContact
trigger12 = stateno = 220
trigger12 = MoveContact
trigger13 = stateno = 420
trigger13 = MoveContact
trigger14 = stateno = 250
trigger14 = MoveContact
trigger15 = stateno = 661
trigger15 = MoveContact
trigger16 = stateno = 210
trigger16 = MoveContact
trigger15 = Stateno = 600
trigger15 = MoveContact
trigger16 = Stateno = 610
trigger16 = MoveContact
trigger17 = Stateno = 620
trigger17 = MoveContact
trigger18 = Stateno = 630
trigger18 = MoveContact
trigger19 = stateno = 640
trigger19 = MoveContact
trigger20 = stateno = 650
trigger20 = MoveContact

[State -1, ]
type = ChangeState
value = 1380
triggerall = command = "Gum"
triggerall = NumHelper(100) = 0
triggerall = NumHelper(4094) = 1
triggerall = StateType = S || StateType = C || StateType = A
trigger1 = ctrl
trigger2 = StateNo = 200
trigger2 = Movecontact = 1 
trigger3 = StateNo = 210
trigger3 = Movecontact = 1
trigger4 = StateNo = 220
trigger4 = Movecontact = 1
trigger5 = StateNo = 230
trigger5 = Movecontact = 1
trigger6 = StateNo = 240
trigger6 = Movecontact = 1
trigger7 = StateNo = 250
trigger7 = Movecontact = 1
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger14 = stateno = 661
trigger14 = MoveContact
trigger15 = Stateno = 600
trigger15 = MoveContact
trigger16 = Stateno = 610
trigger16 = MoveContact
trigger17 = Stateno = 620
trigger17 = MoveContact
trigger18 = Stateno = 630
trigger18 = MoveContact
trigger19 = stateno = 640
trigger19 = MoveContact
trigger20 = stateno = 650
trigger20 = MoveContact

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


;---------------------------------------------------------------------------
; 
[State -1, ]
type = ChangeState
value = 3029
triggerall = NumHelper(4094) = 0
triggerall = Command = "Assist3"
trigger1 = statetype = S || Statetype = C
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveContact
trigger4 = stateno = 220
trigger4 = MoveContact
trigger5 = stateno = 230
trigger5 = MoveContact
trigger6 = stateno = 240
trigger6 = MoveContact
trigger7 = stateno = 250
trigger7 = MoveContact
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 445
trigger10 = MoveContact
trigger11 = stateno = 3024
trigger11 = !MoveContact
trigger12 = stateno = 420
trigger12 = MoveContact
trigger13 = stateno = 430
trigger13 = MoveContact
trigger14 = stateno = 440
trigger14 = MoveContact

[State 8017]
type = null;Helper
triggerall = numhelper(3033) = 0
trigger1 = Gametime%0 = 0
trigger2 = command = "Donald"
id = 3033
helpertype = normal
postype = p2
pos = 370,-100
stateno = 4133
keyctrl = 1
ownpal = 1
;supermovetime = 9999

[State 8017]
type = null;Helper
triggerall = numhelper(5033) = 0
trigger1 = RoundState = 1;Gametime%0 = 0
;trigger2 = command = "Donald"
id = 5033
helpertype = normal
postype = p2
pos = 370,-100
stateno = 4139
keyctrl = 1
ownpal = 1
;supermovetime = 9999

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

; "Fart"
[State -1, ]
type = ChangeState
value = 4132 
triggerall = command = "Donald" 
;triggerall = numhelper(4094) = 1
;triggerall = numhelper(3033) = 0
triggerall = numhelper(3024) = 0
triggerall = numhelper(3029) = 0
triggerall = numhelper(4056) = 0
triggerall = StateType = S || StateType = C || StateType = A
trigger1 = ctrl
;trigger2 = StateNo = 200
;trigger2 = Movecontact = 1
;trigger3 = StateNo = 210
;trigger3 = Movecontact = 1
;trigger4 = StateNo = 220
;trigger4 = Movecontact = 1
;trigger5 = StateNo = 230
;trigger5 = Movecontact = 1
;trigger6 = StateNo = 240
;trigger6 = Movecontact = 1
;trigger7 = StateNo = 250
;trigger7 = Movecontact = 1
;trigger8 = stateno = 400
;trigger8 = MoveContact
;trigger9 = stateno = 410
;trigger9 = MoveContact
;trigger10 = stateno = 420
;trigger10 = MoveContact
;trigger11 = stateno = 430
;trigger11 = MoveContact
;trigger12 = stateno = 440
;trigger12 = MoveContact
;trigger13 = stateno = 450
;trigger13 = MoveContact

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

; "Fart"
[State -1, ]
type = null;ChangeState
value = 4301 
triggerall = command = "AwaySon!" 
;triggerall = numhelper(4094) = 1
triggerall = numhelper(5003) = 0
triggerall = numhelper(3024) = 0
triggerall = numhelper(3029) = 0
triggerall = numhelper(4056) = 0
triggerall = StateType = S || StateType = C || StateType = A
trigger1 = ctrl
trigger2 = StateNo = 200
trigger2 = Movecontact = 1 
trigger3 = StateNo = 210
trigger3 = Movecontact = 1
trigger4 = StateNo = 220
trigger4 = Movecontact = 1
trigger5 = StateNo = 230
trigger5 = Movecontact = 1
trigger6 = StateNo = 240
trigger6 = Movecontact = 1
trigger7 = StateNo = 250
trigger7 = Movecontact = 1
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger13 = MoveContact

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

; "Fart"
[State -1, ]
type = ChangeState
value = 4302 
triggerall = command = "AwaySon!" 
;triggerall = numhelper(4094) = 1
triggerall = numhelper(5003) = 1
triggerall = numhelper(3024) = 0
triggerall = numhelper(3029) = 0
triggerall = numhelper(4056) = 0
triggerall = StateType = S || StateType = C || StateType = A
trigger1 = ctrl
trigger2 = StateNo = 200
trigger2 = Movecontact = 1 
trigger3 = StateNo = 210
trigger3 = Movecontact = 1
trigger4 = StateNo = 220
trigger4 = Movecontact = 1
trigger5 = StateNo = 230
trigger5 = Movecontact = 1
trigger6 = StateNo = 240
trigger6 = Movecontact = 1
trigger7 = StateNo = 250
trigger7 = Movecontact = 1
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger13 = MoveContact

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

; "Fart"
[State -1, ]
type = ChangeState
value = 4278
triggerall = command = "Phant"
;triggerall = numhelper(4094) = 1
triggerall = numhelper(3054) = 0
triggerall = numhelper(3024) = 0
triggerall = numhelper(3029) = 0
triggerall = numhelper(4056) = 0
triggerall = StateType = S || StateType = C || StateType = A
trigger1 = ctrl
trigger2 = StateNo = 200
trigger2 = Movecontact = 1 
trigger3 = StateNo = 210
trigger3 = Movecontact = 1
trigger4 = StateNo = 220
trigger4 = Movecontact = 1
trigger5 = StateNo = 230
trigger5 = Movecontact = 1
trigger6 = StateNo = 240
trigger6 = Movecontact = 1
trigger7 = StateNo = 250
trigger7 = Movecontact = 1
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger14 = stateno = 661
trigger14 = MoveContact
trigger15 = Stateno = 600
trigger15 = MoveContact
trigger16 = Stateno = 610
trigger16 = MoveContact
trigger17 = Stateno = 620
trigger17 = MoveContact
trigger18 = Stateno = 630
trigger18 = MoveContact
trigger19 = stateno = 640
trigger19 = MoveContact
trigger20 = stateno = 650
trigger20 = MoveContact

; "Fart"
[State -1, ]
type = ChangeState
value = 4282
triggerall = command = "Phant2"
;triggerall = numhelper(4094) = 1
;triggerall = numhelper(3033) = 0
triggerall = numhelper(3054) = 0
triggerall = numhelper(3029) = 0
triggerall = numhelper(4056) = 0
triggerall = StateType = S || StateType = C || StateType = A
trigger1 = ctrl
trigger2 = StateNo = 200
trigger2 = Movecontact = 1 
trigger3 = StateNo = 210
trigger3 = Movecontact = 1
trigger4 = StateNo = 220
trigger4 = Movecontact = 1
trigger5 = StateNo = 230
trigger5 = Movecontact = 1
trigger6 = StateNo = 240
trigger6 = Movecontact = 1
trigger7 = StateNo = 250
trigger7 = Movecontact = 1
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger14 = stateno = 661
trigger14 = MoveContact
trigger15 = Stateno = 600
trigger15 = MoveContact
trigger16 = Stateno = 610
trigger16 = MoveContact
trigger17 = Stateno = 620
trigger17 = MoveContact
trigger18 = Stateno = 630
trigger18 = MoveContact
trigger19 = stateno = 640
trigger19 = MoveContact
trigger20 = stateno = 650
trigger20 = MoveContact

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

; Assist 
[State -1, ]
type = ChangeState
value = 2445
triggerall = numhelper(2446) = 0
triggerall = Command = "Phatsolo"
trigger1 = statetype = S || Statetype = C
trigger1 = ctrl
trigger2 = stateno = 240
trigger2 = MoveContact
trigger3 = stateno = 450
trigger3 = MoveContact
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 200
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact
trigger10 = stateno = 445
trigger10 = MoveContact
trigger11 = stateno = 3024
trigger11 = !MoveContact
trigger12 = stateno = 220
trigger12 = MoveContact
trigger13 = stateno = 420
trigger13 = MoveContact
trigger14 = stateno = 250
trigger14 = MoveContact
trigger15 = stateno = 210
trigger15 = MoveContact
trigger16 = stateno = 4069
trigger17 = stateno = 3025
trigger18 = stateno = 4073
trigger19 = stateno = 4057
trigger20 = stateno = 4079
trigger21 = stateno = 4055
trigger22 = stateno = 4165

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

; Assist 
[State -1, ]
type = ChangeState
value = 2440
triggerall = numhelper(4094) = 0
triggerall = numhelper(2446) = 0
triggerall = Command = "Phatsolo"
trigger1 = statetype = A 
trigger1 = ctrl
trigger2 = StateNo = 600
trigger2 = Movecontact = 1 
trigger3 = StateNo = 610
trigger3 = Movecontact = 1
trigger4 = StateNo = 620
trigger4 = Movecontact = 1
trigger5 = StateNo = 630
trigger5 = Movecontact = 1
trigger6 = StateNo = 640
trigger6 = Movecontact = 1
trigger7 = StateNo = 650
trigger7 = Movecontact = 1

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

; Dragon Punch (light)
[State -1, Shoryuken Light]
type = ChangeState
value = 1310
triggerall = command = "dragon1"
triggerall = numhelper(4094) = 0
triggerall = StateType = S || StateType = C || StateType = A
trigger1 = ctrl
trigger2 = stateno = 240
trigger2 = MoveContact
trigger3 = stateno = 450
trigger3 = MoveContact
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 200
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact
trigger10 = stateno = 445
trigger10 = MoveContact
trigger11 = stateno = 3024
trigger11 = !MoveContact
trigger12 = stateno = 220
trigger12 = MoveContact
trigger13 = stateno = 420
trigger13 = MoveContact
trigger14 = stateno = 250
trigger14 = MoveContact
trigger15 = stateno = 410
trigger15 = MoveContact
trigger16 = stateno = 210
trigger16 = MoveContact
trigger17 = Stateno = 600
trigger17 = MoveContact
trigger18 = Stateno = 610
trigger18 = MoveContact
trigger19 = Stateno = 620
trigger19 = MoveContact
trigger20 = Stateno = 630
trigger20 = MoveContact
trigger21 = stateno = 640
trigger21 = MoveContact
trigger22 = stateno = 650
trigger22 = MoveContact
trigger23 = stateno = 5120 
trigger24 = stateno = 4069
trigger25 = stateno = 3025
trigger26 = stateno = 4073
trigger27 = stateno = 4057
trigger28 = stateno = 4079
trigger29 = stateno = 4055
trigger30 = stateno = 4165

;----------------------------------------------------------------------------
; Dragon Punch (medium)
[State -1, Shoryuken Medium]
type = ChangeState
value = 4102
triggerall = command = "boom"
triggerall = numhelper(4094) = 0
triggerall = StateType = S || StateType = C || StateType = A 
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveContact
trigger4 = stateno = 220
trigger4 = MoveContact
trigger5 = stateno = 230
trigger5 = MoveContact
trigger6 = stateno = 240
trigger6 = MoveContact
trigger7 = stateno = 250
trigger7 = MoveContact
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger13 = MoveContact
trigger14 = stateno = 600
trigger14 = MoveContact
trigger15 = stateno = 610
trigger15 = MoveContact
trigger16 = stateno = 620
trigger16 = MoveContact
trigger17 = Stateno = 630
trigger17 = MoveContact
trigger18 = Stateno = 640
trigger18 = MoveContact
trigger19 = Stateno = 650
trigger19 = MoveContact
trigger20 = Stateno = 660
trigger20 = MoveContact

;----------------------------------------------------------------------------
; Dragon Punch (hard)
[State -1, Shoryuken Hard]
type = ChangeState
value = 4132
triggerall = command = "dragon3"
;triggerall = numhelper(4094) = 1
triggerall = StateType = S || StateType = C || StateType = A 
triggerall = Stateno != 740
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveContact
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 240
trigger5 = MoveContact
trigger6 = stateno = 250
trigger6 = MoveContact
trigger7 = stateno = 400
trigger7 = MoveContact
trigger8 = stateno = 410
trigger8 = MoveContact
trigger9 = stateno = 430
trigger9 = MoveContact
trigger10 = stateno = 440
trigger10 = MoveContact
trigger11 = stateno = 450
trigger11 = MoveContact
trigger12 = stateno = 420
trigger12 = MoveContact

; Dragon Punch (hard)
[State -1, Shoryuken Hard]
type = ChangeState
value = 4267
triggerall = command = "Mud"
;triggerall = NumHelper(5425) = 0
triggerall = NumHelper(5446) = 0
triggerall = NumHelper(5435) = 0
triggerall = NumHelper(5445) = 0
triggerall = NumHelper(5455) = 0
triggerall = StateType = S || StateType = C  
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveContact
trigger4 = stateno = 220
trigger4 = MoveContact
trigger5 = stateno = 230
trigger5 = MoveContact
trigger6 = stateno = 240
trigger6 = MoveContact
trigger7 = stateno = 250
trigger7 = MoveContact
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger13 = MoveContact

;----------------------------------------------------------------------------
 "Gum"
[State -1, ]
type = ChangeState
value = 1380
triggerall = command = "Gum"
triggerall = NumHelper(1029) = 0
triggerall = NumHelper(100) = 0
triggerall = NumHelper(4094) = 0
triggerall = NumHelper(4191) = 0
triggerall = StateType = S || StateType = C || StateType = A
trigger1 = ctrl
trigger2 = StateNo = 200
trigger2 = Movecontact = 1 
trigger3 = StateNo = 210
trigger3 = Movecontact = 1
trigger4 = StateNo = 220
trigger4 = Movecontact = 1
trigger5 = StateNo = 230
trigger5 = Movecontact = 1
trigger6 = StateNo = 240
trigger6 = Movecontact = 1
trigger7 = StateNo = 250
trigger7 = Movecontact = 1
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger14 = stateno = 661
trigger14 = MoveContact
trigger15 = stateno = 4069
trigger16 = stateno = 3025
trigger17 = stateno = 4073
trigger18 = stateno = 4057
trigger19 = stateno = 4079
trigger20 = stateno = 4055
trigger21 = stateno = 4165
trigger22 = StateNo = 600
trigger22 = Movecontact = 1 
trigger23 = StateNo = 610
trigger23 = Movecontact = 1
trigger24 = StateNo = 620
trigger24 = Movecontact = 1
trigger25 = StateNo = 630
trigger25 = Movecontact = 1
trigger26 = StateNo = 640
trigger26 = Movecontact = 1
trigger27 = StateNo = 650
trigger27 = Movecontact = 1

;----------------------------------------------------------------------------
  "Fart"
[State -1, ]
type = ChangeState
value = 1390
triggerall = command = "Fart"
triggerall = NumHelper(4094) = 0
triggerall = NumHelper(1001) = 0
triggerall = StateType = S || StateType = C || StateType = A
trigger1 = ctrl
trigger2 = StateNo = 200
trigger2 = Movecontact = 1 
trigger3 = StateNo = 210
trigger3 = Movecontact = 1
trigger4 = StateNo = 220
trigger4 = Movecontact = 1
trigger5 = StateNo = 230
trigger5 = Movecontact = 1
trigger6 = StateNo = 240
trigger6 = Movecontact = 1
trigger7 = StateNo = 250
trigger7 = Movecontact = 1
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger13 = MoveContact
trigger14 = stateno = 4069
trigger15 = stateno = 3025
trigger16 = stateno = 4073
trigger17 = stateno = 4057
trigger18 = stateno = 4079
trigger19 = stateno = 4055
trigger20 = stateno = 4165
trigger21 = Stateno = 600
trigger21 = MoveContact
trigger22 = Stateno = 610
trigger22 = MoveContact
trigger23 = Stateno = 620
trigger23 = MoveContact
trigger24 = Stateno = 630
trigger24 = MoveContact
trigger25 = stateno = 640
trigger25 = MoveContact
trigger26 = stateno = 650
trigger26 = MoveContact

;----------------------------------------------------------------------------
  "Fart"
[State -1, ]
type = ChangeState
value = 1391
triggerall = command = "BRANG"
triggerall = NumHelper(4094) = 0
triggerall = NumHelper(1001) = 0
triggerall = StateType = S || StateType = C || StateType = A
trigger1 = ctrl
trigger2 = StateNo = 200
trigger2 = Movecontact = 1 
trigger3 = StateNo = 210
trigger3 = Movecontact = 1
trigger4 = StateNo = 220
trigger4 = Movecontact = 1
trigger5 = StateNo = 230
trigger5 = Movecontact = 1
trigger6 = StateNo = 240
trigger6 = Movecontact = 1
trigger7 = StateNo = 250
trigger7 = Movecontact = 1
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger13 = MoveContact
trigger14 = stateno = 4069
trigger15 = stateno = 3025
trigger16 = stateno = 4073
trigger17 = stateno = 4057
trigger18 = stateno = 4079
trigger19 = stateno = 4055
trigger20 = stateno = 4165
trigger21 = Stateno = 600
trigger21 = MoveContact
trigger22 = Stateno = 610
trigger22 = MoveContact
trigger23 = Stateno = 620
trigger23 = MoveContact
trigger24 = Stateno = 630
trigger24 = MoveContact
trigger25 = stateno = 640
trigger25 = MoveContact
trigger26 = stateno = 650
trigger26 = MoveContact

;----------------------------------------------------------------------------
  "Fart"
[State -1, ]
type = ChangeState
value = 1270
triggerall = command = "Junksion";"razzle"
triggerall = NumHelper(4094) = 0
triggerall = NumHelper(1001) = 0
triggerall = StateType = S || StateType = C
trigger1 = ctrl
trigger2 = StateNo = 200
trigger2 = Movecontact = 1 
trigger3 = StateNo = 210
trigger3 = Movecontact = 1
trigger4 = StateNo = 220
trigger4 = Movecontact = 1
trigger5 = StateNo = 230
trigger5 = Movecontact = 1
trigger6 = StateNo = 240
trigger6 = Movecontact = 1
trigger7 = StateNo = 250
trigger7 = Movecontact = 1
trigger8 = stateno = 400
trigger8 = MoveContact
trigger9 = stateno = 410
trigger9 = MoveContact
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 430
trigger11 = MoveContact
trigger12 = stateno = 440
trigger12 = MoveContact
trigger13 = stateno = 450
trigger13 = MoveContact
trigger14 = stateno = 4069
trigger15 = stateno = 3025
trigger15 = Time >= 21
trigger16 = stateno = 4073
trigger17 = stateno = 4057
trigger18 = stateno = 4079
trigger19 = stateno = 4055
trigger20 = stateno = 4165

;===========================================================================
;---------------------------------------------------------------------------
;Push Block (standing)  Thanks to BB Hood!
[State -1]
type = ChangeState
value = 860
triggerall = (command = "x" && command = "y") || (command = "y" && command = "z") || (command = "x" && command = "y" && command = "z")
trigger1 = stateno = [150,151]

;Push Block (crouching)
[State -1]
type = ChangeState
value = 870
triggerall = (command = "x" && command = "y") || (command = "y" && command = "z") || (command = "x" && command = "y" && command = "z")
trigger1 = stateno = [152,153]

;Push Block (aerial)
[State -1]
type = ChangeState
value = 880
triggerall = (command = "x" && command = "y") || (command = "y" && command = "z") || (command = "x" && command = "y" && command = "z")
trigger1 = stateno = 154
trigger2 = stateno = 155
trigger2 = Time <= 10

;===========================================================================
;---------------------------------------------------------------------------
; Air Dash
[State -1, Air Dash]
type = null;ChangeState
value = 740
triggerall = var(15) = 0
triggerall = stateno != 740
triggerall = PrevStateNo != 740
trigger1 = command = "FF"
trigger1 = StateType = A
trigger1 = ctrl
trigger2 = (command = "a" && command = "b") || (command = "b" && command = "c")
trigger2 = StateType = A
trigger2 = Ctrl

;---------------------------------------------------------------------------
;Run Back
[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BRun";"y" && command = "z";
;trigger1 = command = "HoldB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = statetype = S
trigger1 = command = "FF"
trigger1 = ctrl

;---------------------------------------------------------------------------
;Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = statetype = S
trigger1 = command = "y" && command = "z";"FRun";;
trigger1 = command != "HoldB"
trigger1 = ctrl

;---------------------------------------------------------------------------
;Run Back
[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; Superjump Up
[State -1, Superjump Up]
type = ChangeState
value = 690
triggerall = numhelper(652)= 0
triggerall = command = "holdup"
trigger1 = command = "SuperJumpUp"
trigger1 = statetype = S || statetype = C
trigger1 = ctrl
trigger2 = stateno = 420
trigger2 = movecontact
trigger3 = stateno = 250
trigger3 = movecontact

;---------------------------------------------------------------------------
; Superjump Fwd
[State -1, Superjump Fwd]
type = ChangeState
triggerall = numhelper(652)= 0
value = 700
triggerall = command = "holdfwd"
trigger1 = command = "SuperJumpFwd"
trigger1 = statetype = S || statetype = C
trigger1 = ctrl
;trigger2 = stateno = 420
;trigger2 = movecontact

;---------------------------------------------------------------------------
; Superjump Back
[State -1, Superjump Back]
type = ChangeState
triggerall = numhelper(652)= 0
value = 710
;triggerall = command = "holdback"
trigger1 = command = "SuperJumpBck"
trigger1 = statetype = S || statetype = C
trigger1 = ctrl
;trigger2 = stateno = 420
;trigger2 = movecontact

;---------------------------------------------------------------------------
; Basic Throw
[State -1, Basic Throw]
type = ChangeState
value = 800
triggerall = command = "y" || command = "z"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 5
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H

[State -1, Back Throw]
type = ChangeState
value = 801
triggerall = command = "y" || command = "z"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdback"
trigger1 = p2bodydist X < 8
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H

;---------------------------------------------------------------------------
; Air Throw
[State -1, Basic Throw]
type = ChangeState
value = 850
triggerall = command = "y" || command = "z"
triggerall = statetype = A
triggerall = ctrl
triggerall = stateno != 100
trigger1 = p2bodydist X < 9
trigger1 = (p2statetype = A) 
;trigger1 = p2movetype != H
trigger2 = p2bodydist X < 9
trigger2 = (p2statetype = A)
;trigger2 = p2movetype != H

;---------------------------------------------------------------------------
; Dive Kick
[State -1, Dive Kick]
type = ChangeState
value = 660
triggerall = statetype = A
triggerall = numhelper(4094) = 0
;triggerall = command = "holddown"
triggerall = command = "ButSlam"
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = MoveContact
trigger3 = stateno = 610
trigger3 = MoveContact
trigger4 = statetime = 620  
trigger4 = MoveContact
trigger5 = stateno = 700  
trigger5 = MoveContact
trigger6 = stateno = 630
trigger6 = MoveContact
trigger7 = stateno = 640
trigger7 = MoveContact

;---------------------------------------------------------------------------
; Dive Kick
[State -1, Dive Kick]
type = ChangeState
value = 660
triggerall = statetype = A
triggerall = numhelper(4094) = 1
;triggerall = command = "holddown"
triggerall = command = "russel"
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = MoveContact
trigger3 = stateno = 610
trigger3 = MoveContact
trigger4 = statetime = 620  
trigger4 = MoveContact
trigger5 = stateno = 700  
trigger5 = MoveContact
trigger6 = stateno = 630
trigger6 = MoveContact
trigger7 = stateno = 640
trigger7 = MoveContact

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

;  RollRecovery 
[State -1,]
type = ChangeState
value = 681
;trigger1 = ctrl
triggerall = pos Y >= 0 
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = Life > 0
triggerall = Stateno = 5101 || Stateno = 5110 || Stateno = 5100 
trigger1 = command = "holdback"
trigger2 = command = "holdfwd"


;===========================================================================
;---------------------------------------------------------------------------
;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = AnimTime >= 3
trigger3 = stateno = 240
trigger3 = MoveContact

;---------------------------------------------------------------------------
;Stand Medium Punch
[State -1, Stand Medium Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 230
trigger3 = MoveContact
trigger4 = stateno = 400
trigger4 = MoveContact
trigger5 = stateno = 430
trigger5 = MoveContact

;---------------------------------------------------------------------------
;Stand Hard Punch
[State -1, Stand Hard Punch]
type = ChangeState
value = 220
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 210
trigger2 = MoveContact
trigger3 = stateno = 240
trigger3 = MoveContact
trigger4 = stateno = 200
trigger4 = MoveContact
trigger5 = stateno = 230
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact

;---------------------------------------------------------------------------
;Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = MoveContact
trigger3 = stateno = 400
trigger3 = MoveContact

;---------------------------------------------------------------------------
;Standing Medium Kick
[State -1, Standing Medium Kick]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 230
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveContact 
trigger4 = stateno = 200
trigger4 = MoveContact
trigger5 = stateno = 400
trigger5 = MoveContact
trigger6 = stateno = 410
trigger6 = MoveContact
trigger7 = stateno = 430
trigger7 = MoveContact

;---------------------------------------------------------------------------
;Standing Hard Kick
[State -1, Standing Hard Kick]
type = ChangeState
value = 250
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 240
trigger2 = MoveContact
trigger3 = stateno = 210
trigger3 = MoveContact
trigger4 = stateno = 230
trigger4 = MoveContact
trigger5 = stateno = 200
trigger5 = MoveContact
trigger6 = stateno = 400
trigger6 = MoveContact
trigger7 = stateno = 410
trigger7 = MoveContact
trigger8 = stateno = 430
trigger8 = MoveContact
trigger9 = stateno = 440
trigger9 = MoveContact
trigger10 = numhelper(4094) = 1
trigger10 = stateno = 420
trigger10 = MoveContact
trigger11 = stateno = 220
trigger11 = MoveContact

[State -1, Kick Launcher Followup]
type = ChangeState
value = 670
triggerall = command = "holdup"
trigger1 = MoveHit
trigger1 = stateno = 250
 
;---------------------------------------------------------------------------
;Taunt
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Crouching Light Punch
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 400
trigger2 = MoveContact
trigger2 = AnimElemTime(3) > 1
trigger2 = numhelper(4191) = 0
trigger3 = stateno = 240
trigger3 = MoveContact

;---------------------------------------------------------------------------
;Crouching Medium Punch
[State -1, Crouching Medium Punch]
type = ChangeState
value = 410
triggerall = command = "holddown"
triggerall = command = "y"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 400
trigger2 = MoveContact
trigger3 = stateno = 430
trigger3 = MoveContact
trigger4 = stateno = 200
trigger4 = MoveContact
trigger5 = stateno = 230
trigger5 = MoveContact

;---------------------------------------------------------------------------
;Crouching Hard Punch
[State -1, Crouching Hard Punch]
type = ChangeState
value = 420
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 410
trigger2 = MoveContact
trigger3 = stateno = 400
trigger3 = MoveContact
trigger4 = stateno = 430
trigger4 = MoveContact
trigger5 = stateno = 440
trigger5 = MoveContact
trigger6 = stateno = 200
trigger6 = MoveContact
trigger7 = stateno = 210
trigger7 = MoveContact
trigger8 = stateno = 230
trigger8 = MoveContact
trigger9 = stateno = 240
trigger9 = MoveContact

[State -1, Punch Launcher Followup]
type = ChangeState
value = 670
triggerall = command = "holdup"
trigger1 = MoveHit
trigger1 = stateno = 420
 

;---------------------------------------------------------------------------
;Crouching Light Kick
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 430
trigger2 = MoveContact
trigger2 = AnimElem = 3
trigger3 = stateno = 400
trigger3 = MoveContact
trigger4 = stateno = 200
trigger4 = MoveContact

;---------------------------------------------------------------------------
;Crouching Medium Kick
[State -1, Crouching Medium Kick]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 430
trigger2 = MoveContact
trigger3 = stateno = 400
trigger3 = MoveContact
trigger4 = stateno = 410
trigger4 = MoveContact
trigger5 = stateno = 200
trigger5 = MoveContact
trigger6 = stateno = 210
trigger6 = MoveContact
trigger7 = stateno = 230
trigger7 = MoveContact

;---------------------------------------------------------------------------
;Crouching Hard Kick
[State -1, Crouching Hard Kick]
type = ChangeState
value = 450
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 400
trigger2 = MoveContact
trigger3 = stateno = 410
trigger3 = MoveContact
trigger4 = stateno = 420
trigger4 = MoveContact
trigger5 = stateno = 430
trigger5 = MoveContact
trigger6 = stateno = 200
trigger6 = MoveContact
trigger7 = stateno = 210
trigger7 = MoveContact
trigger8 = stateno = 220
trigger8 = MoveContact
trigger9 = stateno = 230
trigger9 = MoveContact
trigger10 = stateno = 440
trigger10 = MoveContact
trigger11 = stateno = 240
trigger11 = MoveContact

;---------------------------------------------------------------------------
;Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = var(15) = 0
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = AnimElem = 1
trigger3 = stateno = 660
trigger3 = MoveContact


;---------------------------------------------------------------------------
;Jump Medium Punch
[State -1, Jump Medium Punch]
type = ChangeState
value = 610
triggerall = var(15) = 0
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = MoveContact
trigger3 = stateno = 630
trigger3 = MoveContact
trigger4 = statetime = 2446  
trigger4 = MoveContact
trigger5 = statetime = 640  
trigger5 = MoveContact
trigger6 = statetime = 650  
trigger6 = MoveContact
trigger7 = stateno = 700  
trigger7 = MoveContact
;trigger8 = Pos Y >= -3

;---------------------------------------------------------------------------
;Jump Hard Punch
[State -1, Jump Hard Punch]
type = ChangeState
value = 620
triggerall = var(15) = 0
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 610
trigger2 = MoveContact
trigger3 = stateno = 640
trigger3 = MoveContact
trigger4 = stateno = 600
trigger4 = MoveContact
trigger5 = stateno = 600
trigger5 = MoveContact
trigger6 = stateno = 700  
trigger6 = MoveContact
trigger7 = stateno = 660
trigger7 = movecontact
trigger8 = stateno = 630
trigger8 = movecontact

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = var(15) = 0
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = MoveHit
trigger3 = statetime = 2446  
trigger3 = MoveContact
trigger4 = statetime = 650  
trigger4 = MoveContact
trigger5 = stateno = 700  
trigger5 = MoveContact


;---------------------------------------------------------------------------
;Jump Medium Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = var(15) = 0
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 610
trigger2 = MoveContact
trigger3 = stateno = 630
trigger3 = MoveContact
trigger4 = statetime = 2446  
trigger4 = MoveContact
trigger5 = stateno = 600
trigger5 = MoveContact
trigger6 = stateno = 700  
trigger6 = MoveContact

;---------------------------------------------------------------------------
;Jump Hard Kick
[State -1, Jump Hard Kick]
type = ChangeState
value = 650
triggerall = var(15) = 0
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = MoveContact
trigger3 = stateno = 610
trigger3 = MoveContact
trigger4 = stateno = 620  
trigger4 = MoveContact
trigger5 = stateno = 630
trigger5 = MoveContact
trigger6 = stateno = 640
trigger6 = movecontact
trigger7 = stateno = 660
trigger7 = MoveContact
trigger8 = stateno = 700  
trigger8 = MoveContact



















































































































































































































































































