; -| CPU Commands |-------------------------------------------------------------

[Command]
name = "AI1"
command = a, a, a, a, b
time = 1

[Command]
name = "AI2"
command = b, b, b, a, b
time = 1

[Command]
name = "AI3"
command = c, c, c, a, b
time = 1

[Command]
name = "AI4"
command = x, x, x, a, b
time = 1

[Command]
name = "AI5"
command = y, y, y, a, b
time = 1

[Command]
name = "AI6"
command = z, z, z, a, b
time = 1

[Command]
name = "AI7"
command = a, b, c, a, b
time = 1

[Command]
name = "AI8"
command = a, c, b, a, b
time = 1

[Command]
name = "AI9"
command = b, a, c, a, b
time = 1

[Command]
name = "AI10"
command = b, c, a, a, b
time = 1

[Command]
name = "AI11"
command = c, b, a, a, b
time = 1

[Command]
name = "AI12"
command = c, a, b, a, b
time = 1

[Command]
name = "AI13"
command = x, y, z, a, b
time = 1

[Command]
name = "AI14"
command = x, z, y, a, b
time = 1

[Command]
name = "AI15"
command = y, z, x, a, b
time = 1

[Command]
name = "AI16"
command = y, x, z, a, b
time = 1

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

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

[Command]
name = "AI19"
command = a, b, a, a, b
time = 1

[Command]
name = "AI20"
command = a, c, a, a, b
time = 1

[Command]
name = "AI21"
command = b, a, b, a, b
time = 1

[Command]
name = "AI22"
command = b, c, b, a, b
time = 1

[Command]
name = "AI23"
command = c, a, c, a, b
time = 1

[Command]
name = "AI24"
command = c, b, c, a, b
time = 1

[Command]
name = "AI25"
command = x, y, x, a, b
time = 1

[Command]
name = "AI26"
command = x, z, x, a, b
time = 1

[Command]
name = "AI27"
command = y, x, y, a, b
time = 1

[Command]
name = "AI28"
command = y, z, y, a, b
time = 1

[Command]
name = "AI29"
command = z, x, z, a, b
time = 1

[Command]
name = "AI30"
command = z, y, z, a, b
time = 1

;fim da ai

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

; Super se鈬o 
[Command]
name = "detona"
command = ~D, DF, F, D, DF, F, x
time = 30

; Super se鈬o 
[Command]
name = "detona"
command = ~D, DF, F, D, DF, F, y
time = 30

; Lindinha Tornado 
[Command]
name = "tuf縊"
command = ~D, DB, B, D, DB, B, x
time = 30

; Lindinha Tornado 
[Command]
name = "tuf縊"
command = ~D, DB, B, D, DB, B, y
time = 30

; Maximun Lindinha
[Command]
name = "maximun"
command = ~D, DF, F, a+b
time = 30

; Mega Heat Beam
[Command]
name = "hbeam"
command = ~D, DF, F, y+x
time = 30

; Super Strike
[Command]
name = "MC_Strike"
command = x+b
time = 30

;Super cometa
[Command]
name = "cometa"
command = ~D, B, b
time = 25


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

[Command]
name = "Helper1"
command = y+b
time = 30

[Command]
name = "Helper2"
command = x+a
time = 30

[Command]
name = "Helper3"
command = a+y ;z+c
time = 30

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

[Command]
name = "upperF"
command = ~F, D, DF, b;y
time = 30

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

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

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

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

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

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

[Command]
name = "fire"
command = ~45$B, F, y
time = 90

[Command]
name = "energy"
command = ~45$B, F, x
time = 90

[Command]
name = "Gelo"
command = ~D, F, b ;c    
;time = 25

[Command]
name = "grito"
command = ~D, F, a ;c    
;time = 25

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

;-| 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 = a+b
time = 1

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

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

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "fwd_a"
command = /F, a
time = 1

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

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

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

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

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

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

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

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

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

[Command]
name = "holdfwd1"
command = ~F
time = 1

[Command]
name = "holdback1"
command = ~B
time = 1

;-| Hold Button |--------------------------------------------------------------
[Command]
name = "hold_yb"
command = /y+b
time = 30

[Command]
name = "hold_xa"
command = /x+a
time = 30

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

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

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

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

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

;-| Dir |--------------------------------------------------------------
[Command]
name = "fwd"
command = F
time = 1

[Command]
name = "back"
command = B
time = 1

[Command]
name = "up" 
command = U
time = 1

[Command]
name = "down"
command = D
time = 1

;energizando a lindinha :-)
[Command]
name = "energizando"
command = /c
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]

;===========================================================================
; Liga a Intelig麩cia Artificial
[State -1, Ativa AI]
type = VarSet
trigger1  = command = "AI1"
trigger2  = command = "AI2"
trigger3  = command = "AI3"
trigger4  = command = "AI4"
trigger5  = command = "AI5"
trigger6  = command = "AI6"
trigger7  = command = "AI7"
trigger8  = command = "AI8"
trigger9  = command = "AI9"
trigger10 = command = "AI10"
trigger11 = command = "AI11"
trigger12 = command = "AI12"
trigger13 = command = "AI13"
trigger14 = command = "AI14"
trigger15 = command = "AI15"
trigger16 = command = "AI16"
trigger17 = command = "AI17"
trigger18 = command = "AI18"
trigger19 = command = "AI19"
trigger20 = command = "AI20"
trigger21 = command = "AI21"
trigger22 = command = "AI22"
trigger23 = command = "AI23"
trigger24 = command = "AI24"
trigger25 = command = "AI25"
trigger26 = command = "AI26"
trigger27 = command = "AI27"
trigger28 = command = "AI28"
trigger29 = command = "AI29"
trigger30 = command = "AI30"
v = 20  
value = 1

;===========================================================================
; Detona鈬o 
[State -1, HyperMove]
type = ChangeState
value = 3000
triggerall = (command="detona" && power>=1000) 
trigger1 = ctrl = 1
trigger1 = statetype = S

;===========================================================================
; Maximun Lindinha 
[State -1, HyperMove]
type = ChangeState
value = 3100
triggerall = (command="maximun" && power>=1000) 
triggerall = ctrl = 1
trigger1 = statetype = S

;===========================================================================
; Maximun Lindinha 
[State -1, HyperMove]
type = ChangeState
value = 3099
triggerall = (command="maximun" && power>=1000) 
triggerall = ctrl = 1
trigger1 = statetype = A

;===========================================================================
; Tornado 
[State -1, HyperMove]
type = ChangeState
value = 3010
triggerall = (command="tuf縊" && power>=1000) 
trigger1 = ctrl = 1
trigger1 = statetype = S

;===========================================================================
; mega heat Beam 
[State -1, HyperMove]
type = ChangeState
value = 3200
triggerall = (command="hbeam" && power>=1000) 
trigger1 = ctrl = 1
trigger1 = statetype = S

;===========================================================================
; Macaco Louco ( Super Strike )
[State -1]
type = ChangeState
value = 3020
triggerall = power>=1000
triggerall = command = "MC_Strike"
triggerall = P2Name != "Macaco_Louco"
triggerall = P4Name != "Macaco_Louco"
triggerall = NumHelper(50000) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1

;------------------------------------------------------------
;super cometa
[State -1]
type = ChangeState
value = 16000
triggerall = Var(1) = 0
triggerall = command != "holddown"
triggerall = power >= 5000 
triggerall = statetype = S
triggerall = ctrl = 1
trigger1 = command = "cometa"

;Lindinha cometa
[State -1]
type = ChangeState
value = 16000
triggerall = Var(1) = 1
triggerall = Power >= 5000 
triggerall = P2BodyDist Y >= -100
triggerall = P2MoveType != H
trigger1 = statetype = S
trigger1 = ctrl = 1

;-------------------------------------------------------------
;super cometa - pulando
[State -1]
type = ChangeState
value = 16000
triggerall = Var(1) = 0
triggerall = command != "holddown"
triggerall = power >= 5000 
triggerall = statetype = A
triggerall = ctrl = 1
trigger1 = command = "cometa"
trigger2 = stateno = 1900

;Lindinha cometa - pulando
[State -1]
type = ChangeState
value = 16000
triggerall = Var(1) = 1
triggerall = Power >= 5000 
triggerall = P2BodyDist Y >= -100
triggerall = P2MoveType != H
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 1900

;---------------------------------------------------------------------------
;Run Fwd
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 101
triggerall = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Run Fwd ( no ar )
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 103
triggerall = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 1900

;---------------------------------------------------------------------------
;Run Back
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; Voar 
[State -1]
type = ChangeState
value = 1800
trigger1 = statetype = S
trigger1 = ctrl = 1
triggerall = command = "fly"

;---------------------------------------------------------------------------
; Voar ( no pulo )
[State -1]
type = ChangeState
value = 1900
trigger1 = statetype = A
trigger1 = ctrl = 1
triggerall = command = "fly"

;--------------------------------------------------------------------------
;Descer do v
[State -1]								
type = ChangeState
value = 50
trigger1 = ctrl = 1
trigger1 = statetype = A		
triggerall = command = "prabaixo"
trigger2 = stateno = 1900
	
;---------------------------------------------------------------------------
;Super upper Soco
[State -1, Super upper Soco]
type = ChangeState
value = 1004
triggerall = command = "upper"
trigger1 = statetype = S
trigger1 = ctrl 

;---------------------------------------------------------------------------
;Super upper Soco
[State -1, Super upper Soco]
type = ChangeState
value = 1006
triggerall = command = "upperF"
trigger1 = statetype = S
trigger1 = ctrl 

;---------------------------------------------------------------------------
; Florzinha Helper
[State -1]
type = ChangeState
value = 2000
triggerall = power>=700
triggerall = command = "Helper1"
triggerall = P2Name != "Florzinha"
triggerall = P4Name != "Florzinha"
triggerall = NumHelper(20000) = 0
triggerall = NumHelper(20001) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 1900

;---------------------------------------------------------------------------
; Docinho Helper
[State -1]
type = ChangeState
value = 2002
triggerall = power>=700
triggerall = command = "Helper2"
triggerall = P2Name != "Docinho"
triggerall = P4Name != "Docinho"
triggerall = NumHelper(20001) = 0
triggerall = NumHelper(20000) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 1900

;---------------------------------------------------------------------------
; Cachorro Helper
[State -1]
type = ChangeState
value = 12002
triggerall = power>=700
triggerall = command = "Helper3"
triggerall = P2Name != "cachorro"
triggerall = P4Name != "cachorro"
triggerall = NumHelper(20001) = 0
triggerall = NumHelper(20000) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 1900

;---------------------------------------------------------------------------
; Raio de Calor
[State -1, Raio]
type = ChangeState
value = 1010
triggerall = command = "Raiolaser"
triggerall = Numproj = 0
trigger1 = statetype != A
trigger1 = ctrl 

;---------------------------------------------------------------------------
; Raio de Calor
[State -1, Raio]
type = ChangeState
value = 1010
triggerall = command = "RaiolaserF"
triggerall = Numproj = 0
trigger1 = statetype != A
trigger1 = ctrl 

;--------------------------------------------------------------------------- 
; Raio de Calor (aereo)
[State -1, Raio]
type = ChangeState
value = 1011
triggerall = command = "testa"
triggerall = Numproj = 0
trigger1 = statetype != S
trigger1 = ctrl 

;--------------------------------------------------------------------------- 
; Raio de Calor (aereo2)
[State -1, Raio]
type = ChangeState
value = 1012
triggerall = command = "testa2"
triggerall = Numproj = 0
trigger1 = statetype != S
trigger1 = ctrl 

;--------------------------------------------------------------------------- 
; Raio de Calor (voando  - x)
[State -1, Raio]
type = ChangeState
value = 1013
triggerall = command = "testa"
triggerall = Numproj = 0
trigger1 = statetype != S
trigger1 = ctrl 
trigger2 = stateno = 1900

;--------------------------------------------------------------------------- 
; Raio de Calor (voando - y)
[State -1, Raio]
type = ChangeState
value = 1014
triggerall = command = "testa2"
triggerall = Numproj = 0
trigger1 = statetype != S
trigger1 = ctrl 
trigger2 = stateno = 1900

;---------------------------------------------------------------------------
; bola de fogo
[State -1, fogo]
type = ChangeState
value = 1015
triggerall = command = "fire"
triggerall = Numproj = 0
trigger1 = statetype != A
trigger1 = ctrl 
trigger2 = stateno = 1900

;---------------------------------------------------------------------------
; bola de energia
[State -1, energia]
type = ChangeState
value = 15200
triggerall = command = "energy"
triggerall = Numproj = 0
trigger1 = statetype != A
trigger1 = ctrl 
trigger2 = stateno = 1900

;-------------------------
;gelo
[State -1,25]
type = ChangeState
value = 720
triggerall = p2stateno != 223
triggerall = p2stateno != 722
triggerall = p2stateno != 723
triggerall = command = "Gelo"
triggerall = ctrl = 1
trigger1 = statetype = S

;-------------------------------
;super grito
[State -1,25]
type = ChangeState
value = 820
triggerall = (command="grito" && power>=3000)
triggerall = p2stateno != 223
triggerall = p2stateno != 822
triggerall = ctrl = 1
trigger1 = statetype = S

;super grito - ar
[State -1,25]
type = ChangeState
value = 910
triggerall = (command="grito" && power>=3000)
triggerall = p2stateno != 223
triggerall = p2stateno != 822
triggerall = ctrl = 1
trigger1 = statetype = A

;-------------------------------
;my name is bond
[State -1,25]
type = ChangeState
value = 19042
triggerall = command = "james_bond"
triggerall = ctrl = 1
trigger1 = statetype = S
trigger2 = stateno = 1900

;---------------------------------------------------------------------------
;Super Soco
[State -1, Super Soco]
type = ChangeState
value = 1000
triggerall = command = "Dash"
trigger1 = statetype != A
trigger1 = ctrl 

;---------------------------------------------------------------------------
;Super Soco
[State -1, Super Soco]
type = ChangeState
value = 1002
triggerall = command = "DashF"
trigger1 = statetype != A
trigger1 = ctrl 

;---------------------------------------------------------------------------
;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 = time > 7
trigger3 = stateno = 1900

;---------------------------------------------------------------------------
;Stand Strong Punch
;立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6
trigger4 = stateno = 1900

;---------------------------------------------------------------------------
;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) && time > 7
trigger3 = (stateno = 230) && time > 9
trigger4 = stateno = 1900

;---------------------------------------------------------------------------
;Standing Strong Kick
;立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6
trigger4 = stateno = 1900

;---------------------------------------------------------------------------
;Crouching Light Punch
;しゃがみ弱パンチ
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
;Crouching Strong Punch
;しゃがみ強パンチ
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;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 = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;Crouching Strong Kick
;しゃがみ強キック
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = statetime >= 7

;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump Strong Kick
;空中強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact

;-------------------------
;energizandoｭ
[State -1, poweradd]
type = ChangeState
value = 828
triggerall = command = "energizando"
triggerall = power < 5000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 1900

;-------------------------
;Provoca鈬oｭ
[State -1, taunt]
type = ChangeState
value = 195
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = ctrl

;==========================================================================
;THE END.




