; 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,  D,  B, a
;
; [Command] ;Two quarter circles forward + y
; name = "2QCF_y"
; command = ~D, F, D, 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 = ~B, F, z
; time = 10
;
; [Command] ;Charge down, then up + c
; name = "charge_D_U_c"
; command = ~D, U, c
; time = 10
;-| Config |-----------------------------------------------------------------

;[Remap]
;x = x
;y = z
;z = a
;a = y
;b = c
;c = b
;s = s
;-| ai   |----------------------------------------------------
[Command]
name = "ai_1"
command = F, F, F, F, F, F
time = 1

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

[Command]
name = "ai_3"
command = D, U, D, U, D, U
time = 1

[Command]
name = "ai_4"
command = F, x, F, B, y, B
time = 1

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

[Command]
name = "ai_6"
command = a, x, F, B, y, B
time = 1

[Command]
name = "ai_7"
command = z, x, F, B, c, B
time = 1

[Command]
name = "ai_8"
command = c, x, F, B, z, B
time = 1

[Command]
name = "ai_9"
command = z, x, a, B, y, B
time = 1

[Command]
name = "ai_10"
command = a, x, F, z, y, B
time = 1

[Command]
name = "ai_11"
command = c, x, F, c, y, B
time = 1

[Command]
name = "ai_12"
command = F, x, F, c, z, B
time = 1

[Command]
name = "ai_13"
command = x, a, z, B, y, B
time = 1

[Command]
name = "ai_14"
command = z, a, x, y, y, B
time = 1

[Command]
name = "ai_15"
command = F, U, F, z, c, s
time = 1

[Command]
name = "ai_16"
command = F, s, F, s, y, s
time = 1
;-| HDMS |-----------------------------------------------------------

[Command]
name = "DeathWave"
command = ~D, DF, F, D, DF, F, c
time = 30
;-| LDMS |-----------------------------------------------------------

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

;-| DM1 |-----------------------------------------------------------

[Command]
name = "Scippata"     
command = ~D, DF, F, D, DF, F, a
time = 30
;

[Command]
name = "Scippata"     
command = ~D, DF, F, D, DF, F, b
time = 30 

;-| MDM2 |-----------------------------------------------------------

[Command]
name = "darkness"
command = ~D, B, D, B, c
time = 30

[Command]
name = "universe"
command = ~D, B, D, F, c
time = 30

;-| DM2 |-----------------------------------------------------------

[Command]
name = "darkorb"
command = ~D, DF, F, D, DF, F, x
time = 30
;

[Command]
name = "darkorb"
command = ~D, DF, F, D, DF, F, y
time = 30

;-| DM2 |---------------------------------------------------

;chaos shield
[Command]
name = "chaosshield"
command = ~D,D,D, a+b
time = 30

;-| DM3 |-----------------------------------------------------------

[Command]
name = "blackcannon"
command = ~D, DB, B, D, DB, B, x
time = 30
;

[Command]
name = "blackcannon"
command = ~D, DB, B, D, DB, B, y
time = 30

;--------------------------
[Command]
name = "cosmo"
command = ~D, DB, B, D, DF, F, x+y
time = 30

;-| DM5 |-----------------------------------------------------------

[Command]
name = "Deathclaw"
command = ~D, F, D, B, a+b
time = 30
;

[Command]
name = "porrada"
command = ~D, F, D, B, x
time = 30
;

[Command]
name = "porrada"
command = ~D, F, D, B, y
time = 30



;-| Specials |-----------------------------------------------------------
[Command]
name = "sixa'r wave"
command = ~B,F,B,F,x
time = 30
;

[Command]
name = "sixa'r wave"
command = ~B,F,B,F,y
time = 30

;soco pulando fraco
[Command]
name = "DP_P"
command = ~F,D,DF, x
time = 15

;soco pulando forte
[Command]
name = "DP_P"
command = ~F,D,DF, y
time = 15

;soco pulando fraco
[Command]
name = "rearDP_K1"
command = ~B,D,DB, a
time = 15

;soco pulando fraco
[Command]
name = "rearDP_K2"
command = ~B,D,DB, b
time = 15

;soco pulando fraco
[Command]
name = "rearDP_P"
command = ~B,D,DB, x
time = 15

;soco pulando fraco
[Command]
name = "rearDP_P"
command = ~B,D,DB, y
time = 15


;soco pulando fraco
[Command]
name = "Chain1x"     
command = ~D,DB,B, x
time = 15

;soco pulando forte
[Command]
name = "Chain1y"    
command = ~D,DB,B, y
time = 15
;---------------------------------------
;chute k
[Command]
name = "Chain4b"     
command = ~D,DB,B, a
time = 15

;chute k
[Command]
name = "Chain4b"    
command = ~D,DB,B, b
time = 15


;soco pulando forte (in chain)
[Command]
name = "Chain1b"
command = /B, x
time = 10

;dive kick fraco (in chain)
[Command]
name = "Chain2a"    
command = /F,a
time = 10

[Command]
name = "Chain2ab"
command = /F,b
time = 10

;dive kick forte (in chain)
[Command]
name = "Chain2a"    
command = /F,b
time = 10

;dive kick forte 
[Command]
name = "Chain2b"    
command = ~D,F,a
time = 15

;dive kick forte 
[Command]
name = "Chain2b"    
command = ~D,F,b
time = 15

;chute para cima fraco(in chain)
[Command]
name = "Chain3"    
command = /U,a
time = 10

;chute para cima forte(in chain)
[Command]
name = "Chain3"    
command = /U,b
time = 10

;chute para cima fraco
[Command]
name = "Chain3b"    
command = ~F,D,DF,a
time = 15

;chute para cima forte
[Command]
name = "Chain3b"    
command = ~F,D,DF,b
time = 15

; chute de k fraco (in chain)
[Command]
name = "Chain4"    
command = /B,a
time = 10



; chute de k forte (in chain)
[Command]
name = "Chain4"    
command = /B,b
time = 10

; soco para baixo fraco continua軋o do chain4( in chain)
[Command]
name = "Chain5"    
command = /D,x
time = 10



; soco para baixo forte continua軋o do chain4( in chain)
[Command]
name = "Chain5"    
command = /D,y
time = 10

;soco das trevas fraco
[Command]
name = "Chain6"    
command = ~D,DF,F,x
time = 15

;soco das trevas fraco(in chain)
[Command]
name = "Chain6b"    
command = /F,y
time = 10

;soco das trevas fraco(in chain)
[Command]
name = "Chain6b2"
command = /F,x
time = 10

;soco das trevas forte(in chain)
[Command]
name = "Chain7b"    
command = /F,y
time = 10

;soco das trevas forte
[Command]
name = "Chain7"    
command = ~D,DF,F,y
time = 15

;dark press
[Command]
name = "Chain8"    
command = /D,a
time = 15

;dark press
[Command]
name = "Chain8"    
command = /D,b
time = 15

;chain x
[Command]
name = "Chainx"
command = /F,x
time = 15

;chain x
[Command]
name = "Chaina"
command = /F,a
time = 15

;SHADOW WARP
[Command]
name = "shadowa"
command = ~D,F,a
time = 15

;SHADOW WARP
[Command]
name = "shadowb"
command = ~D,F,b
time = 15



;Snow Actions
[Command]
name = "SnowA"
command = ~D,F,z
time = 20

;Snow Actions
[Command]
name = "SnowB"
command = ~D,B,z
time = 20

;Snow Actions
[Command]
name = "SnowC"
command = ~B,F,z
time = 15

;Snow Actions
[Command]
name = "SnowD"
command = ~D,U,b
time = 15

;light sphere
[Command]
name = "light1"
command = ~D,D,y
time = 15

;light sphere
[Command]
name = "light2"
command = ~D,D,x
time = 15

;light sphere
[Command]
name = "Darkpress"
command = ~D,D,z
time = 15

;crystal fall
[Command]
name = "crystal fall1"
command = ~B,F,x
time = 20

;lightning fall
[Command]
name = "crystal fall2"
command = ~B,F,y
time = 20

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"     ;Required (do not remove)
command = F, F
time = 15

[Command]
name = "BB"     ;Required (do not remove)
command = B, B
time = 15

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery";Required (do not remove)
command = x+a
time = 1

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

[Command]
name = "repel"
command = x+y
time = 1

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

;striker activation
[Command]
name = "change"
command = a+y
time = 1

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

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

;cancel
[Command]
name = "dodge"
command = z
time = 1

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

[Command]
name = "start"
command = s
time = 1
;-| hold button |----------------------------------------------
[Command]
name = "hold_A"
command = /$x
time = 1


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

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


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

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

[Command]
name ="hold_dodge"
command = /$z
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 |-----------------------------------------------------
[State -1,ai activation]
type = VarSet
trigger1 = command = "ai_1"
trigger2 = command = "ai_2"
trigger3 = command = "ai_3"
trigger4 = command = "ai_4"
trigger5 = command = "ai_5"
trigger6 = command = "ai_6"
trigger7 = command = "ai_7"
trigger8 = command = "ai_8"
trigger9 = command = "ai_9"
trigger10 = command = "ai_10"
trigger11 = command = "ai_11"
trigger12 = command = "ai_12"
trigger13 = command = "ai_13"
trigger14 = command = "ai_14"
trigger15 = command = "ai_15"
trigger16 = command = "ai_16"
;/trigger17 = command = "start"
v = 59
value = 1






;Piglia & Mena
[State -1, Piglia & Mena]
type = ChangeState
value = 3450
triggerall = command = "porrada" && (power >= 1000)
trigger1 = stateno = 1050 && movecontact
trigger2 = stateno = 1080 && movecontact

;death wave
[State -1, death wave]
type = ChangeState
value = 3400
triggerall = var(25)=0
triggerall = command = "DeathWave" && (power >= 3000)
trigger1 = statetype = S
trigger1= ctrl
trigger2= power>=500
trigger2 = stateno = 1080 || stateno = 1050 || stateno = 3012 || stateno = 3100  || stateno = 3500
trigger3 = stateno =246   || stateno = 247 || stateno=220
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger6= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245
trigger7 = stateno = 3200 && time =[20,125]
trigger8 = stateno = 3550 && movehit

;===========================================================================
;universe
[State -1, universe]
type = ChangeState
value = 3010
triggerall = var(48)<=0
triggerall = var(25)=0
triggerall = command = "universe" && (power >= 2000)
trigger1 = statetype = S && ctrl = 1
;trigger2 = hitdefattr = SC,NA && movecontact
trigger2 =power>=500
trigger2 = stateno = 1080 || stateno = 1050 ||  stateno =1010 || stateno = 3012 || stateno = 3100 || stateno = 3500
trigger3 = stateno =246   || stateno = 247  || stateno = 240 || stateno =245 || stateno=220
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger6= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245
trigger7 =stateno = 3200 && time = [40,100]
trigger8 = stateno = 3550 && movehit
;===========================================================================
;Kaisa blast VI
[State -1, Kaisa blast VI]
type = ChangeState
value = 3540
triggerall =var(48)>=1
triggerall = var(25)=0
triggerall = command = "darkness" && (power >= 2000)
trigger1 = statetype = S
trigger1= ctrl
trigger2=power>=500
trigger2 = stateno = 1080 || stateno = 1050 || stateno = 3012 || stateno = 3100
trigger3 = stateno =246   || stateno = 247 || stateno=220
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger6= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245


;Kaisa wave IV
[State -1, Kaisa wave IV]
type = ChangeState
value = 3500
triggerall = var(25)=0
triggerall = command = "Kaisawueiv" && (power >= 2000)
trigger1 = statetype = S
trigger1= ctrl
trigger2=power>=500
trigger2 = stateno = 1080 || stateno = 1050 || stateno = 3012 || stateno = 3100
trigger3 = stateno =246   || stateno = 247
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger6= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245 || stateno=220

;===========================================================================
;La Scippata
[State -1, La Scippata]
type = ChangeState
value = 3000
triggerall = var(25)=0
triggerall = command = "Scippata" && (power >= 1000)
trigger1 = statetype = S && ctrl = 1
;trigger2 = hitdefattr = SC,NA
;trigger2 = movecontact
;trigger2 = hitdefattr = SC,NA && movecontact
;trigger2 = stateno !=3010
trigger2=power>=500
trigger2 = stateno = 1080 || stateno = 1050 ||  stateno =1010
trigger3 = stateno =246   || stateno = 247  || stateno = 240 || stateno =245
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger6= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245 || stateno=220

;Death claw
[State -1, Death claw]
type = ChangeState
value = 3050
triggerall =var(48)>=1
triggerall = var(25)=0
triggerall = command = "Deathclaw" && (power >= 2000)
trigger1 = statetype = S && ctrl = 1
trigger2 = stateno = 1080 || stateno = 1050 ||  stateno =1010 || stateno = 3012 || stateno = 3100
trigger3 = stateno =246   || stateno = 247  || stateno = 240 || stateno =245
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger6= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245 || stateno=220
;===========================================================================
;darknes orb
[State -1, dark orb]
type = ChangeState
value = 3012
triggerall = var(25)=0
triggerall = command = "darkorb" && (power >= 1000)&& statetype =S
trigger1 = ctrl = 1
;trigger2 = hitdefattr = SC,NA && movecontact
trigger2 = power>=500
trigger2 = stateno = 1080 || stateno = 1050 ||  stateno =1010
trigger3 = stateno =246   || stateno = 247  || stateno = 240 || stateno =245
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger6= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245 || stateno=220

;===========================================================================
;chaos shield
[State -1, chaos shield]
type = ChangeState
value = 4500
triggerall = var(25)=0
triggerall = stateno != 6701 || stateno != 6703
triggerall = command = "chaosshield" && (power >= 1000)
trigger1 = statetype = S && ctrl = 1

;===========================================================================
;blackcannon
[State -1, blackcannon]
type = ChangeState
value = 3100
triggerall = power >= 1000
triggerall = var(25)=0
triggerall = command = "blackcannon" 
trigger1 = statetype = S && ctrl = 1
;trigger2 = hitdefattr = SC,NA && movecontact
trigger2=power>=500
trigger2 = stateno = 1080 || stateno = 1050 ||  stateno =1010
trigger3 = stateno =246   || stateno = 247  || stateno = 240 || stateno =245
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger6= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245 || stateno=220

;===========================================================================
;extin軋o cosmica
[State -1, extin軋o cosmica (asura)]
type = ChangeState
value = 3150
triggerall = var(25)!=0
triggerall = command = "darkorb" && (power >= 2000)
trigger1 = statetype = S && ctrl = 1
trigger2 = stateno =201 || stateno =231 || stateno =241 || stateno =211
trigger3 = stateno = 401 || stateno = 431 || stateno =441 || stateno =411
;===========================================================


;Galaxy
[State -1, galaxy]
type = ChangeState
value = 3200
triggerall = var(25)=0
triggerall = command = "cosmo" && (power >= 2000)
trigger1 = statetype = S && ctrl = 1
;trigger2 = hitdefattr = SC,NA && movecontact
trigger2=power>=500
trigger2 = stateno = 1080 || stateno = 1050 ||  stateno =1010 || stateno = 3012 || stateno = 3100
trigger3 = stateno =246   || stateno = 247  || stateno = 240 || stateno =245
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215 || stateno=220
trigger6= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245

;===========================================================================
;energy rain
[State -1,energy rain]
type = ChangeState
value = 3250
triggerall = var(25)=0
triggerall = numhelper(3251)=0 && numprojID(3250)=0
triggerall = command = "blackcannon" && (power >= 1000)
trigger1 = statetype = A && ctrl = 1
trigger2= stateno = 600 || stateno = 610 || stateno = 630 || stateno = 640 || stateno = 650
trigger3= stateno = 1030 || stateno =1000 || stateno =1020 || stateno =1090
;--------------------------------------------------------------
;----------------special moves
;sixa'r wave
[State -1, sixa'r wave]
type = ChangeState
value = 2100
triggerall = var(25)=0
triggerall = command = "Chain1x" || command = "Chain1y"
triggerall = NumProjID(2100)=0
trigger1 = statetype = S && ctrl = 1
;trigger2 = hitdefattr = SC,NA && movecontact
trigger2 = stateno =246   || stateno = 247  || stateno = 240 || stateno =245 || stateno=220
trigger3 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400

;death bomb
[State -1, death blast (asura)]
type = ChangeState
value = 1190
triggerall = var(25)!=0
triggerall = command = "DP_P"
triggerall =statetype !=A
trigger1 =ctrl
trigger2 = stateno =201 || stateno =231 || stateno =241 || stateno =211
trigger3 = stateno = 401 || stateno = 431 || stateno =441 || stateno =411

;crystal fall
[State -1, death Crystal (asura)]
type = ChangeState
value = 1180
triggerall = var(25)!=0
triggerall = command = "rearDP_K1"
triggerall =statetype !=A
trigger1 =ctrl
trigger2 = stateno =201 || stateno =231 || stateno =241 || stateno =211
trigger3 = stateno = 401 || stateno = 431 || stateno =441 || stateno =411

;death axe
[State -1, death axe (asura)]
type = ChangeState
value = 1170
triggerall = var(25)!=0
triggerall = power >= 1000
triggerall = command = "rearDP_K2"
triggerall =statetype !=A
trigger1 =ctrl
trigger2 = stateno =201 || stateno =231 || stateno =241 || stateno =211
trigger3 = stateno = 401 || stateno = 431 || stateno =441 || stateno =411
trigger4 =stateno =1190 && time =[20,100]

;death shield
[State -1, death shield (asura)]
type = ChangeState
value = 1150
triggerall = var(25)!=0
triggerall = command = "rearDP_P"
triggerall =statetype !=A
trigger1 =ctrl
trigger2 = stateno =201 || stateno =231 || stateno =241 || stateno =211
trigger3 = stateno = 401 || stateno = 431 || stateno =441 || stateno =411

;death spear
[State -1, death spear (asura)]
type = ChangeState
value = 1160
triggerall = var(25)!=0
triggerall = command = "Chain4" || command = "Chain1x" || command = "Chain1y" || command = "Chain4b"
triggerall =statetype !=A
trigger1 =ctrl
trigger2 = stateno =201 || stateno =231 || stateno =241 || stateno =211
trigger3 = stateno = 401 || stateno = 431 || stateno =441 || stateno =411

;cyclone blade
[State -1, ciclone blade (asura)]
type = ChangeState
value = 1070
triggerall = var(25) !=0
triggerall = command = "Chain3b"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno =201 || stateno =231 || stateno =241 || stateno =211
trigger3 = stateno = 401 || stateno = 431 || stateno =441 || stateno =411

;darkpress (darkchain)
[State -1, darkpress (darkchain)]
type = ChangeState
value = 1060
triggerall = var(25)=0
trigger1 = command = "Chain8" && (stateno = 1050) && (time >= 17)
trigger2 = command = "Chain8" && (stateno = 1080) && (time >= 14)
trigger3 = command = "Chain8" && (stateno = 1001)
trigger3 = stateno = 246

;arco da morte
[State -1,death bow (asura)]
type = ChangeState
value = 1081
triggerall = var(25) !=0
triggerall = command = "shadowb" || command = "Chain7" || command = "shadowa" || command = "Chain6"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno =201 || stateno =231 || stateno =241 || stateno =211
trigger3 = stateno = 401 || stateno = 431 || stateno =441 || stateno =411

;shadow warp back
[State -1, shadow warp B]
type = ChangeState
value = 6703
triggerall = var(25)=0
triggerall =  command = "shadowa"
trigger1 = statetype = S
trigger1 = ctrl
trigger2= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger3= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno= 246 || stateno=247 || stateno=220

;light sphere
[State -1, light sphere]
type = ChangeState
triggerall = var(25)=0
value = ifelse(command = "light1",6230,6231)
triggerall = command = "light1" || command = "light2"
triggerall = numhelper(6234) <=2
trigger1 = statetype = S
trigger1 = ctrl
trigger2= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger3= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno= 246 || stateno=247 || stateno=220

;soco das trevas
[State -1,soco das trevas]
type = ChangeState
value = 1080
triggerall = var(25) =0
trigger1 = command = "Chain6"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = command = "Chain6"
trigger2 = hitdefattr = SC, NA && movecontact
trigger2 = stateno != 250
trigger2 = stateno != 440
trigger2 = stateno != 3010
trigger3 = command = "Chain6b" && (stateno = 1050) && (time >= 17) || command = "Chain6b2" && (stateno = 1050) && (time >= 17)
trigger4 = command = "Chain6"
trigger4 = stateno =246   || stateno = 247  || stateno=220
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400

;soco das trevas forte
[State -1, soco das trevas forte]
type = ChangeState
value = 1050
triggerall = var(25) =0
trigger1 = command = "Chain7"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = command = "Chain7"
trigger2 = hitdefattr = SC, NA && movecontact
trigger2 = stateno != 250
trigger2 = stateno != 440
trigger2 = stateno != 3010
trigger3 = command = "Chain7b" && (stateno = 1080) && (time >= 14)
trigger4 = command = "Chain7"
trigger4 = stateno =246   || stateno = 247 || stateno=220



;energy shot
[State -1, energy shot]
type = ChangeState
value = 1090
triggerall =var(48)>=1
triggerall = var(25)=0
triggerall = statetype =A
triggerall = numprojID(1091) =0
triggerall = command = "Chain6" || command = "Chain7"
trigger1 = ctrl =1
trigger2= stateno = 600 || stateno = 610 || stateno = 630 || stateno = 640 || stateno = 650
trigger3= stateno = 1030 || stateno =1000 || stateno =1020
trigger4 = stateno =105

;soco para baixo (darkchain)
[State -1, soco para baixo (darkchain)]
type = ChangeState
value = 1030
triggerall = var(25)=0
trigger1 = command = "Chain5" && (stateno = 1020) && (time = [13,22])

;Chain E
[State -1, soco para baixo]
type = ChangeState
value = 1030
triggerall = var(25)=0
triggerall = command = "Chain5"
trigger1 = statetype = A
trigger1 = ctrl
trigger2= stateno = 600 || stateno = 610 || stateno = 630 || stateno = 640
trigger2= movecontact
trigger3 = stateno =105

;chute de k forte (darkchain)
[State -1, chute de k forte (darkchain)]
type = ChangeState
value = 1020
triggerall = var(25)=0
trigger1 = command = "Chain4" && (stateno = 1010) && (time = [9,18])
trigger2 = command = "Chain4" && (stateno = [1100,1111])
trigger2 = hitdefattr = SC,NA
trigger2 = stateno != 3010
trigger2 = movecontact

;chute para cima
[State -1, chute para cima ]
type = ChangeState
value = 1010
triggerall = var(25)=0
trigger1 = command = "Chain3" && (stateno = 1001)
trigger2 = command = "Chain3b"
trigger2 = statetype = S
trigger2 = ctrl
trigger3 = command = "Chain3b"
trigger3 = hitdefattr = SC, NA && movecontact
trigger3 = stateno != 250
trigger3 = stateno != 440
trigger2 = stateno != 3010
trigger4 = command = "Chain3" && (stateno = 1050) && (time >= 17)
trigger5 = command = "Chain3" && (stateno = 1080) && (time >= 14)
trigger6 = command = "Chain3b"
trigger6 = stateno =246   || stateno = 247 || stateno=220
trigger6 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
;---------------------------------------------------------------------------
;dive kick
[State -1, dive kick ]
type = ChangeState
value = 1000
triggerall = var(25)=0
trigger1 = command = "Chain2a" && (stateno = [1100,1111]) && (movecontact)
trigger2 = command = "Chain2b"
trigger2 = statetype = A
trigger2 = ctrl
trigger3 = command = "Chain2a" && (stateno = 1020) && (time = [13,20])
trigger4 = command = "Chain2b"
trigger4= stateno = 600 || stateno = 610 || stateno = 630 || stateno = 640 || stateno = 650
trigger4= movecontact
trigger5 = stateno =105
trigger5 = command = "Chain2b"
;---------------------------------------------------------------------------
;soco pulando fraco
[State -1, soco pulando fraco]
type = ChangeState
value = 1100
triggerall = var(25)=0
trigger1 = command = "Chain1b"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = command = "Chain1b"
trigger2 = hitdefattr = SC, NA && movecontact
trigger2 = stateno != 250
trigger2 = stateno != 440
trigger2 = stateno != 3010
trigger3 = command = "Chain1b" && (stateno = 1050) && (time >= 17)
trigger4 = command = "Chain1b" && (stateno = 1080) && (time >= 14)
trigger5 = command = "Chain1b"
trigger5= stateno =247 || stateno =246 || stateno=220

;chute de k'
[State -1, chute de k']
type = ChangeState
value = 1020
triggerall = var(25)=0
triggerall = command = "Chain4b"
trigger1 = ctrl
trigger2=   stateno =246 || stateno =247
trigger3 = stateno =600 || stateno =610 || stateno =630 || stateno =640 || stateno = 650
trigger4 = movecontact
trigger4= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger5 = movecontact
trigger5= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245
trigger6 = movecontact
trigger6 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger7 = stateno =105 || stateno=220

;chute de k' (dark chain)
[State -1,chute de k' (dark chain)]
type = ChangeState
value = 1020
triggerall = var(25)=0
trigger1 = command = "Chain4" && (stateno = 1010) && (time = [9,18])
trigger2 = command = "Chain4" && (stateno = [1100,1111]) && (movecontact)

;chain X
[State -1, chain punch1]
type = ChangeState
value = 246
triggerall = var(25) =0
triggerall = command = "Chainx"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = movecontact
trigger2= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger3 = movecontact
trigger3= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245
trigger4 = movecontact
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400

;chain b
[State -1, chain punch2]
type = ChangeState
value = 247
triggerall = var(25) =0
triggerall = command = "Chaina"
trigger1 = statetype = S
trigger1 = ctrl
trigger2= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger3= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno= 246 || stateno=220

;shadow warp front
[State -1, shadow warp F]
type = ChangeState
value = 6700
triggerall = var(25)=0
triggerall = command = "shadowb"
trigger1 = statetype = S
trigger1 = ctrl
trigger2= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger3= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno= 246 || stateno=247 || stateno=220

;Snow Action
[State -1, Snow Action]
type = ChangeState
triggerall = var(25)=0
value = 6750
triggerall = command = "SnowA" || command = "SnowB" ||command ="SnowC"
trigger1 = statetype = S
trigger1 = ctrl
trigger2= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger3= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245
trigger4 = stateno =410 || stateno =411  || stateno =430 || stateno =440 || stateno =400
trigger5= stateno= 246 || stateno=247



;lightning fall
[State -1, lightning fall]
type = ChangeState
value = 6300
triggerall = p2statetype = L ||(p2stateno = 5071 || p2stateno = 5110 || p2stateno = 5100 || p2stateno = 5101)
triggerall = command = "crystal fall1" || command = "crystal fall2"
trigger1 = statetype = S
trigger1 = ctrl
trigger2= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger3= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245
trigger4= stateno=400 || stateno=410 ||  stateno=430  ||  stateno=440
trigger5= stateno= 246 || stateno=247  || stateno=220

;---------------------------------------------------------------------------
;Power Build
[State -1, Power Up]
type = ChangeState
value = 750
triggerall = var(25)=0
triggerall = command = "powerup"
triggerall = power < 9000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = stateno !=751
trigger2 =  stateno =411

;change to asura
[State -1, change to asura]
type = ChangeState
value = ifelse(var(25)=0,1125,1126)
triggerall = command = "change"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno =201 || stateno =231 || stateno =241 || stateno =211
trigger3 = stateno = 401 || stateno = 431 || stateno =441 || stateno =411
trigger4= stateno=200 || stateno=205 ||  stateno=210  ||  stateno=215
trigger5= stateno=230 || stateno=235 ||  stateno=240  ||  stateno=245
trigger6= stateno=400 || stateno=410 ||  stateno=430  ||  stateno=440
trigger7= stateno= 246 || stateno=247  || stateno=220

;repel
[State -1, repel]
type = ChangeState
value = 1130
triggerall = var(25)=0
trigger1 = command = "repel"
trigger1 = statetype = S
trigger1 = ctrl

;cancel
[State -1, cancel]
type = ChangeState
value = 1140
triggerall = pos y =0
triggerall = power >= 500
triggerall = command = "dodge"
trigger1 = stateno = [200,440]
;---------------------------------------------------------------------------
;Throws
[State -1, Throw1]
type = ChangeState
value = 810
triggerall = var(25)=0
triggerall = P2bodydist X <= 5
triggerall = p2movetype != H
triggerall = (p2statetype = S) || (p2statetype = C)
triggerall = statetype = S
triggerall = p2stateno != [5000,5120]
triggerall = ctrl
trigger1 = stateno != 100
trigger1 = (command = "b") && (command = "holdfwd")

[State -1, Throw2]
type = ChangeState
value = 800
triggerall = var(25)=0
triggerall = P2bodydist X <= 5
triggerall = p2movetype != H
triggerall = (p2statetype = S) || (p2statetype = C)
triggerall = statetype = S
triggerall = p2stateno != [5000,5120]
triggerall = ctrl
trigger1 = stateno != 100
trigger1 = (command = "y") && (command = "holdfwd")
;---------------------------------------------------------------------------
;Rolls
[State -1, Roll back]
type = ChangeState
value = 701
triggerall = var(25)=0
trigger1 =   command = "dodge2" && command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = command =  "dodge2"  && command = "holdback"
trigger2 = stateno = 150 || stateno = 152
trigger2 = power >= 1000
trigger3 = command = "dodge"   && command = "holdback"
trigger3 = stateno = 1131  && (time >= 14)


;前緊急回避
[State -1, dodge back]
type = ChangeState
value = 700
triggerall = var(25)=0
triggerall = command = "dodge2"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = power >= 1000
trigger2 = stateno = [150,151]


;前緊急回避
[State -1, dodge fwd]
type = ChangeState
value = 700
triggerall = var(25)=0
triggerall = command = "hold_A"
triggerall = command = "hold_B"
triggerall = command = "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = power >= 1000
trigger2 = stateno = [120,155]

;blow off
[State -1, blow off]
type = ChangeState
value = 250
triggerall = var(25)=0
triggerall = command = "c" && command != "holddown"
triggerall = statetype = S
trigger1 = ctrl

;blow off
[State -1, blow off]
type = ChangeState
value = 250
triggerall = var(25)=0
triggerall = command = "c" && command != "holddown"
triggerall = statetype = S
triggerall = power >= 1000
trigger1 =  stateno = [120,155]


;blow off
[State -1, blow off (asura)]
type = ChangeState
value = 251
triggerall = var(25) !=0
triggerall = command = "c" && command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger2 =  stateno = [120,155]
trigger2 = power >= 1000

;blow off
[State -1, blow off]
type = ChangeState
value = 251
triggerall = var(25)!=0
triggerall = command = "c" && command != "holddown"
triggerall = statetype = S
triggerall = power >= 1000
trigger1 =  stateno = [120,155]

;Air Knockdown
[State -1,air CD]
type = ChangeState
value = 650
triggerall = var(25)=0
triggerall = command = "c"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno =610 || stateno =630 || stateno =640
trigger3 = stateno = 110 || stateno = 111 || stateno =115 || stateno = 116

;Standing C-A
[State -1, S-C-A]
type = ChangeState
value = 220
triggerall = stateno != 220
triggerall = command = "a" &&  command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = hitdefattr = SC,NA
trigger2 = movecontact

[State -1,air dash forward];空中前ダッシュ
type = ChangeState
value = 110
triggerall = var(25)=0
triggerall = command = "FF"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno =610 || stateno =630 || stateno =640
;trigger2 = movecontact
;trigger1 = pos Y  <= -50 && Vel Y < 0
;trigger2 = pos Y  <= -10 && Vel Y >= 0

[State -1,air dash backward];空中後ダッシュ
type = ChangeState
value = 115
triggerall = var(25)=0
triggerall = command = "BB"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno =610 || stateno =630 || stateno =640
;trigger2 = movecontact
;--------------------soco leve
;Standing X
[State -1, soco leve]
type = ChangeState
value = ifelse(p2bodydist X < 10,205,200)
triggerall = var(25) =0
triggerall = command = "x" && command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (time = [10,15])
trigger3 = (stateno = 205) && (time = [8,12])
trigger4 = (stateno = 400) && (time = [7,11])

;Standing X
[State -1, soco leve (asura)]
type = ChangeState
value = 201
triggerall = var(25) !=0
triggerall = command = "x" && command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 231
trigger2 = movecontact
trigger3 = stateno = 611 && pos y =0
trigger3 = movecontact
;--------------------soco forte
;Standing Y
[State -1, soco forte]
type = ChangeState
triggerall = var(25) =0
value = ifelse(p2bodydist X < 15,215,210)
triggerall = command = "y" && command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;Standing Y
[State -1, soco forte (asura)]
type = ChangeState
value = 211
triggerall = var(25) !=0
triggerall = command = "y" && command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno =201 || stateno =231
trigger2 = movecontact
;--------------------chute leve
;Standing A
[State -1, chute leve]
type = ChangeState
triggerall = var(25) =0
value = ifelse(p2bodydist X < 20,235,230)
triggerall = command = "a" && command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 205) && (time = [8,12])
trigger3 = (stateno = 235) && (time = [8,11])
trigger4 = (stateno = 430) && (time = [8,11])

;Standing A
[State -1, chute leve (asura)]
type = ChangeState
triggerall = var(25) !=0
value = 231
triggerall = command = "a" && command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 201
trigger2 = movecontact
;-------------chute forte
;Standing B
[State -1, chute forte]
type = ChangeState
triggerall = var(25) =0
value = ifelse(p2bodydist X < 40,245,240)
triggerall = command = "b" && command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;Standing B
[State -1, chute forte (asura)]
type = ChangeState
triggerall = var(25) !=0
value = 241
triggerall = command = "b" && command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno =201 || stateno =211 ||  stateno =231
trigger2 = movecontact
;-----------------------------------------------------
;start
[State -1, provoca軋o]
type = ChangeState
value = 6230
triggerall = command = "start"
trigger1=  NumHelper(6234) <= 2
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (time = [10,15])
trigger3 = (stateno = 205) && (time = [8,12])
trigger4 = (stateno = 400) && (time = [7,11])
;---------------soco leve abaixado
;Crouching X
[State -1, soco leve abaixado]
type = ChangeState
value = 400
triggerall = var(25) =0
triggerall = command = "x" && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) && (time = [7,11])
trigger3 = (stateno = 200) && (time = [10,15])
trigger4 = (stateno = 205) && (time = [8,12])
trigger5 = (stateno = 430) && (time = [8,11])

;Crouching X
[State -1, soco leve abaixado (asura)]
type = ChangeState
value = 401
triggerall = var(25) !=0
triggerall = command = "x" && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;Crouching Y
[State -1, soco forte abaixado]
type = ChangeState
value = 410
triggerall = var(25) =0
triggerall = command = "y" && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno =400

;Crouching Y
[State -1,soco forte abaixado (asura)]
type = ChangeState
value = 412
triggerall = var(25) !=0
triggerall = command = "y" && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno =401 || stateno =431

;Crouching A
[State -1, chute leve abaixado]
type = ChangeState
value = 430
triggerall = var(25) =0
triggerall = command = "a" && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 205) && (time = [8,12])
trigger3 = (stateno = 430) && (time = [8,11])
trigger4= stateno=1001
trigger4 =pos y =0

;Crouching A
[State -1, chute leve abaixado (asura)]
type = ChangeState
value = 431
triggerall = var(25) !=0
triggerall = command = "a" && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = movecontact
trigger2 =  stateno =401


;Crouching B
[State -1, chute forte abaixado]
type = ChangeState
value = 440
triggerall = var(25) =0
triggerall = command = "b" && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;Crouching B
[State -1, chute forte abaixado (asura)]
type = ChangeState
value = 441
triggerall = var(25) !=0
triggerall = command = "b" && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno =401 || stateno =412 || stateno =431


;Jumping X
[State -1, soco leve no ar]
type = ChangeState
value = 600
triggerall = var(25) =0
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 110 || stateno = 111 || stateno =115 || stateno = 116
trigger2 = movecontact

;Jumping X
[State -1, soco leve no ar (asura)]
type = ChangeState
value = 601
triggerall = var(25) !=0
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl

;Jumping Y
[State -1,soco forte no ar]
type = ChangeState
value = 610
triggerall = var(25) =0
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 =stateno = 630 || stateno = 600
trigger2 =movecontact
trigger3 = stateno = 110 || stateno = 111 || stateno =115 || stateno = 116

[State -1, soco forte no ar (asura)]
type = ChangeState
value = 611
triggerall = var(25) !=0
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl

;Jumping A
[State -1, chute leve no ar]
type = ChangeState
value = 630
triggerall = var(25) =0
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 =stateno = 600
trigger2 =movecontact
trigger3 = stateno = 110 || stateno = 111 || stateno =115 || stateno = 116


;Jumping A
[State -1, chute leve no ar (asura)]
type = ChangeState
value = 631
triggerall = var(25) !=0
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

;Jumping B
[State -1, chute forte no ar ]
type = ChangeState
value = 640
triggerall = var(25) =0
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 =stateno = 610  || stateno = 600 || stateno = 630
trigger2 =movecontact
trigger3 = stateno = 110 || stateno = 111 || stateno =115 || stateno = 116

[State -1, chute forte no ar (asura)]
type = ChangeState
value = 641
triggerall = var(25) !=0
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
;---------------------------------------------------------------------------
;Run Fwd
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl
;---------------------------------------------------------------------------
;Run Back
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = ifelse(var(25)=0,105,104)
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, VarSet]
type = VarSet
trigger1 = var(25)!=0
trigger1 =movetype = H
v = 25   ;fv = 10
value = 0

;-----------------------------------------
;---------|Universe power|---------------
[State 0, VarAdd]
type = VarAdd
trigger1 =var(48)>=1
trigger1 = timemod=10,0
v = 48    ;fv =
value = -3

[State 500,9]
type = PalFx
trigger1 = var(48)>=1
trigger1 = timemod=20,0
time = 10
add = 50,50,50
