; Thanks to Falchion22 for this code
;------------------------------| AI Code Combo|-----------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; STAND_LIGHT_PUNCH
[Statedef 10000]
type = S
movetype = A
physics = S
anim = 200
poweradd = 5
velset = 0
ctrl = 0

[State 200, 1]
type = PlaySnd
trigger1 = Time = 0
value = 0,0

[State 200, 2]
type = PlaySnd
trigger1 = Time = 0
trigger1 = Random < 500
value = 1,0

[State 200, 3]
type = HitDef
trigger1 = AnimElem = 2
attr = S, NA
animtype = Light
damage = 10,1
getpower = 20, 10
givepower = 10, 5
guardflag = M
pausetime = 8,9
sparkxy = -25,-35
sparkno = 0
hitsound = S2,0
guardsound = 6,0
ground.type = High
ground.slidetime = 8
ground.hittime = 8
ground.velocity = -3.5
air.velocity = -2,-3
airguard.velocity = -3,-2.5

[State 200, 7]
type = ChangeState
trigger1 = movecontact && animelem = 2, >= 3
value = 10002
ctrl = 0

[State 200, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; STAND HIGH KICK
[Statedef 10002]
type = S
movetype = A
physics = S
anim = 220
poweradd = 20
juggle = 8
velset = 0
ctrl = 0

[State 220, 1]
type = PlaySnd
trigger1 = Time = 1
value = 0,0

[State 220, 2]
type = PlaySnd
trigger1 = AnimElem = 2
trigger1 = Random < 500
value = 1,0

[State 220, 3]
type = HitDef
trigger1 = AnimElem = 2
attr = S, NA
animtype = Light
damage = 10, 1
guardflag = M
getpower = 25, 12
givepower = 12, 6
pausetime = 10,10
sparkxy = -19,-39
hitsound = S2,0
guardsound = 6,0
ground.type = Low
ground.slidetime = 5
ground.hittime = 15
ground.velocity = -4
air.velocity = -1.3,-1

[State 200, 7]
type = ChangeState
trigger1 = movecontact && animelem = 2, >= 3
value = 10002
ctrl = 0

[State 220, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; STAND FIERCE KICK
[Statedef 10003]
type = S
movetype = A
physics = S
anim = 230
poweradd = 30
ctrl = 0
velset = 0

[State 230, 2]
type = PlaySnd
trigger1 = Time = 0
value = 0,1

[State 230, 3]
type = PlaySnd
trigger1 = Time = 0
trigger1 = Random < 500
value = 1,1

[State 230, 4]
type = HitDef
trigger1 = AnimElem = 3
attr = S, NA
animtype = Medium
damage = 15, 2
getpower = 32, 16
givepower = 16, 8
guardflag = M
pausetime = 12,12
sparkno = 1
sparkxy = -40,-32
hitsound = S2,1
guardsound = 6,0
ground.type = High
ground.slidetime = 20
ground.hittime = 23
ground.velocity = -7.5
air.velocity = -3.5,-3

[State 200, 7]
type = ChangeState
trigger1 = movecontact && animelem = 3, >= 3
value = 10002
ctrl = 0

[State 230, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; KNOCKDOWN_ATTACK
[Statedef 10004]
type    = S
movetype= A
physics = S
juggle  = 2
poweradd = 40
ctrl = 0
velset = 0,0
anim = 240

[State 240, 0]
type = VelSet
trigger1 = AnimElem = 3
x = 3
y = 0

[State 240, 1]
type = PlaySnd
trigger1 = AnimElem = 3
value = 0, 2

[State 240, 2]
type = PlaySnd
trigger1 = Random < 200
trigger1 = AnimElem = 2
value = 1,2

[State 240, 4]
type = HitDef
trigger1 = AnimElem = 4
attr = S, NA
animtype = DiagUp
damage = 40, 3
getpower = 25, 12
givepower = 12, 6
guardflag = M
pausetime = 12,12
sparkno = 2
sparkxy = -33,-57
hitsound = S2,3
guardsound = 6,0
ground.type = High
ground.slidetime = 20
ground.hittime = 23
ground.velocity = -5,-3
air.velocity = -3.5,-3
fall = 1

[State 241, Change]
type = Changestate
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; STAND_LIGHT_PUNCH 2
[Statedef 10010]
type = S
movetype = A
physics = S
anim = 200
poweradd = 5
velset = 0
ctrl = 0

[State 200, 1]
type = PlaySnd
trigger1 = Time = 0
value = 0,0

[State 200, Pos]
type = PosAdd
trigger1 = AnimElem = 1
x = 6

[State 200, 2]
type = PlaySnd
trigger1 = Time = 0
trigger1 = Random < 500
value = 1,0

[State 200, 3]
type = HitDef
trigger1 = AnimElem = 2
attr = S, NA
animtype = Light
damage = 10,1
getpower = 20, 10
givepower = 10, 5
guardflag = M
pausetime = 8,9
sparkxy = -25,-35
sparkno = 0
hitsound = S2,0
guardsound = 6,0
ground.type = High
ground.slidetime = 8
ground.hittime = 8
ground.velocity = -3.5
air.velocity = -2,-3
airguard.velocity = -3,-2.5

[State 200, 7]
type = ChangeState
trigger1 = movecontact && animelem = 2, >= 3
value = 10012
ctrl = 0

[State 200, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; STAND HIGH KICK 2
[Statedef 10012]
type = S
movetype = A
physics = S
anim = 220
poweradd = 20
juggle = 8
velset = 0
ctrl = 0

[State 200, Pos]
type = PosAdd
trigger1 = AnimElem = 1
x = 7

[State 220, 1]
type = PlaySnd
trigger1 = Time = 1
value = 0,0

[State 220, 2]
type = PlaySnd
trigger1 = AnimElem = 2
trigger1 = Random < 500
value = 1,0

[State 220, 3]
type = HitDef
trigger1 = AnimElem = 2
attr = S, NA
animtype = Light
damage = 10, 1
guardflag = M
getpower = 25, 12
givepower = 12, 6
pausetime = 10,10
sparkxy = -19,-39
hitsound = S2,0
guardsound = 6,0
ground.type = Low
ground.slidetime = 5
ground.hittime = 15
ground.velocity = -2
air.velocity = -1.3,-1

[State 200, 7]
type = ChangeState
trigger1 = movecontact && animelem = 2, >= 3
value = 10013
ctrl = 0

[State 220, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; STAND HIGH KICK 3
[Statedef 10013]
type = S
movetype = A
physics = S
anim = 220
poweradd = 20
juggle = 8
velset = 0
ctrl = 0

[State 200, Pos]
type = PosAdd
trigger1 = AnimElem = 1
x = 7

[State 220, 1]
type = PlaySnd
trigger1 = Time = 1
value = 0,0

[State 220, 2]
type = PlaySnd
trigger1 = AnimElem = 2
trigger1 = Random < 500
value = 1,0

[State 220, 3]
type = HitDef
trigger1 = AnimElem = 2
attr = S, NA
animtype = Light
damage = 10, 1
guardflag = M
getpower = 25, 12
givepower = 12, 6
pausetime = 10,10
sparkxy = -19,-39
hitsound = S2,0
guardsound = 6,0
ground.type = Low
ground.slidetime = 5
ground.hittime = 15
ground.velocity = -2
air.velocity = -1.3,-1

[State 200, 7]
type = ChangeState
trigger1 = movecontact && animelem = 2, >= 3
value = 10014
ctrl = 0

[State 220, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; STAND HIGH KICK 4
[Statedef 10014]
type = S
movetype = A
physics = S
anim = 220
poweradd = 20
juggle = 8
velset = 0
ctrl = 0

[State 200, Pos]
type = PosAdd
trigger1 = AnimELem = 1
x = 7

[State 220, 1]
type = PlaySnd
trigger1 = Time = 1
value = 0,0

[State 220, 2]
type = PlaySnd
trigger1 = AnimElem = 2
trigger1 = Random < 500
value = 1,0

[State 220, 3]
type = HitDef
trigger1 = AnimElem = 2
attr = S, NA
animtype = Light
damage = 10, 1
guardflag = M
getpower = 25, 12
givepower = 12, 6
pausetime = 10,10
sparkxy = -19,-39
hitsound = S2,0
guardsound = 6,0
ground.type = Low
ground.slidetime = 5
ground.hittime = 15
ground.velocity = -2
air.velocity = -1.3,-1

[State 200, 7]
type = ChangeState
trigger1 = movecontact && animelem = 2, >= 3
value = 10015
ctrl = 0

[State 220, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; FURY ATTACK HARD (1 time)
[Statedef 10015]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 40
velset = 0,0
anim = 1060
ctrl = 0

[State 1060, 1]
type = PlaySnd
trigger1 = Time = 0
value = 1,3
volume = 0

[State 1060, 1b]
type = PlaySnd
trigger1 = AnimElem = 3
value = 1001,0
volume = 0

[State 1060, 2]
type = VelSet
trigger1 = AnimElem = 3
x = 5

[State 1060, 3] 
type = HitDef
trigger1 = AnimElem = 4
attr = S, SA
animtype  = Hard
damage    = 30,6
getpower = 20,10
givepower = 10,5
priority  = 5
guardflag = MA
pausetime = 8,8
sparkxy = -18,-44
sparkno = 1
hitsound   = S1000,1
guardsound = S1000,3
ground.type = High
ground.slidetime = 17
ground.hittime  = 19
ground.velocity = -4
air.velocity = -4,-2.5

[State 1060, Command]
type = ChangeState
trigger1 = MoveContact && AnimElem = 5, = 1
value = 10016

[State 1060, end!!]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; FURY ATTACK HARD (2 time)
[Statedef 10016]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 40
velset = 0,0
anim = 1061
ctrl = 0

[State 1060, 1]
type = PlaySnd
trigger1 = Time = 0
value = 1,0
volume = 0

[State 1061, 1b]
type = PlaySnd
trigger1 = AnimElem = 4
value = 1001,0
volume = 0

[State 1020, 4]
type = VelSet
trigger1 = AnimElem = 4
x = 5

[State 1020, 6] 
type = HitDef
trigger1 = AnimElem = 5
attr = S, SA
animtype  = Hard
damage    = 30,6
getpower = 20,10
givepower = 10,5
priority  = 5
guardflag = MA
pausetime = 8,8
sparkxy = -18,-44
sparkno = 1
hitsound   = S1000,1
guardsound = S1000,3
ground.type = High
ground.slidetime = 17
ground.hittime  = 19
ground.velocity = -4
air.velocity = -4,-2.5

[State 1061, Command]
type = ChangeState
trigger1 = MoveContact && AnimElem = 6, = 1
value = 10017

[State 1061, end!!]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; FURY ATTACK HARD (3 time)
[Statedef 10017]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 40
velset = 0,0
anim = 1061
ctrl = 0

[State 1060, 1]
type = PlaySnd
trigger1 = Time = 0
value = 1,0
volume = 0

[State 1061, 1b]
type = PlaySnd
trigger1 = AnimElem = 4
value = 1001,0
volume = 0

[State 1020, 4]
type = VelSet
trigger1 = AnimElem = 4
x = 5

[State 1020, 6] 
type = HitDef
trigger1 = AnimElem = 5
attr = S, SA
animtype  = Hard
damage    = 30,6
getpower = 20,10
givepower = 10,5
priority  = 5
guardflag = MA
pausetime = 8,8
sparkxy = -18,-44
sparkno = 1
hitsound   = S1000,1
guardsound = S1000,3
ground.type = High
ground.slidetime = 17
ground.hittime  = 19
ground.velocity = -4
air.velocity = -4,-2.5

[State 1061, Command]
type = ChangeState
trigger1 = MoveContact && AnimElem = 6, = 1
value = 10018

[State 1061, end!!]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; FURY ATTACK HARD (4 time)
[Statedef 10018]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 40
velset = 0,0
anim = 1061
ctrl = 0

[State 1060, 1]
type = PlaySnd
trigger1 = Time = 0
value = 1,0
volume = 0

[State 1061, 1b]
type = PlaySnd
trigger1 = AnimElem = 4
value = 1001,0
volume = 0

[State 1020, 4]
type = VelSet
trigger1 = AnimElem = 4
x = 5

[State 1020, 6] 
type = HitDef
trigger1 = AnimElem = 5
attr = S, SA
animtype  = Hard
damage    = 30,6
getpower = 20,10
givepower = 10,5
priority  = 5
guardflag = MA
pausetime = 8,8
sparkxy = -18,-44
sparkno = 1
hitsound   = S1000,1
guardsound = S1000,3
ground.type = High
ground.slidetime = 17
ground.hittime  = 19
ground.velocity = -4
air.velocity = -4,-2.5

[State 1061, Command]
type = ChangeState
trigger1 = MoveContact && AnimElem = 6, = 1
value = 10019

[State 1061, end!!]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; FURY ATTACK HARD (end)
[Statedef 10019]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 60
velset = 0,0
anim = 1062
ctrl = 0

[State 1062, CounterFix]
type = VarSet
trigger1 = Time = 0
V = 3
value = 0

[State 1062, 1]
type = PlaySnd
trigger1 = Time = 0
value = 1,1
volume = 0

[State 1062, 1b]
type = PlaySnd
trigger1 = AnimElem = 4
value = 1001,1
volume = 0

[State 1020, 4]
type = VelSet
trigger1 = AnimElem = 4
x = 5

[State 1060, 6] 
type = HitDef
trigger1 = AnimElem = 5
attr = S, SA
animtype  = Back
damage    = 60,25
getpower = 25,10
givepower = 25,8
priority  = 5
guardflag = MA
pausetime = 21,21
sparkxy = -18,-44
sparkno = 2
hitsound   = S1000,2
guardsound = S1000,3
ground.type = High
ground.slidetime = 12
ground.hittime  = 20
ground.velocity = -8,-4
air.velocity = -8,-4
fall = 1

[State 1060, 7]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

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