; The CMD file.
;BUGS BUNNY IN RABBIT RAMPAGE________________Snes_______
;_____________________________Storm0062_________________
;_______________________________________________________
;
;-| Button Remapping |-----------------------------------------------------
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;-| Default Values |-------------------------------------------------------
[Defaults]
command.time = 30

command.buffer.time = 1

;-| CPU Commands |----------------------------------------------------------
[command]
name = "CPU1"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU11"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU12"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU2"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU13"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU14"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU3"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU15"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU16"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU4"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU17"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU18"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU5"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU19"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU20"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU6"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU21"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU22"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU7"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU23"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU24"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU8"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU25"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU26"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU9"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU27"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU28"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU10"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU29"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

[command]
name = "CPU30"
command = a+b+c+x+y+z+a+b+c+x+y+z
time = -1

;-| Super Motions |--------------------------------------------------------
[Command]
name = "HyperSpin 1"
command = a+b

[Command]
name = "HyperSpin 2"
command = x+y

[Command]
name = "Invasion"
command = y+b

;-| Special Motions |------------------------------------------------------
[Command]
name = "dog"
command = x+a

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

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

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

[Command]
name = "recovery"
command = y+z
time = 1

[Command]
name = "recovery"
command = x+z
time = 1

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

[Command]
name = "recovery"
command = b+c
time = 1

[Command]
name = "recovery"
command = a+c
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "back_x"
command = /$B,x
time = 1

[Command]
name = "back_y"
command = /$B,y
time = 1

[Command]
name = "back_z"
command = /$B,z
time = 1

[Command]
name = "down_x"
command = /$D,x
time = 1

[Command]
name = "down_y"
command = /$D,y
time = 1

[Command]
name = "down_z"
command = /$D,z
time = 1

[Command]
name = "fwd_x"
command = /$F,x
time = 1

[Command]
name = "fwd_y"
command = /$F,y
time = 1

[Command]
name = "fwd_z"
command = /$F,z
time = 1

[Command]
name = "up_x"
command = /$U,x
time = 1

[Command]
name = "up_y"
command = /$U,y
time = 1

[Command]
name = "up_z"
command = /$U,z
time = 1

[Command]
name = "back_a"
command = /$B,a
time = 1

[Command]
name = "back_b"
command = /$B,b
time = 1

[Command]
name = "back_c"
command = /$B,c
time = 1

[Command]
name = "down_a"
command = /$D,a
time = 1

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

[Command]
name = "down_c"
command = /$D,c
time = 1

[Command]
name = "fwd_a"
command = /$F,a
time = 1

[Command]
name = "fwd_b"
command = /$F,b
time = 1

[Command]
name = "fwd_c"
command = /$F,c
time = 1

[Command]
name = "up_a"
command = /$U,a
time = 1

[Command]
name = "up_b"
command = /$U,b
time = 1

[Command]
name = "up_c"
command = /$U,c
time = 1

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

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

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

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

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

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

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

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

[Command]
name = "downfwd"
command = $DF
time = 1

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

[Command]
name = "downback"
command = $DB
time = 1

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

[Command]
name = "upback"
command = $UB
time = 1

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

[Command]
name = "upfwd"
command = $UF
time = 1

;-| Hold Button |--------------------------------------------------------------
[Command]
name = "hold_x"
command = /x
time = 1

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

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

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

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

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

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

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

[Command]
name = "holddownfwd"
command = /$DF
time = 1

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

[Command]
name = "holddownback"
command = /$DB
time = 1

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

[Command]
name = "holdupback"
command = /$UB
time = 1

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

[Command]
name = "holdupfwd"
command = /$UF
time = 1

;---------------------------------------------------------------------------
; 2. State entry
; --------------
[Statedef -1]

;===========================================================================
;---------------------------------------------------------------------------
[State -1, HyperSpin 1]
type = ChangeState
value = 3000
triggerall = var(20) = 0
triggerall = command = "HyperSpin 1"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != 3000
trigger2 = movecontact
;---------------------------------------------------------------------------
[State -1, HyperSpin 2]
type = ChangeState
value = 3001
triggerall = var(20) = 0
triggerall = command = "HyperSpin 2"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != 3001
trigger2 = movecontact

;---------------------------------------------------------------------------
[State -1, Invasion]
type = ChangeState
value = 3100
triggerall = var(20) = 0
triggerall = command = "Invasion"
triggerall = power >= 3000
triggerall = Numhelper(3100) <= 0
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;dog
[State -1, dog ]
type = ChangeState
value = 1320
triggerall = var(20) = 0
;triggerall = power >= 100
triggerall = command = "dog"
triggerall = numhelper(1321) = 0
;trigger1 = statetype != A
;trigger1 = var(1)
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 = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

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

;---------------------------------------------------------------------------
; Coup de pied
[State -1, coup de pied]
type = ChangeState
value = 200
triggerall = var(20) = 0
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; spin
[State -1, Spin]
type = ChangeState
value = 210
triggerall = var(20) = 0
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;tortue
[State -1, tortue]
type = ChangeState
value = 1400
triggerall = var(20) = 0
triggerall = command = "z"
triggerall = Numhelper(1400) <= 0
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; dynamite haut
[State -1, dynamite haut]
type = ChangeState
value = 230
triggerall = var(20) = 0
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = !NumProjID(230)
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; coup de tarte haut
[State -1, coup de tarte haut]
type = ChangeState
value = 240
triggerall = var(20) = 0
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; Jet de tarte haut
[State -1, Jet de tarte haut]
type = ChangeState
value = 250
triggerall = var(20) = 0
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = !NumProjID(250)
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; coup de poing bas 1
[State -1, coup de poing bas 1]
type = ChangeState
value = 400
triggerall = var(20) = 0
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
; coup de poing bas 2
[State -1, coup de poing bas 2]
type = ChangeState
value = 410
triggerall = var(20) = 0
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
; tortue 2
[State -1, tortue2]
type = ChangeState
value = 1500
triggerall = var(20) = 0
triggerall = command = "z"
triggerall = command = "holddown"
triggerall = Numhelper(1500) <= 0
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
; dynamite bas
[State -1, dynamite bas]
type = ChangeState
value = 430
triggerall = var(20) = 0
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = !NumProjID(430)
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
; coup de tarte bas
[State -1, coup de tarte bas]
type = ChangeState
value = 440
triggerall = var(20) = 0
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
; Jet de tarte bas
[State -1, Jet de tarte bas]
type = ChangeState
value = 450
triggerall = var(20) = 0
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = !NumProjID(450)
trigger1 = statetype = C
trigger1 = ctrl

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Invasion
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
triggerall = power = 3000
triggerall = Numhelper(3100) <= 0
trigger1 = StateType = S && ctrl && random <= 50
trigger1 = P2StateType != L && P2Life > 0 ;&& P2BodyDist x <= 40
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != 3100
trigger2 = stateno != 3000
trigger2 = movecontact
value = 3100
;Hyperspin
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
triggerall = power >= 1000
trigger1 = StateType = S && ctrl && random <= 50
trigger1 = P2StateType != L && P2Life > 0 && P2BodyDist x <= 30
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != 3000
trigger2 = stateno != 3100
trigger2 = movecontact
value = 3000
; Dog
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
triggerall = numhelper(1321) = 0
trigger1 = StateType = S && ctrl && random <= 50
trigger1 = P2StateType != L && P2Life > 0 ;&& P2BodyDist x <= 30
value = 1320
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Coup de pied
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
trigger1 = StateType = S && ctrl && random <= 50
trigger1 = P2StateType != L && P2Life > 0 && P2BodyDist x <= 30
value = 200
; Spin
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
trigger1 = StateType = S && ctrl && random <= 50
trigger1 = P2StateType != L && P2Life > 0 && P2BodyDist x <= 30
value = 210
; Tortue1
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
triggerall = Numhelper(1400) <= 0
trigger1 = StateType = S && ctrl && random <= 50
trigger1 = P2StateType != L && P2Life > 0 && P2BodyDist x >= 100
value = 1400
; Dynamite haut
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
triggerall = StateType != A && ctrl && NumProj = 0
triggerall = P2StateType != L && P2Life > 0
triggerall = !NumProjID(230)
trigger1 = life >= 300 && random <= 100
trigger2 = life < 300 && random <= 300
value = 230
; coup de tarte
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
trigger1 = StateType = S && ctrl && random <= 50
trigger1 = P2StateType != L && P2Life > 0 && P2BodyDist x <= 30
value = 240
; jet tarte haut
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
triggerall = StateType != A && ctrl && NumProj = 0
triggerall = P2StateType != L && P2Life > 0
triggerall = !NumProjID(250)
trigger1 = life >= 300 && random <= 100
trigger2 = life < 300 && random <= 300
value = 250
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; coup de poing 1
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
trigger1 = StateType = C && ctrl && random <= 50
trigger1 = P2StateType != L && P2Life > 0 && P2BodyDist x <= 30
value = 400
; coup de poing 2
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
trigger1 = StateType = C && ctrl && random <= 50
trigger1 = P2StateType != L && P2Life > 0 && P2BodyDist x <= 30
value = 410
; tortue 2
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
triggerall = Numhelper(1500) <= 0
trigger1 = StateType = C && ctrl && random <= 50
trigger1 = P2StateType != L && P2Life > 0 && P2BodyDist x >= 100
value = 1500
; dynamite bas
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
triggerall = StateType != A && ctrl && NumProj = 0
triggerall = P2StateType != L && P2Life > 0
triggerall = !NumProjID(430)
trigger1 = life >= 300 && random <= 100
trigger2 = life < 300 && random <= 300
value = 430
; coup tarte bas
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
trigger1 = StateType = C && ctrl && random <= 50
trigger1 = P2StateType != L && P2Life > 0 && P2BodyDist x <= 30
value = 440
; jet tarte haut
;---------------------
[state -1]
type = ChangeState
triggerall = var(20) = 1
triggerall = StateType != A && ctrl && NumProj = 0
triggerall = P2StateType != L && P2Life > 0
triggerall = !NumProjID(450)
trigger1 = life >= 300 && random <= 100
trigger2 = life < 300 && random <= 300
value = 450

;---------------------------------------------------------------------------
; CPU Commands
[State -1]
type = VarSet
trigger1 = command = "CPU1"
trigger2 = command = "CPU2"
trigger3 = command = "CPU3"
trigger4 = command = "CPU4"
trigger5 = command = "CPU5"
trigger6 = command = "CPU6"
trigger7 = command = "CPU7"
trigger8 = command = "CPU8"
trigger9 = command = "CPU9"
trigger10 = command = "CPU10"
trigger11 = command = "CPU11"
trigger12 = command = "CPU12"
trigger13 = command = "CPU13"
trigger14 = command = "CPU14"
trigger15 = command = "CPU15"
trigger16 = command = "CPU16"
trigger17 = command = "CPU17"
trigger18 = command = "CPU18"
trigger19 = command = "CPU19"
trigger20 = command = "CPU20"
trigger21 = command = "CPU21"
trigger22 = command = "CPU22"
trigger23 = command = "CPU23"
trigger24 = command = "CPU24"
trigger25 = command = "CPU25"
trigger26 = command = "CPU26"
trigger27 = command = "CPU27"
trigger28 = command = "CPU28"
trigger29 = command = "CPU29"
trigger30 = command = "CPU30"
v = 20
value = 1

