
 ;===========================================================================
; Intelligence Artificiel
;===========================================================================

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[Command]
name = "AI40"
command = x,y,z
time = 1

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

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

[Command]
name = "AI43"
command = c,z,c,z
time = 1

[Command]
name = "AI44"
command =c,z,c,z
time = 1

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

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

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

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

[Command]
name = "AI49"
command = b,b,c,c
time = 1
[Command]
name = "AI50"
command = c,c,b,b
time = 1

;--------------------------------------------------------------------------
;created by:  gouketsu and neocali
;--------------------------------------------------------------------------

;-| super motions |--------------------------------------------------------

;===========================================================================
; Button Remapping
;===========================================================================
[Remap]
x = a
y = b
z = c
a = x
b = y
c = z
s = s


;===========================================================================
; Default Values
;===========================================================================
[Defaults]
; Default value for the "time" parameter of a Command. Minimum 1.
command.time = 15

; Default value for the "buffer.time" parameter of a Command. Minimum 1,
; maximum 30.
command.buffer.time = 1
;===========================================================================
;Super Motions
;===========================================================================
[Command]
name = "GRET HORN 1"
command =~D, DF, F, x+y
time = 20

 [Command]
name = "GRET HORN 2"
command =~D, DF, F, y+z
time = 20

[Command]
name = "GRETGRET HORN 1"
command =~D, DF, F, a+b
time = 20
[Command]
name = "sainte finich"
command =~D, DF, F, b+c
time = 20


;===========================================================================
;Special Motions
;===========================================================================
[Command]
name = "Light Great Horn wave_x"
command = ~D, DF, F, x
time = 20
[Command]
name = "médium Great Horn wave_y"
command = ~D, DF, F, y
time = 20

[Command]
name = "Strong Great Horn wave_z"
command = ~D, DF, F, z
time = 20
;===========================================================================
[Command]
name = "Light Great Horn_x"
command = ~D, DB, B,  x
time = 20
[Command]
name = "médium Great Horn_y"
command = ~D, DB, B,  y
time = 20
[Command]
name = "Strong Great Horn_z"
command = ~D, DB, B,  z
time = 20
;===========================================================================
[Command]
name ="Light charge_a"
command = ~D, DF, F, a
time = 20

[Command]
name = "médium charge_b"
command = ~D, DF, F, b
time = 20

[Command]
name ="Strong charge_c"
command = ~D, DF, F, c
time = 20
;===========================================================================
[Command]
name = "Light télékin&si_a"
command = ~D, DB, B,  a
time = 20

[Command]
name = "médium télékin&si_b"
command = ~D, DB, B,  b
time = 20

[Command]
name = "Strong télékin&si_c"
command = ~D, DB, B,  c
time = 20


;===========================================================================
;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 = "superb z" ;Required (do not remove)
;command = b+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 = "x"
command = x
time = 1

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

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

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

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

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

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

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

[Command]
name = "holdpowercosmos z" ;Required (do not remove)
command = /z
time = 1
[Command]
name = "holdpowercosmos c" ;Required (do not remove)
command = /c
time = 1


;[Command]
;:name = "superb B";Required (do not remove)
;command = /b
;time = 1
[Command]
name = "garde Reversal c" ;Required (do not remove)
command = /c
time = 50

;===========================================================================
;---------------------------------------------------------------------------
; commands
[statedef -1]


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

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

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


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

;---------------------------------------------------------------------------
;===========================================================================
;sainte finich
;===========================================================================
 [State -1,sainte finich]
type = ChangeState
value = 4000
triggerall = command = "sainte finich"
triggerall = power >= 3000
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
triggerall = !NumProj || ProjContactTime(8031) = [1,15]
triggerall = !NumProj || ProjContactTime(8032) = [1,15]
triggerall = !NumProj || ProjContactTime(8033) = [1,15]
triggerall = !NumProj || ProjContactTime(8088) = [1,15]
triggerall = !NumProj || ProjContactTime(8089) = [1,15]
triggerall = !NumProj || ProjContactTime(8090) = [1,15]
trigger1 = life <= 300
trigger1 = statetype = S
trigger1 = ctrl
;trigger2 = hitdefattr = SC, NA, SA, HA

;===========================================================================
;ATTAQUES
;===========================================================================

;===========================================================================
;GRET HORN 2
;===========================================================================
;GRET HORN 2
[State -1, GRET HORN 2]
type = ChangeState
value = 3070
triggerall = command = "GRET HORN 2"
triggerall = power >= 3000
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
triggerall = !NumProj || ProjContactTime(8031) = [1,15]
triggerall = !NumProj || ProjContactTime(8032) = [1,15]
triggerall = !NumProj || ProjContactTime(8033) = [1,15]
triggerall = !NumProj || ProjContactTime(8088) = [1,15]
triggerall = !NumProj || ProjContactTime(8089) = [1,15]
triggerall = !NumProj || ProjContactTime(8090) = [1,15]
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
;===========================================================================
;GRET HORN 1
;===========================================================================
;GRET HORN 1
[State -1, GRET HORN 1]
type = ChangeState
value = 3000
triggerall = command = "GRET HORN 1"
triggerall = power >= 1000
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
triggerall = !NumProj || ProjContactTime(8031) = [1,15]
triggerall = !NumProj || ProjContactTime(8032) = [1,15]
triggerall = !NumProj || ProjContactTime(8033) = [1,15]
triggerall = !NumProj || ProjContactTime(8088) = [1,15]
triggerall = !NumProj || ProjContactTime(8089) = [1,15]
triggerall = !NumProj || ProjContactTime(8090) = [1,15]
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact

;===========================================================================
;GRETGRET HORN 1
;===========================================================================
;GRETGRET HORN 1
[State -1, GRETGRET HORN 2]
type = ChangeState
value = 3040
triggerall = command = "GRETGRET HORN 1"
triggerall = power >= 1000
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
triggerall = !NumProj || ProjContactTime(8031) = [1,15]
triggerall = !NumProj || ProjContactTime(8032) = [1,15]
triggerall = !NumProj || ProjContactTime(8033) = [1,15]
triggerall = !NumProj || ProjContactTime(8088) = [1,15]
triggerall = !NumProj || ProjContactTime(8089) = [1,15]
triggerall = !NumProj || ProjContactTime(8090) = [1,15]
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact


;===========================================================================
; Light Great Horn wave
;===========================================================================
;Light Great Horn wave
[State -1, Light Great Horn wave]
type = ChangeState
triggerall = command = "Light Great Horn wave_x"
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 250) &&  movecontact
value = 1000
;---------------------------------------------------------------------------
;medium Great Horn wave
[State -1, medium Great Horn wave]
type = ChangeState
triggerall = command = "médium Great Horn wave_y"
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 250) &&  movecontact
value = 1010

;---------------------------------------------------------------------------
; Strong Great Horn wave
[State -1, Strong  Great Horn wave]
type = ChangeState
triggerall = command = "Strong Great Horn wave_z"
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 250) &&  movecontact
value = 1020
;===========================================================================
;===========================================================================
; Light Great Horn blast
;===========================================================================
;===========================================================================
;Light Great Horn
[State -1, Light Great Horn]
type = ChangeState
triggerall = command = "Light Great Horn_x"
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 250) &&  movecontact
value = 1100
;---------------------------------------------------------------------------
;medium Great Horn blast
[State -1, medium Great Horn]
type = ChangeState
triggerall = command = "médium Great Horn_y"
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 250) &&  movecontact
value = 1110

;---------------------------------------------------------------------------
; Strong Great Horn blast
[State -1, Strong  Great Horn]
type = ChangeState
triggerall = command = "Strong Great Horn_z"
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 250) &&  movecontact
value = 1120

;===========================================================================
; charge
;===========================================================================
;Light charge
[State -1, light charge]
type = ChangeState
value = 1001
triggerall = command ="Light charge_a"
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact

;---------------------------------------------------------------------------
;médium charge
[State -1, médium  charge]
type = ChangeState
value = 1002
triggerall = command = "médium charge_b"
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact

;---------------------------------------------------------------------------
;Strong charge

[State -1, Strong charge]
type = ChangeState
value = 1003
triggerall = command = "Strong charge_c"
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
;===========================================================================
; Light télékin&si
;===========================================================================
;Light télékin&si
[State -1,Light télékin&si]
type = ChangeState
value = 1200
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
trigger1 = command ="Light télékin&si_a"
trigger1 = statetype = S
trigger1 = ctrl


;médium télékin&si
[State -1, médium télékin&si]
type = ChangeState
value = 1300
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
trigger1 = command ="médium télékin&si_b"
trigger1 = statetype = S
trigger1 = ctrl

;Strong télékin&si
[State -1, Strong télékin&si]
type = ChangeState
value = 1400
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
trigger1 = command ="Strong télékin&si_c"
trigger1 = statetype = S
trigger1 = ctrl

;===========================================================================
;ACTION
;===========================================================================

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

;power (cosmos )
[State -1, power cosmos]
type = ChangeState
value = 196
trigger1 = command = "holdpowercosmos z"
trigger1 = command = "holdpowercosmos c"
trigger1 = Power < 3000
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = StateNo != 2000
trigger1 = StateNo != 20
trigger1 = StateNo != 21

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

;---------------------------------------------------------------------------
[State -1, garde Reversal]
type = ChangeState
value = 700
triggerall = command ="holdpowercosmos z"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdback"
triggerall = !NumProjID(1000)
triggerall = !NumProjID(1010)
triggerall = !NumProjID(1020)
triggerall = !NumProj || ProjContactTime(1000) = [1,15]
triggerall = !NumProj || ProjContactTime(1010) = [1,15]
triggerall = !NumProj || ProjContactTime(1020) = [1,15]
triggerall = !NumProj || ProjHitTime(3000)= [1,15]

trigger2 = hitdefattr = SC, NA, SA, HA
;---------------------------------------------------------------------------
;Taunt
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = ctrl
;===========================================================================
; COUP DE BASE
;===========================================================================
;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 230) && movecontact
trigger4 = (StateNo =[400,430])&& command !="holddown" && movecontact

;---------------------------------------------------------------------------
;Stand médium Punch
[State -1, Stand médium Punch]
type = ChangeState
value = 210
triggerall = command = "y"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 240) && movecontact
trigger4 = (stateno = 230) &&  movecontact
trigger4 = (StateNo =[400,430])&& command !="holddown" && movecontact

;---------------------------------------------------------------------------
;Stand strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 220
triggerall = command = "z"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 230) &&  movecontact
trigger5 = (stateno = 240) &&  movecontact
trigger6 = (StateNo =[400,450]) && movecontact && command != "holddown"

;---------------------------------------------------------------------------
;Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && movecontact
trigger3 = (StateNo =[400,430])&& command !="holddown" && movecontact
;---------------------------------------------------------------------------
;Standing MEDIUM Kick
[State -1, Standing MEDIUM Kick]
type = ChangeState
value = 240
triggerall = command = "b"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 210) && movecontact
trigger4 = (stateno = 230) && movecontact
trigger5 = (StateNo =[400,440])&& movecontact && command != "holddown"
;---------------------------------------------------------------------------
;Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 250
triggerall = command = "c"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 230) &&  movecontact
trigger5 = (stateno = 240) &&  movecontact
trigger6 = (StateNo =[400,450]) && movecontact && command != "holddown"

;---------------------------------------------------------------------------
;Crouching Light Punch
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "x" && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = StateType != A
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 230) && movecontact
trigger4 = (stateno = 430) && movecontact
;---------------------------------------------------------------------------
;Crouching médium Punch
[State -1, Crouching médium Punch]
type = ChangeState
value = 410
triggerall = command = "y" && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = StateType != A
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 210) && movecontact
trigger4 = (stateno = 230) && movecontact
trigger5 = (stateno = 430) && movecontact
trigger6 = (stateno = 400) && movecontact
trigger7 = (stateno = 440) && movecontact
;---------------------------------------------------------------------------
;Crouching Strong Punch
[State -1, Crouching Strong Punch]
type = ChangeState
value = 420
triggerall = command = "z" && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = StateType != A
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 210) && movecontact
trigger4 = (stateno = 230) && movecontact
trigger5 = (stateno = 240) && movecontact
trigger6 = (stateno = 430) && movecontact
trigger7 = (stateno = 400) && movecontact
trigger8 = (stateno = 410) && movecontact
trigger8 = (stateno = 440) && movecontact

;---------------------------------------------------------------------------
;Crouching Light Kick
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = command = "a"  && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = StateType != A
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 230) && movecontact
trigger4 = (stateno = 400) && movecontact
;---------------------------------------------------------------------------
;Crouching médium Kick
[State -1, Crouching médium Kick]
type = ChangeState
value = 440
triggerall = command = "b" && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = StateType != A
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 210) && movecontact
trigger4 = (stateno = 230) && movecontact
trigger5 = (stateno = 430) && movecontact
trigger6 = (stateno = 400) && movecontact
trigger7 = (stateno = 410) && movecontact
;---------------------------------------------------------------------------
;Crouching Strong Kick
[State -1, Crouching Strong Kick]
type = ChangeState
value = 450
triggerall = command = "c"  && command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = StateType != A
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 210) && movecontact
trigger4 = (stateno = 230) && movecontact
trigger5 = (stateno = 240) && movecontact
trigger6 = (stateno = 430) && movecontact
trigger7 = (stateno = 400) && movecontact
trigger8 = (stateno = 410) && movecontact
trigger8 = (stateno = 440) && movecontact
;---------------------------------------------------------------------------
;Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 610) &&  movecontact
trigger3 = (stateno = 630) &&  movecontact
trigger4 = (stateno = 640) &&  movecontact

;---------------------------------------------------------------------------
;Jump MEDIUM Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) &&  movecontact
trigger3 = (stateno = 620) &&  movecontact
trigger4 = (stateno = 640) &&  movecontact
trigger4 = (stateno = 650) &&  movecontact
;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 620
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) &&  movecontact
trigger3 = (stateno = 610) &&  movecontact
trigger4 = (stateno = 620) &&  movecontact
trigger5 = (stateno = 630) &&  movecontact
trigger6 = (stateno = 640) &&  movecontact

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) &&  movecontact
trigger3 = (stateno = 610) &&  movecontact
trigger4 = (stateno = 640) &&  movecontact



;---------------------------------------------------------------------------
;Jump MEDIUM  Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) &&  movecontact
trigger3 = (stateno = 610) &&  movecontact
trigger4 = (stateno = 620) &&  movecontact
trigger5 = (stateno = 630) &&  movecontact
trigger6 = (stateno = 650) &&  movecontact

;---------------------------------------------------------------------------
;Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 650
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) &&  movecontact
trigger3 = (stateno = 610) &&  movecontact
trigger4 = (stateno = 620) &&  movecontact
trigger5 = (stateno = 630) &&  movecontact
trigger6 = (stateno = 640) &&  movecontact


;===========================================================================
; ---------------------------AI--------------------------------------------
;===========================================================================

[State -1, 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"
trigger31 = command = "AI31"
trigger32 = command = "AI32"
trigger33 = command = "AI33"
trigger34 = command = "AI34"
trigger35 = command = "AI35"
trigger36 = command = "AI36"
trigger37 = command = "AI37"
trigger38 = command = "AI38"
trigger39 = command = "AI39"
trigger40 = command = "AI40"
trigger41 = command = "AI41"
trigger42 = command = "AI42"
trigger43 = command = "AI43"
trigger44 = command = "AI44"
trigger45 = command = "AI45"
trigger46 = command = "AI46"
trigger47 = command = "AI47"
trigger48 = command = "AI48"
trigger47 = command = "AI49"
trigger48 = command = "AI50"
v = 59
value = 1



;-----------------------------------
; ------ AI Standing Guard ---------
;-----------------------------------

[State -1]
type = ChangeState
triggerall = var(59) = 1
triggerall = Statetype != A
triggerall = P2statetype != C
triggerall = Statetype = S
triggerall = P2Movetype = A
triggerall = Pos Y != [-1,-999]
triggerall = ctrl = 1
trigger1 = random <= 999
value = 130

[State -1]
type = ChangeState
triggerall = (Var(30) = 59) && (StateType = S) && (Pos Y = 0) && (P2BodyDist Y <= 0)
triggerall = (P2BodyDist Y = -120) && (P2StateType != C) && (P2MoveType = A)
trigger1 = (P2BodyDist X <= 120) && (Random <= 799) && (Ctrl)
trigger2 = (StateNo = [140, 155]) || (StateNo = [100, 105])
value = 130

;-----------------------------------
; ------ AI Standing Guard ---------
;-----------------------------------
; AI Stand to Crouch Guard Transition
[State -1]
type = ChangeState
triggerall = var(59) = 1
triggerall = StateType != A
triggerall = P2statetype = C
triggerall = P2Movetype = A
triggerall = Pos Y != [-1,-999]
trigger1 = stateno = 150
trigger1 = 1
value = 152

; AI Crouching Guard
[State -1]
type = ChangeState
triggerall = var(59) = 1
triggerall = StateType != A
triggerall = P2statetype = C
triggerall = P2Movetype = A
triggerall = Pos Y != [-1,-999]
triggerall = ctrl = 1
trigger1 = random <= 900
value = 131

[State -1]
type = ChangeState
triggerall = (Var(30) = 59) && (StateType != A) && (Pos Y = 0) && (P2BodyDist Y <= 0)
triggerall = (P2BodyDist Y = -50) && (P2StateType = C) && (P2MoveType = A)
trigger1 = (P2BodyDist X <= 120) && (Random <= 799) && (Ctrl)
trigger2 = (StateNo = [140, 155]) || (StateNo = [100, 105])
value = 131

;-----------------------------------
; ------- AI Aerial Guard ---------
;-----------------------------------

; AI Crouch to Stand Guard Transition
[State -1]
type = ChangeState
triggerall = var(59) = 1
triggerall = Statetype != A
triggerall = P2statetype != C
triggerall = P2Movetype = A
trigger1 = 1
trigger1 = stateno = 152
value = 150

;AI Aerial Guard
[State -1]
type = ChangeState
triggerall = var(59) = 1
triggerall = Statetype = A
triggerall = P2Movetype = A
triggerall = ctrl = 1
trigger1 = random <= 900
value = 132

[State -1]
type = ChangeState
triggerall = (Var(30) = 59) && (StateType = A) && (Pos Y = 0)  && (P2BodyDist Y = -120)
triggerall = (StateType = A) && (P2MoveType = A)
trigger1 = ((P2BodyDist X <= 120) && (Ctrl)) || (StateNo = [140, 155])
value = 132

;===========================================================================
;sainte finich
;===========================================================================
 [State -1,sainte finich]
type = ChangeState
value = 4000
triggerall = var(59) = 1
triggerall = statetype = S && statetype!=A && ctrl && life <= 300 && random<=999999999 && power >=3000&& NumProj =0
triggerall= p2StateType!=L && P2life >0
triggerall = stateno !=195
triggerall = stateno != [800,801]
triggerall = stateno != [700,703]
triggerall = !NumProjID(8090)
trigger1 =life >0

;trigger2 = hitdefattr = SC, NA, SA, HA

;===========================================================================
;ATTAQUES
;===========================================================================

;===========================================================================
;GRET HORN 2
;===========================================================================
;GRET HORN 2
[State -1, GRET HORN 2]
type = ChangeState
value = 3070
triggerall = var(59) = 1
triggerall = statetype = S && statetype!=A && ctrl && power >=3000&& NumProj =0
triggerall= p2StateType!=L && P2life >0
triggerall = stateno !=195
triggerall = stateno != [800,801]
triggerall = stateno != [700,703]
triggerall =p2bodydist y <50;p2bodydist y < 1
trigger1 =life >0 && random<=1000
trigger2 =life <100 && random<=1200
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
;===========================================================================
;GRET HORN 1
;===========================================================================
;GRET HORN 1
[State -1, GRET HORN 1]
type = ChangeState
value = 3000
triggerall = var(59) = 1
triggerall = statetype = S && statetype!=A && ctrl && power >=1000&& NumProj =0
triggerall= p2StateType!=L && P2life >0
triggerall = stateno !=195
triggerall = stateno != [800,801]
triggerall = stateno != [700,703]
triggerall =p2bodydist y <60
trigger1 =life >0 && random<=350
trigger2 =life <300 && random<=700
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact

;===========================================================================
;GRETGRET HORN 2
;===========================================================================
;GRETGRET HORN 2
[State -1, GRETGRET HORN 2]
type = ChangeState
value = 3040
triggerall = var(59) = 1
triggerall = statetype = S && statetype!=A && ctrl && power >=1000&& NumProj =0
triggerall= p2StateType!=L && P2life >0
triggerall = stateno !=195
triggerall = stateno != [800,801]
triggerall = stateno != [700,703]
trigger1 =life >500&& random<=300
trigger2 =life <500 && random<=600
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact


;===========================================================================
; Light Great Horn wave
;===========================================================================
;Light Great Horn wave
[State -1, Light Great Horn wave]
type = ChangeState
value = 1000
triggerall = var(59) = 1
triggerall = statetype = S  && statetype!= A && ctrl && NumProj = 0
triggerall=p2StateType!=L && P2life >0 && p2bodydist X >=70;< >
triggerall = stateno !=195
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
triggerall = stateno != [800,801]
triggerall = stateno != [700,703]
trigger1 =life >700 && random<=120
trigger2 =life <700 && random<=620
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 250) &&  movecontact
Trigger8 = (stateno = 270) &&  movecontact

;---------------------------------------------------------------------------
;medium Great Horn wave
[State -2, medium Great Horn wave]
type = ChangeState
value = 1010
triggerall = var(59) = 1
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0
triggerall=p2StateType!=L && P2life >0 && p2bodydist X >=75;< >
triggerall = stateno !=195
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
triggerall = stateno != [800,801]
triggerall = stateno != [700,703]
;trigger1 =p2bodydist y <80
trigger1 =life >700 && random<=150
trigger2 =life <700 && random<=650
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 250) &&  movecontact
Trigger8 = (stateno = 270) &&  movecontact


;---------------------------------------------------------------------------
; Strong Great Horn wave
[State -3, Strong  Great Horn wave]
type = ChangeState
value = 1020
triggerall = var(59) = 1
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0
triggerall=p2StateType!=L && P2life >0 && p2bodydist X >=80;< >
triggerall = stateno !=195
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
;triggerall = stateno != [1000,1020]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
triggerall = stateno != [700,703]
;triggerall = stateno != [3000,4003]
trigger1 =life >700 && random<=170
trigger2 =life <700 && random<=670
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 250) &&  movecontact
Trigger8 = (stateno = 270) &&  movecontact

;===========================================================================
;===========================================================================
; Light Great Horn
;===========================================================================
;===========================================================================
;Light Great Horn
[State -1, Light Great Horn ]
type = ChangeState
value = 1100
triggerall = var(59) = 1
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0
triggerall=p2StateType!=L && P2life >0&& p2bodydist X <=120;< >
triggerall = stateno !=195
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
;riggerall = !NumProjID(8090)
;triggerall = stateno != [1000,1020]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
triggerall = stateno != [700,703]
;triggerall = stateno != [3000,4003]
trigger1 =life >500 && random<=200
trigger2 =life <500 && random<=400
;trigger1 =p2bodydist y <50
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 250) &&  movecontact
Trigger8 = (stateno = 270) &&  movecontact

;---------------------------------------------------------------------------
;medium Great Horn
[State -1, medium Great Horn ]
type = ChangeState
value = 1110
triggerall = var(59) = 1
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0
triggerall=p2StateType!=L && P2life >0 && p2bodydist X >=85;< >

triggerall = stateno !=195
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
;triggerall = stateno != [1000,1020]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
triggerall = stateno != [700,703]
;triggerall = stateno != [3000,4003]
;trigger1 =p2bodydist y >-100
trigger1 =life >500 && random<=270
trigger2 =life <500 && random<=420
;trigger1 =p2bodydist y <50
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 250) &&  movecontact
Trigger8 = (stateno = 270) &&  movecontact


;---------------------------------------------------------------------------
; Strong Great Horn
[State -1, Strong  Great Horn ]
type = ChangeState
triggerall = var(59) = 1
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0
triggerall=p2StateType!=L && P2life >0&& p2bodydist X >=90;< >
triggerall = stateno !=195
triggerall = !NumProjID(8031)
triggerall = !NumProjID(8032)
triggerall = !NumProjID(8033)
triggerall = !NumProjID(8088)
triggerall = !NumProjID(8090)
;triggerall = stateno != [1000,1020]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
triggerall = stateno != [700,703]
;triggerall = stateno != [3000,4003]
;trigger1 =p2bodydist y >-100
trigger1 =life >500 && random<=490
trigger2 =life <500 && random<=470
;trigger1 =p2bodydist y <50
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 250) &&  movecontact
Trigger8 = (stateno = 270) &&  movecontact
value = 1120

;===========================================================================
; charge
;===========================================================================
;Light charge
[State -1, light charge]
type = ChangeState
triggerall = var(59) = 1
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0
triggerall=p2StateType!=L && P2life >0&& p2bodydist X >=50;< >
triggerall = stateno !=195
;triggerall = stateno != [1000,1020]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
triggerall = stateno != [700,703]
;triggerall = stateno != [3000,4003]
;trigger1=p2bodydist y >-50
trigger1 =life >0 && random<=553
trigger2 =life <300 && random<=453
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
 value = 1001
;---------------------------------------------------------------------------
;médium charge
[State -1, médium  charge]
type = ChangeState
triggerall = var(59) = 1
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0
triggerall=p2StateType!=L && P2life >0&& p2bodydist X >=97;< >
triggerall=p2bodydist x >50
triggerall = stateno !=195
;triggerall = stateno != [1000,1020]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
triggerall = stateno != [700,703]
;triggerall = stateno != [3000,4003]
;trigger1 =p2bodydist y >-50
trigger1 =life >0 && random<=653
trigger2 =life <900 && random<=353
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
value = 1002
;---------------------------------------------------------------------------
;Strong charge

[State -1, Strong charge]
type = ChangeState
value = 1003
triggerall = var(59) = 1
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0
triggerall=p2StateType!=L && P2life >0&& p2bodydist X >=100;< >
triggerall = stateno !=195
;triggerall = stateno != [1000,1020]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
triggerall = stateno != [700,703]
;triggerall = stateno != [3000,4003]
;trigger1 =p2bodydist y >=50
trigger1 =life >0 && random<=153
trigger2 =life <300 && random<=253
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 220) &&  movecontact
trigger5 = (stateno = 230) &&  movecontact
trigger6 = (stateno = 240) &&  movecontact
;===========================================================================
; Light télékin&si
;===========================================================================
;Light télékin&si
[State -1,Light télékin&si]
type = ChangeState
value = 1200
triggerall = var(59) = 1
triggerall = p2bodydist X >=50&&p2bodydist Y >=120
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0
triggerall=p2StateType!=L && P2life >0 && (p2bodydist X >=60)&&(p2bodydist x <=120)
triggerall = stateno !=195
;triggerall = stateno != [1000,1020]
;triggerall = stateno != [200,650]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
triggerall = stateno != [700,703]
;triggerall = stateno != [3000,4003]
;triggerall = !NumProjID(8031)
;triggerall = !NumProjID(8032)
;triggerall = !NumProjID(8033)
;triggerall = !NumProjID(8088)
;triggerall = !NumProjID(8090)
trigger1 =life >900 && random<=9991
trigger2 =life <900 && random<=400


;médium télékin&si
[State -1, médium télékin&si]
type = ChangeState
value = 1300
triggerall = var(59) = 1
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0
triggerall=p2StateType!=L && P2life >0 &&(p2bodydist X >=120)&&(p2bodydist x <=180)
triggerall = stateno !=195
;triggerall = stateno != [1000,1020]
;triggerall = stateno != [200,650]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
triggerall = stateno != [700,703]
;triggerall = stateno != [3000,4003]
;triggerall = !NumProjID(8031)
;triggerall = !NumProjID(8032)
;triggerall = !NumProjID(8033)
;triggerall = !NumProjID(8088)
;triggerall = !NumProjID(8090)
trigger1 =life >900 && random<=9900
trigger2 =life <900 && random<=500

;Strong télékin&si
[State -1, Strong télékin&si]
type = ChangeState
value = 1400
triggerall = var(59) = 1
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0
triggerall=p2StateType!=L && P2life >0&&(p2bodydist X >=170)&&(p2bodydist x <=180)
triggerall = stateno !=195
;triggerall = stateno != [1000,1020]
;triggerall = stateno != [200,650]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
triggerall = stateno != [700,703]
;triggerall = stateno != [3000,4003]
;triggerall = !NumProjID(8031)
;triggerall = !NumProjID(8032)
;triggerall = !NumProjID(8033)
;triggerall = !NumProjID(8088)
;triggerall = !NumProjID(8090)
trigger1 =life >900 && random<=9999
trigger2 =life <900 && random<=600

;===========================================================================
;ACTION
;===========================================================================


;power (cosmos )
[State -1, power cosmos]
type = ChangeState
value = 196
triggerall = var(59) = 1
triggerall = statetype = S && statetype!=A && ctrl && NumProj =0 && movetype!=A
triggerall=p2StateType!=L && P2life >0  && p2movetype!=A&&(p2bodydist X >=170)&&(p2bodydist x <=180)
trigger1 =life >300 && random<=435
trigger2 =life <300 && random<=870
triggerall = stateno !=195
;triggerall = stateno != [1000,1020]
;triggerall = stateno != [200,650]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
triggerall = stateno != [700,703]
;triggerall = stateno != [3000,4003]
trigger1 = StateNo != 2000
trigger1 = StateNo != 20
trigger1 = StateNo != 21
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
[State -1, garde Reversal]
type = ChangeState
value = 700
triggerall = var(59) = 1
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0 && movetype!=A
triggerall=p2StateType!=L && P2life >0
triggerall = p2bodydist X <=70
triggerall = stateno !=195
;triggerall = stateno != [700,703]
;triggerall = stateno != [200,650]
;triggerall = stateno != [1000,1020]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
;triggerall = stateno != [3000,4003]
;triggerall = !(stateno = 200)
;triggerall = !NumProjID(8031)
;triggerall = !NumProjID(8032)
;triggerall = !NumProjID(8033)
;triggerall = !NumProjID(8088)
;triggerall = !NumProjID(8090)
trigger1 =life >0 && random<=425
trigger2 =life <300 && random<=850
;trigger2 = hitdefattr = SC, NA, SA, HA
;---------------------------------------------------------------------------
;Throw
[State -1, Throw]
type = ChangeState
value = 800
triggerall = var(59) = 1
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0 && movetype!=A
triggerall=p2StateType!=L && P2life >0 &&  p2bodydist X <=45
triggerall = stateno !=196
triggerall = stateno !=195
triggerall = stateno != 100
;triggerall = stateno != [200,650]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
triggerall = stateno != [700,703]
;triggerall = stateno != [3000,4003]
trigger1 =life >300 && random<=425
trigger1 =life <300 && random<=850
trigger1 = command = "holdfwd" && (p2statetype = S) || (p2statetype = C)&& p2movetype != H
trigger2 = command = "holdback"&& (p2statetype = S) || (p2statetype = C)&& p2movetype != H



;---------------------------------------------------------------------------
;Taunt
[State -1, Taunt]
type = ChangeState
value = 195
triggerall =  var(59) = 1
triggerall = stateno !=195
triggerall = stateno !=196
triggerall = stateno != 100
;triggerall = stateno != [200,650]
;triggerall = stateno != [1100,1120]
;triggerall = stateno != [1200,1400]
;triggerall = stateno != [1001,1003]
triggerall = stateno != [800,801]
;triggerall = stateno != [1000,1400]
triggerall = stateno != [700,703]
;triggerall = stateno != [3000,4003]
triggerall = p2bodydist X >=50
triggerall = statetype = S  && statetype!=A && ctrl && NumProj = 0
triggerall=p2StateType!=L && P2life >0 && p2movetype!=A
trigger1 =life >300 && random<=925
trigger1 =life <300 && random<=550
;===========================================================================
; COUP DE BASE
;===========================================================================
;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = var(59) = 1
triggerall = p2bodydist X <=50
trigger1 =p2bodydist y >-100
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = S &&  ctrl && life >0&& random<=310
trigger2 = (stateno = 230) && movecontact
trigger4 = (StateNo =[400,430])&& command !="holddown" && movecontact

;---------------------------------------------------------------------------
;Stand médium Punch
[State -1,Stand médium Punch]
type = ChangeState
value = 210
triggerall = var(59) = 1
triggerall = p2bodydist X <=55
trigger1 =p2bodydist y <=20
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = S &&  ctrl && life >0&& random<=730
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 230) && movecontact
trigger4 = (stateno = 240) && movecontact
trigger5 = (stateno = 270) && movecontact
trigger4 = (StateNo =[400,430])&& command !="holddown" && movecontact
;---------------------------------------------------------------------------
;Stand strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 220
triggerall =var(59) = 1
triggerall = p2bodydist X <=60
trigger1 =p2bodydist y <100
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = S &&  ctrl && life >0&& random<=720
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 230) &&  movecontact
trigger5 = (stateno = 240) &&  movecontact
Trigger7 = (stateno = 270) &&  movecontact
trigger6 = (StateNo =[400,450]) && movecontact && command != "holddown"
;---------------------------------------------------------------------------
;Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall =var(59) = 1
triggerall = p2bodydist X <=50
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = S &&  ctrl && life >0&& random<=740
trigger2 = (stateno = 220) && movecontact
trigger4 = (StateNo =[400,430])&& command !="holddown" && movecontact
;---------------------------------------------------------------------------
;Standing MEDIUM Kick
[State -1, Standing MEDIUM Kick]
type = ChangeState
value = 240
triggerall =var(59) = 1
triggerall = p2bodydist X <=55
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = S &&  ctrl && life >0&& random<=755
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 210) && movecontact
trigger4 = (stateno = 230) &&  movecontact
trigger5 = (stateno = 270) &&  movecontact
trigger4 = (StateNo =[400,430])&& command !="holddown" && movecontact
;---------------------------------------------------------------------------
;Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 250
triggerall = var(59) = 1
triggerall = p2bodydist X <=60
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = S &&  ctrl && life >0&& random<=770
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 230) &&  movecontact
trigger5 = (stateno = 240) &&  movecontact
trigger6 = (StateNo =[400,450]) && movecontact && command != "holddown"
;---------------------------------------------------------------------------
;Crouching Light Punch
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall =  var(59) = 1
triggerall = p2bodydist X <=50
triggerall =p2bodydist y<=1
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = C  &&  ctrl && life >0&& random<=705
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 230) && movecontact
trigger4 = (stateno = 430) && movecontact

;---------------------------------------------------------------------------
;Crouching médium Punch
[State -1, Crouching médium Punch]
type = ChangeState
value = 410
triggerall =  var(59) = 1
triggerall = p2bodydist X <=50
triggerall =p2bodydist y <=1
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = C  &&  ctrl && life >0&& random<=702
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 210) && movecontact
trigger4 = (stateno = 230) &&  movecontact
trigger5 = (stateno = 430) && movecontact
trigger6 = (stateno = 400) && movecontact
trigger7 = (stateno = 440) && movecontact

;---------------------------------------------------------------------------
;Crouching Strong Punch
[State -1, Crouching Strong Punch]
type = ChangeState
value = 420
triggerall =  var(59) = 1
triggerall = p2bodydist X <=46
triggerall =p2bodydist y <=1
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = C  &&  ctrl && life >0&& random<=759
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 230) &&  movecontact
trigger5 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 430) && movecontact
trigger7 = (stateno = 400) && movecontact
trigger8 = (stateno = 410) && movecontact
trigger8 = (stateno = 440) && movecontact


;---------------------------------------------------------------------------
;Crouching Light Kick
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall =  var(59) = 1
triggerall = p2bodydist X <=50
triggerall =p2bodydist y <=1
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = C  &&  ctrl && life >0&& random<=764
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 230) && movecontact
trigger4 = (stateno = 400) && movecontact



;---------------------------------------------------------------------------
;Crouching Strong Kick
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall =  var(59) = 1
triggerall = p2bodydist X <=55
triggerall =p2bodydist y <=1
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = C  &&  ctrl && life >0&& random<=775
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 210) && movecontact
trigger4 = (stateno = 230) &&  movecontact
trigger5 = (stateno = 430) && movecontact
trigger6 = (stateno = 400) && movecontact
trigger7 = (stateno = 410) && movecontact



;---------------------------------------------------------------------------
;Crouching Strong Kick
[State -1, Crouching Strong Kick]
type = ChangeState
value = 450
triggerall =  var(59) = 1
triggerall = p2bodydist X <=60
triggerall =p2bodydist y <=1
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = C  &&  ctrl && life >0&& random<=791
trigger2 = (stateno = 200) &&  movecontact
trigger3 = (stateno = 210) &&  movecontact
trigger4 = (stateno = 230) &&  movecontact
trigger5 = (stateno = 240) &&  movecontact
trigger6 = (stateno = 430) && movecontact
trigger7 = (stateno = 400) && movecontact
trigger8 = (stateno = 410) && movecontact
trigger8 = (stateno = 440) && movecontact


;---------------------------------------------------------------------------
;Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = var(59) = 1
triggerall = p2bodydist X <=50
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = A  &&  ctrl && life >0&& random<=788
trigger2 = (stateno = 610) &&  movecontact
trigger3 = (stateno = 630) &&  movecontact
trigger4 = (stateno = 640) &&  movecontact

;---------------------------------------------------------------------------
;Jump MEDIUM Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall =  var(59) = 1
triggerall = p2bodydist X <=55
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = A  &&  ctrl && life >0&& random<=756
trigger2 = (stateno = 600) &&  movecontact
trigger3 = (stateno = 620) &&  movecontact
trigger4 = (stateno = 640) &&  movecontact
trigger4 = (stateno = 650) &&  movecontact
;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 620
triggerall =  var(59) = 1
triggerall = p2bodydist X <=60
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = A  &&  ctrl && life >0&& random<=748
trigger2 = (stateno = 600) &&  movecontact
trigger3 = (stateno = 610) &&  movecontact
trigger4 = (stateno = 620) &&  movecontact
trigger5 = (stateno = 630) &&  movecontact
trigger6 = (stateno = 640) &&  movecontact

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall =  var(59) = 1
triggerall = p2bodydist X <=50
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = A  &&  ctrl && life >0&& random<=773
trigger2 = (stateno = 600) &&  movecontact
trigger3 = (stateno = 610) &&  movecontact
trigger4 = (stateno = 640) &&  movecontact



;---------------------------------------------------------------------------
;Jump MEDIUM  Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall =  var(59) = 1
triggerall = p2bodydist X <=55
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = A  &&  ctrl && life >0&& random<=798
trigger2 = (stateno = 600) &&  movecontact
trigger3 = (stateno = 610) &&  movecontact
trigger4 = (stateno = 620) &&  movecontact
trigger5 = (stateno = 630) &&  movecontact
trigger6 = (stateno = 650) &&  movecontact

;---------------------------------------------------------------------------
;Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 650
type = ChangeState
value = 650
triggerall =  var(59) = 1
triggerall = p2bodydist X <=60
triggerall=p2StateType!=L && P2life >0
trigger1 =statetype = A  &&  ctrl && life >0&& random<=789
trigger2 = (stateno = 600) &&  movecontact
trigger3 = (stateno = 610) &&  movecontact
trigger4 = (stateno = 620) &&  movecontact
trigger5 = (stateno = 630) &&  movecontact
trigger6 = (stateno = 640) &&  movecontact

