;Criado no Z-CharCAD
;www.zcharcad.kit.net
;zmugen@yahoo.com.br
;----------------------------------

;Criado no Z-CharCAD
;www.zcharcad.kit.net
;zmugen@yahoo.com.br
;----------------------------------
;Command File for Saga by TonyADV
;===========================================================================
; Hyper Motions
;===========================================================================
;Final Galaxy (L'ultima opzione Saga)
[Command]
name = "Ultime Phoenix"
command = ~D,DB,B,z+c
time = 35

;===========================================================================
; Super Motions
;===========================================================================
;1000 PUGNI, Golpes tardados
[Command]
name = "1000pugni"
command = ~D, DF, F,b+c
time = 30

;POTERE DEL DRAGONE, muereee
[Command]
name = "dragon power"
command = ~D, DF, F,y+z
time = 30

;ESPLOSIONE GALATICA menor
[Command]
name = "esplosione galactica A"
command = ~D,DB,B,x+y
time = 30

;Otra Dimension
[command]
name = "Dimensione Oscura"
command = ~D, DF, F,a+b
time = 35

;Galasian esplosion
[Command]
name = "Esplosione Galactica" 
command = ~D, DF, F,x+y
time = 35

;attacco disperato
[Command]
name = "desperate attack"
command = ~D, DF, F,z+c
time = 35


;Sacro Gemini (Como a aioros)
[Command]
name = "sacred Gemini"
command = ~D,DB,B,a+b
time = 35

;ComboPunch
[Command]
name = "zanuentsu"
command = ~D,DB,B,b+c
time = 25

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

;[Command]
;name = "TripleKFPalm3"
;command = B,DB,D,DF,F,z
;time = 20

;===========================================================================
; Special Motions
;===========================================================================

[Command]
name = "genmaken"
command = ~D,DB,B,y+z
time = 35

;pugno diabolico fine
[Command]
name = "genmaken final"
command = z
time = 5

;FIREBALL LIGHT
[Command]
name = "fireball"
command = ~D, DF, F, x
time = 25

;FIREBALL MEDIUM
[Command]
name = "fireball2"
command = ~D, DF, F, y
time = 25

;FIREBALL STRONG
[Command]
name = "fireball3"
command = ~D, DF, F, z
time = 25

;AIR FIREBALL A
[Command]
name = "AIRfireball"
command = ~D, DF, F, x
time = 20

;AIR FIREBALL B
[Command]
name = "AIRfireball"
command = ~D, DF, F, y
time = 20

;AIR FIREBALL C
[Command]
name = "AIRfireball2"
command = ~D, DF, F, z
time = 20

; fireball Debil
[Command]
name = "fireball light"
command = y+z 
time = 25

;100 Calci
;[Command]
;name = "100calci"
;command = ~D, DF, F, x
;time = 20

;100 Calci Puņo
[Command]
name = "100calcia"
command = ~D,DB,B, x
time = 20

;100 Calci Patada
[Command]
name = "100calci"
command = ~D,DB,B, a
time = 20

[command]
name = "100calcib"
command = ~D,DB,B,b
time = 20


;ComboPunch
[Command]
name = "ComboPunch"
command = ~D,DB,B,z
time = 25

;Agarre Patada
[Command]
name = "Agarre1"
command = /F,z
time = 1

;===========================================================================
; Double Tap Motions
;===========================================================================
[Command]
name = "FF"
command = F, F
time = 10

 
[Command]
name = "BB"
command = B, B
time = 10

[Command]
name = "block_air"
command = ~$D
time = 15

;THROW
;-| counter |-----------------------------------------------------------------
[Command]
name = "recovery"   ;???? (?????????????????????????????)
command = x+a
time = 1

[Command]
name = "recovery"   ;???? (?????????????????????????????)
command = z
time = 1

[Command]
name = "counter"
command = c+z
time = 1


;--------------
[Command]
name = "recovery"   ;???? (?????????????????????????????)
command = x+a
time = 1

[Command]
name = "recovery"   ;???? (?????????????????????????????)
command = z
time = 1

[Command]
name = "aircounter"
command = c+z
time = 1
;--------------

[Command]
name = "fwd_c"
command = /F,z+a+y+c+s+y
time = 1

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

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

;===========================================================================
; 2/3 button combinations
;===========================================================================
[Command]
name = "recovery"
command = c
time = 1

;CARICA COSMO
[Command]
name = "charge"
command = /x
time = 1

;Settimo Senso
[Command]
name = "recover"
command = a+x
time = 1


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

;SUPER GUARD
[Command]
name = "mega_block"
command = c
time = 50

;===========================================================================
; Directions + Buttons
;===========================================================================
[Command]
name = "down_a"
command = /$D,a
time = 1


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

;===========================================================================
; Singular Buttons
;===========================================================================
[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

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

;===========================================================================
; Hold Direction
;===========================================================================
[Command]
name = "DU"
command = D, U
time = 10


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


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


[Command]
name = "DUF"
command = D, UF
time = 10


[Command]
name = "DUB"
command = D, UB
time = 10


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


[Command]
name = "holdfwd"
command = /$F
time = 1


[Command]
name = "holdback"
command = /$B
time = 1


[Command]
name = "holdup"
command = /$U
time = 1


[Command]
name = "holddown"
command = /$D
time = 1

;-----------------------
;superguard
[Command]
name = "holdback3"
command = /$B   
time = 50

;------------------------
;/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\|State Entry|/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
[Statedef -1]

;===========================================================================
; SPECIAL
;===========================================================================

;---------------------------
;1000 pugni
[State -1, [state -1]
type = changestate
value = 32000
triggerall = var(1) = 0
triggerall = (command = "1000pugni") && (power >= 2000)
trigger1 = ((statetype = S) && (ctrl = 1)) || ((stateno = [200,500]) && (MoveContact)) || ((stateno = [1000,2000]) && (MoveContact))
trigger1 = statetype != A


[State -1, Sacro Gemini] 
type = ChangeState
value = 3080
triggerall = command = "sacred Gemini"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl = 1
;-------------------------
trigger2 = stateno = 200
trigger2 = movecontact = 1
trigger3 = stateno = 210
trigger3 = movecontact = 1
trigger4 = stateno = 201
trigger4 = movecontact = 1
trigger5 = stateno = 230
trigger5 = movecontact = 1
trigger6 = stateno = 240
trigger6 = movecontact = 1
trigger7 = stateno = 1010
trigger7 = movecontact = 1




;-------------------------------
;Potere del Dragone
[State -1, [State -1]
type = ChangeState
value = 40000
triggerall = command = "dragon power"
triggerall = var(1) = 0
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl = 1

;-------------------------------
;genmaken y Genromaoken
[State -1, Genromaoken]
type = ChangeState
value = 4001
triggerall = command = "genmaken"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl = 1


[State -1, Genromaoken final]
type = ChangeState
value = 4004
triggerall = command =  "genmaken final"
triggerall = power >= 1000
triggerall = stateno = 4002
trigger1 = statetype != A
trigger1 = ctrl = 1

;-----------------------------------
;Anohter Dimension
[State -1]
type = ChangeState
value = 3060
triggerall = command = "Dimensione Oscura"
triggerall = power >= 3000
trigger1 = statetype != A
trigger1 = ctrl = 1

;------------------------------
;explosion galactica A
[State -1, [State -1]
type = ChangeState
value = 65000
triggerall = command = "esplosione galactica A"
triggerall = var(1) = 0
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl = 1

;--------------------------------------------
[State -1, explosion de galaxias]
type = ChangeState
value = 3000
triggerall = command = "Esplosione Galactica"
triggerall = var(1) = 0
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl = 0
;-------------------------
trigger2 = stateno = 200
trigger2 = movecontact >= 1
trigger3 = stateno = 210
trigger3 = movecontact >= 1
trigger4 = stateno = 201
trigger4 = movecontact >= 1
trigger5 = stateno = 230
trigger5 = movecontact >= 1
trigger6 = stateno = 240
trigger6 = movecontact >= 1
trigger7 = stateno = 1010
trigger7 = movecontact >= 1

;-
[State -1, Atttacco disperato]
type = ChangeState
value = 4150
triggerall = var(1) = 0
triggerall = command = "desperate attack"
triggerall = power >= 3000
trigger1 = statetype != A
trigger1 = ctrl = 1


[State -1, ComboPunch2b]
type = ChangeState
value = 1210
triggerall = command = "zanuentsu"
trigger1 = statetype != A
trigger1 = ctrl = 1
triggerall = power >= 1000
trigger2 = stateno = 200
trigger2 = movecontact >= 1
trigger3 = stateno = 210
trigger3 = movecontact >= 1
trigger4 = stateno = 201
trigger4 = movecontact >= 1
trigger5 = stateno = 230
trigger5 = movecontact >= 1
trigger6 = stateno = 240
trigger6 = movecontact >= 1
trigger7 = stateno = 1010
trigger7 = movecontact >= 1

;[Ultime Phoenix]
[State -1,Ultime Phoenix]
type = ChangeState
value = 4050
trigger1 = command = "Ultime Phoenix" && power >= 3000 && statetype != A && ctrl
;trigger1 = life <= 499

;Athena's Exclamation
;[State -1]
;type = ChangeState
;value = 9000
;triggerall = command = "Athena_Exclamation"
;triggerall = command != "holddown"
;triggerall = power >= 3000
;triggerall = life <= 300
;trigger1 = statetype = S
;trigger1 = ctrl = 1
;trigger2 = stateno = 405
;trigger2 = movecontact = 1

;Agarre Patada
[State -1]
type = ChangeState
value = 8000
triggerall = Var(50) != 1
trigger1 = statetype = S && ctrl = 1 && p2bodydist X < 10 ;Near P2
trigger1 = (command = "Agarre1") && stateno != 100 && (p2statetype = S || p2statetype = C) && p2movetype != H
 
;ricarica cosmo A
[State -1, [State -1] 
type = ChangeState 
value = 900
triggerall = var(1) = 0
triggerall = statetype = S
triggerall = Power < 6000
triggerall = ctrl = 1
trigger1 = command = "charge"
trigger1 = command = "charge 1"

;Settimo Senso A
[State -1, [State -1]
type = ChangeState
value = 2000
triggerall = var(1) = 0
triggerall = command = "recover"
triggerall = power >= 3000
trigger1 = statetype != A
trigger1 = ctrl = 1

;Trapasso
[State -1]
type = ChangeState
value = 2010
triggerall = command = "Trapasso"
triggerall = StateNo != 73000
triggerall = StateNo != 83000
triggerall = StateNo != 7377
triggerall = StateNo != 11330
triggerall = StateNo != 1340
triggerall = StateNo != 1350
triggerall = StateNo != 1360
triggerall = StateNo != 1370
triggerall = StateNo != 1380
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != [3000,3050)
trigger2 = stateno != 7377
trigger2 = stateno != 11330
trigger2 = movecontact

;-----------------------
;Triple golpe
[State -1, Triple Kung Fu Palm]
type = null
value = 33333
triggerall = StateNo != 73000
triggerall = StateNo != 83000
triggerall = StateNo != 7377
triggerall = StateNo != 11330
triggerall = StateNo != 1340
triggerall = StateNo != 1350
triggerall = StateNo != 1360
triggerall = StateNo != 1370
triggerall = StateNo != 1380
;triggerall = command = "TripleKFPalm3"
triggerall = power >= 2000
trigger1 = statetype = S
;trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = stateno != [3000,3050)
trigger2 = stateno != 7377
trigger2 = stateno != 11330
trigger2 = movecontact

;--------------
;C THROW (close dir+Strong Punch)
[State -1]
type = ChangeState
value = 800
triggerall = Var(50) != 1
trigger1 = statetype = S && ctrl = 1 && p2bodydist X < 10 ;Near P2
trigger1 = (command = "fwd_c") && stateno != 100 && (p2statetype = S || p2statetype = C) && p2movetype != H

;D THROW (close dir+Strong Kick)
[State -1]
type = ChangeState
value = 850
triggerall = Var(50) != 1
trigger1 = statetype = S && ctrl = 1 && p2bodydist X < 10 ;Near P2
trigger1 = (command = "fwd_d") && stateno != 100 && (p2statetype = S || p2statetype = C)  && p2movetype != H


; fireball light
[State -1]
type = ChangeState
value = 2224
triggerall = command = "fireball light"
triggerall = power >= 200
triggerall = P2BodyDist X >= 100
trigger1 = statetype != A
trigger1 = ctrl = 1


;Fireball Air (Strong)
[State -1, [State -1]
type = ChangeState
value = 1110
triggerall      = command = "AIRfireball"
triggerall = var(1) = 0
triggerall      = statetype = A
trigger1        = ctrl = 1
trigger2        = (stateno = [600,690]) && (Movecontact)
trigger3        = (stateno = 50) && (time > 15)

;Fireball Air (Strong)
[State -1, [State -1]
type = ChangeState
value = 1125
triggerall      = command = "AIRfireball2"
triggerall = var(1) = 0
triggerall      = statetype = A
trigger1        = ctrl = 1
trigger2        = (stateno = [600,690]) && (Movecontact)
trigger3        = (stateno = 50) && (time > 15)


;------------------------------------------------------------------------------
;counter
[State -1, Throw]
type = ChangeState
value = 300
triggerall = command = "counter"
triggerall = statetype = S
triggerall = stateno != 100
trigger1 = ctrl
trigger2 = power >= 1000
trigger2 = stateno = [150,151]

;------------------------------------------------------------------------------
;2counter
[State -1]
type = ChangeState
value = 669
triggerall = command = "aircounter"
triggerall = statetype = A
trigger1 = ctrl = 1

;------------------------------------------------------------------------------
;Fireball Air B (Strong)
[State -1, [State -1]
type = ChangeState
value = 1111
triggerall      = command = "AIRfireball"
triggerall = var(1) = 1
triggerall      = statetype = A
trigger1        = ctrl = 1
trigger2        = (stateno = [600,690]) && (Movecontact)
trigger3        = (stateno = 50) && (time > 15)


;Fireball (light)
[State -1, [State -1]
type = ChangeState
value = 131200
triggerall = command = "fireball"
triggerall = var(1) = 0
trigger1 = statetype != A
trigger1 = ctrl = 1


;Fireball B (light)
[State -1, [State -1]
type = ChangeState
value = 131210
triggerall = command = "fireball"
triggerall = var(1) = 1
trigger1 = statetype != A
trigger1 = ctrl = 1


;Fireball (medium)
[State -1, [State -1]
type = ChangeState
value = 121200
triggerall = command = "fireball2"
triggerall = var(1) = 0
trigger1 = statetype != A
trigger1 = ctrl = 1


;Fireball B (medium)
[State -1, [State -1]
type = ChangeState
value = 121210
triggerall = command = "fireball2"
triggerall = var(1) = 1
trigger1 = statetype != A
trigger1 = ctrl = 1


;Fireball (Strong)
[State -1, [State -1]
type = ChangeState
value = 101200
triggerall = command = "fireball3"
triggerall = var(1) = 0
trigger1 = statetype != A
trigger1 = ctrl = 1


;Fireball B (Strong)
[State -1, [State -1]
type = ChangeState
value = 101210
triggerall = command = "fireball3"
triggerall = var(1) = 1
trigger1 = statetype != A
trigger1 = ctrl = 1
      
;100 calci
[State -1, [State -1]
type = ChangeState
value = 207 
triggerall = var(1) = 0
triggerall = command = "100calcia"
trigger1 = statetype != A
trigger1 = ctrl 
trigger2 = stateno = 230
trigger2 = MoveContact
trigger3 = stateno = 235
trigger3 = MoveContact
trigger4 = stateno = 240
trigger4 = MoveContact
trigger5 = stateno = 245
trigger5 = MoveContact
trigger6 = stateno = 430
trigger6 = MoveContact
trigger7 = stateno = 440
trigger7 = MoveContact

;100 calci
[State -1, [State -1]
type = ChangeState
value = 14505
triggerall = var(1) = 0
triggerall = command = "100calci"
trigger1 = statetype != A
trigger1 = ctrl 
trigger2 = stateno = 230
trigger2 = MoveContact
trigger3 = stateno = 235
trigger3 = MoveContact
trigger4 = stateno = 240
trigger4 = MoveContact
trigger5 = stateno = 245
trigger5 = MoveContact
trigger6 = stateno = 430
trigger6 = MoveContact
trigger7 = stateno = 440
trigger7 = MoveContact


[State -1, 100 calci]
type = ChangeState
value = 14506
triggerall = var(1) = 1
triggerall = command = "100calci"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 230
trigger2 = MoveContact
trigger3 = stateno = 235
trigger3 = MoveContact
trigger4 = stateno = 240
trigger4 = MoveContact
trigger5 = stateno = 245
trigger5 = MoveContact
trigger6 = stateno = 430
trigger6 = MoveContact
trigger7 = stateno = 440
trigger7 = MoveContact


;100 calci2
[State -1, [State -1]
type = ChangeState
value = 14507
triggerall = var(1) = 0
triggerall = command = "100calcib"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 230
trigger2 = MoveContact
trigger3 = stateno = 235
trigger3 = MoveContact
trigger4 = stateno = 240
trigger4 = MoveContact
trigger5 = stateno = 245
trigger5 = MoveContact
trigger6 = stateno = 430
trigger6 = MoveContact
trigger7 = stateno = 440
trigger7 = MoveContact

;ComboPunch
[State -1]
type = ChangeState
value = 1010
triggerall = command = "ComboPunch"
trigger1 = statetype != A
trigger1 = ctrl = 1
;-------------------------
trigger2 = stateno = 200
trigger2 = movecontact >= 1
trigger3 = stateno = 210
trigger3 = movecontact >= 1
trigger4 = stateno = 201
trigger4 = movecontact >= 1
trigger5 = stateno = 230
trigger5 = movecontact >= 1
trigger6 = stateno = 240
trigger6 = movecontact >= 1
trigger7 = stateno = 1010
trigger7 = movecontact >= 1


;===========================================================================
; Basics
;===========================================================================
;---------------------------------------------------------------------------
; RunFwd
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = ((command = "FF") && (statetype = S) && (ctrl = 1))


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


;---------------------------------------------------------------------------
;Mega block
[State -1, [State -1]
type = ChangeState
value = 1400
triggerall = command = "mega_block"
triggerall = command = "holdback"
trigger1 = statetype != A
trigger1 = ctrl = 1


;--------------------------
; Stand X
[State -1, Stand X]
type = ChangeState
value = 200
triggerall = var(1) = 0 
triggerall = ((command = "x") && (command != "holddown"))
trigger1 = ((statetype = S && ctrl = 1)) || ((stateno = [201,430]) && (MoveContact)) 


[State -1, Stand X]
type = ChangeState
value = 201
triggerall = var(1) = 1 
triggerall = ((command = "x") && (command != "holddown"))
trigger1 = ((statetype = S && ctrl = 1)) || ((stateno = [201,550]) && (MoveContact)) 


;---------------------------------------------------------------------------
; Stand Y
[State -1, Stand Y]
type = ChangeState
value = 210
triggerall = var(1) = 0 
triggerall = ((command = "y") && (command != "holddown")) 
trigger1 = ((statetype = S) && (ctrl = 1)) || ((stateno = [200,212]) && (MoveContact))|| ((stateno = [210,550]) && (MoveContact))


[State -1, Stand Y]
type = ChangeState
value = 211
triggerall = var(1) = 1 
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 201) ||(stateno = 550)
trigger2 = movecontact&& time > 8


;---------------------------------------------------------------------------
; Stand Z
[State -1, Stand Z 2]
type = ChangeState
value = 220
triggerall = var(1) = 0 
triggerall = ((command = "z") && (command != "holddown")) 
trigger1 = ((statetype = S) && (ctrl = 1)) || ((stateno = [200,212]) && (MoveContact))|| ((stateno = [230,550]) && (MoveContact))


[State -1, Stand Z 2]
type = ChangeState
value = 221
triggerall = var(1) = 1 
triggerall = ((command = "z") && (command != "holddown"))
trigger1 = ((statetype = S && ctrl = 1)) || ((stateno = [200,512]) && (MoveContact)) 


;---------------------------------------------------------------------------
; Stand A
[State -1, Stand A]
type = ChangeState
value = 230
triggerall = var(1) = 0 
triggerall = ((command = "a") && (command != "holddown"))
trigger1 = ((statetype = S) && (ctrl = 1)) || ((stateno = [200,220]) && (MoveContact))|| ((stateno = [240,550]) && (MoveContact))

; Stand A
[State -1, Stand A]
type = ChangeState
value = 231
triggerall = var(1) = 1 
triggerall = ((command = "a") && (command != "holddown"))
trigger1 = ((statetype = S) && (ctrl = 1)) || ((stateno = 200) && (MoveContact))


;---------------------------------------------------------------------------
; Stand B
[State -1, Stand B]
type = ChangeState
value = 240
triggerall = var(1) = 0 
triggerall = ((command = "b") && (command != "holddown"))
trigger1 = ((statetype = S) && (ctrl = 1)) || ((stateno = [200,230]) && (MoveContact))|| ((stateno = [250,550]) && (MoveContact))

; Stand B
[State -1, Stand B]
type = ChangeState
value = 241
triggerall = var(1) = 1 
triggerall = ((command = "b") && (command != "holddown"))
trigger1 = ((statetype = S) && (ctrl = 1)) || ((stateno = [201, 510]) && (MoveContact))


;---------------------------------------------------------------------------
; Stand C
[State -1, Stand C]
type = ChangeState
value = 250
triggerall = var(1) = 0 
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = ((statetype = S) && (ctrl = 1)) || ((stateno = [200,249]) && (MoveContact))|| ((stateno = [251,499]) && (MoveContact))

; Stand C
[State -1, Stand C]
type = ChangeState
value = 251
triggerall = var(1) = 1 
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = ((statetype = S) && (ctrl = 1)) || ((stateno = [201,511]) && (MoveContact))


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


;---------------------------------------------------------------------------
; Crouch X
[State -1, Crouch X]
type = ChangeState
value = 400
triggerall = var(1) = 0 
triggerall = ((command = "x") && (command = "holddown"))
trigger1 = ((statetype = C) && (ctrl = 1)) || ((stateno = [100,451]) && (MoveContact))|| ((stateno = [400,451]) && (MoveContact))

; Crouch X
[State -1, Crouch X]
type = ChangeState
value = 401
triggerall = var(1) = 1 
triggerall = command = "x"
triggerall = ((command = "x") && (command = "holddown"))
trigger1 = ((statetype = C) && (ctrl = 1)) || ((stateno = [100,451]) && (MoveContact))|| ((stateno = [400,451]) && (MoveContact))


;---------------------------------------------------------------------------
; Crouch Y
[State -1, Crouch Y]
type = ChangeState
value = 410
triggerall = var(1) = 0 
triggerall = ((command = "y") && (command = "holddown"))
trigger1 = ((statetype = C) && (ctrl = 1)) || ((stateno = [100,401]) && (MoveContact))|| ((stateno = [420,451]) && (MoveContact))


; Crouch Y
[State -1, Crouch Y]
type = ChangeState
value = 411
triggerall = var(1) = 1
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl


;---------------------------------------------------------------------------
; Crouch Z 
[State -1, Crouch Z] 
type = ChangeState
value = 420
triggerall = var(1) = 0 
triggerall = ((command = "z") && (command = "holddown"))
trigger1 = ((statetype = C) && (ctrl = 1)) || ((stateno = [100,419]) && (MoveContact))|| ((stateno = [421,451]) && (MoveContact = 1))
 

; Crouch Z
[State -1, Crouch Z]
type = ChangeState
value = 421
triggerall = var(1) = 1
triggerall = ((command = "z") && (command = "holddown"))
trigger1 = ((statetype = C) && (ctrl = 1)) || ((stateno = [100,451]) && (MoveContact))|| ((stateno = [400,451]) && (MoveContact))


;---------------------------------------------------------------------------
; Crouch A
[State -1, Crouch A]
type = ChangeState
value = 430
triggerall = var(1) = 0 
triggerall = ((command = "a") && (command = "holddown"))
trigger1 = ((statetype = C) && (ctrl = 1)) || ((stateno = [100,451]) && (MoveContact))|| ((stateno = [400,451]) && (MoveContact = 1))



[State -1, Crouch A]
type = ChangeState
value = 431
triggerall = var(1) = 1 
triggerall = ((command = "a") && (command = "holddown"))
trigger1 = ((statetype = C) && (ctrl = 1)) || ((stateno = [100,451]) && (MoveContact))|| ((stateno = [400,451]) && (MoveContact = 1))


;---------------------------------------------------------------------------
; Crouch B
[State -1, Crouch B]
type = ChangeState
value = 440
triggerall = var(1) = 0 
triggerall = ((command = "b") && (command = "holddown"))
trigger1 = ((statetype = C) && (ctrl = 1)) || ((stateno = [100,430]) && (MoveContact))|| ((stateno = [450,451]) && (MoveContact = 1))



[State -1, Crouch B]
type = ChangeState
value = 441
triggerall = var(1) = 1 
triggerall = ((command = "b") && (command = "holddown"))
trigger1 = ((statetype = C) && (ctrl = 1)) || ((stateno = [100,451]) && (MoveContact))|| ((stateno = [400,451]) && (MoveContact = 1))


;---------------------------------------------------------------------------
; Crouch C
[State -1, Crouch C]
type = ChangeState
value = 450
triggerall = var(1) = 0 
triggerall = ((command = "c") && (command = "holddown"))
trigger1 = ((statetype = C) && (ctrl = 1)) || ((stateno = [100,440]) && (MoveContact))|| ((stateno = [440,441]) && (MoveContact))



[State -1, Crouch C]
type = ChangeState
value = 451
triggerall = var(1) = 1 
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl


;---------------------------------------------------------------------------
; Jump X
[State -1, Jump X]
type = ChangeState
value = 600
triggerall = command = "y"
trigger1 = ((statetype = A) && (ctrl = 1)) || ((stateno = [610,650]) && (MoveContact)) 
 


;---------------------------------------------------------------------------
; Jump Y
[State -1, Jump Y]
type = ChangeState
value = 610
triggerall = command = "x"
trigger1 = ((statetype = A) && (ctrl = 1)) || ((stateno = [600,650]) && (movecontact = 1)) 


;---------------------------------------------------------------------------
; Jump Z
[State -1, Jump Z]
type = ChangeState
value = 620
triggerall = command = "z"
trigger1 = ((statetype = A) && (ctrl = 1)) || ((stateno = [600,610]) && (MoveContact))|| ((stateno = [630,650]) && (MoveContact)) 
;---------------------------------------------------------------------------
; Jump A
[State -1, Jump A]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = ((statetype = A) && (ctrl = 1)) || ((stateno = [600,630]) && (MoveContact))|| ((stateno = [630,650]) && (MoveContact)) 

;---------------------------------------------------------------------------
; Jump B
[State -1, Jump B]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = ((statetype = A) && (ctrl = 1)) || ((stateno = [600,630]) && (movecontact = 1)) || ((stateno = 650) && (movecontact = 1))


;---------------------------------------------------------------------------
; Jump C
[State -1, Jump C]
type = ChangeState
value = 650
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ((statetype = A) && (ctrl = 1)) || ((stateno = [600,640]) && (MoveContact)) 

;===============================
; jump CD
[State -1]
type = ChangeState
value = 669
triggerall = statetype = A
triggerall = var(59) = 1 && ctrl
triggerall= p2statetype = S
trigger1 = p2bodydist x = (19,38)
trigger2 = p2movetype = A
trigger2 = p2bodydist x = (-20,75) ; [-20,60]
trigger3 = p2bodydist X = [40,90]
trigger4 = vel x = 0
