[Statedef 40321]
type    = S
physics = S
anim = 40
ctrl = 0
sprpriority = 1

[State 40, 4]
type = VelSet
trigger1 = AnimTime = 0
trigger1 = var(45) = [5,7]
x = const(velocity.jump.fwd.x)
y = const(velocity.jump.y)

[State 40, 4]
type = VelSet
trigger1 = AnimTime = 0
trigger1 = var(45) = [8,10]
x = 0
y = const(velocity.jump.y)

[State 40, 6]
type = ChangeState
trigger1 = AnimTime = 0
value = 50

[Statedef 40322]
type    = S
physics = S
anim = 40
ctrl = 0
sprpriority = 1

[State 40, 4]
type = VelSet
trigger1 = AnimTime = 0
x = const(velocity.jump.back.x)
y = const(velocity.jump.y)

[State 40, 6]
type = ChangeState
trigger1 = AnimTime = 0
value = 50

[Statedef 100321]
type    = S
physics = S
anim = 100
sprpriority = 1
ctrl = 0

[State 1200, 9]
type = Width
trigger1 = 1
value = 4,3

[State 123, Light Hit Sound]
type = PlaySnd
trigger1 = animelem = 3
trigger2 = animelem = 6
value = 100,0

[State 100, 1]
type = VelSet
trigger1 = 1
x = const(velocity.run.fwd.x)

[State 100, 2] ;Prevent run from canceling into walk
type = AssertSpecial
trigger1 = 1
flag = NoWalk

[State 100, 3] ;Prevent from turning
type = AssertSpecial
trigger1 = 1
flag = NoAutoTurn

[State 100, 4]
type = ChangeState
trigger1 = p2statetype = A
trigger1 = p2bodydist X <= 60
value = 1600

[State 100, 4]
type = ChangeState
triggerall = var(45) = 6
trigger1 = p2statetype != A
trigger1 = p2statetype != L
trigger1 = p2bodydist X <= 13
value = 1500

[State 100, 4]
type = ChangeState
triggerall = var(45) = [9,10]
trigger1 = p2statetype != A
trigger1 = p2statetype != L
trigger1 = p2bodydist X <= 20
value = 800

[State 100, 4]
type = ChangeState
triggerall = var(45) = [7,8]
trigger1 = p2statetype != A
trigger1 = p2statetype != L
trigger1 = p2bodydist X <= 70
value = 710

[State 100, 4]
type = ChangeState
triggerall = var(45) = 5
trigger1 = p2statetype != A
trigger1 = p2statetype != L
trigger1 = p2bodydist X <= 65
value = 700

[State 100, 4]
type = ChangeState
trigger1 = time >= 12
trigger1 = p2statetype = A
trigger1 = random <= 333
trigger1 = p2bodydist X >= 101
trigger2 = time >= 6
trigger2 = random <= 333
trigger2 = Enemy, NumProj >= 1
trigger2 = p2bodydist X >= 101
trigger3 = time >= 10
trigger3 = random <= 111
trigger3 = p2movetype = A
trigger3 = p2bodydist X >= 151
value = 60321

[State 100, 4]
type = ChangeState
trigger1 = time >= 40
trigger2 = p2statetype = L
trigger2 = p2bodydist X <= 10
value = 0
ctrl = 1

[Statedef 60321]
type    = S
physics = S
anim = 60
ctrl = 0
vel = 0,0
sprpriority = 1

[State 40, 4]
type = velset
trigger1 = Time = 0
x = 0
y = 0

[State 40, 4]
type = posset
trigger1 = Time = 0
y = 0

[State 40, 4]
type = VelSet
trigger1 = AnimTime = 0
x = const(velocity.runjump.fwd.x)
y = const(velocity.jump.y)

[State 5110, 7]
type = GameMakeAnim
trigger1 = AnimTime = 0
value = 60
pos = 0,0
under = 1

[State 40, 6]
type = ChangeState
trigger1 = AnimTime = 0
value = 61
ctrl = 1

[Statedef 20321]
type    = S
MoveType = I
physics = S
sprpriority = 0
ctrl = 0

[State 20, 1]
type = VelSet
trigger1 = 1
x = const(velocity.walk.fwd.x)

[State 20, 3]
type = ChangeAnim
triggerall = vel x > 0
trigger1 = Anim != 20 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0
value = 20

[state -2, ]
type = ChangeState
value = Ifelse(EnemyNear,StateType = C,131,130)
triggerall = Var(51) = 1
triggerall = Random <= ifelse (StateType = A, 100, 500)
trigger1 = StateType != A && (Enemy, HitDefAttr = SCA, AA, SA ,HA ,AP, SP, HP)
trigger1 = MoveType = I && ((EnemyNear, MoveType = A  && P2BodyDist X <= 50) || (Enemy, NumProj >= 1))

[State 100, 4]
type = ChangeState
trigger1 = time >= 50
trigger1 = p2movetype != A
trigger1 = p2bodydist X > 100
trigger2 = var(45) = 5
value = 100321

[State 100, 4]
type = ChangeState
trigger1 = p2bodydist X <= 40
trigger1 = p2movetype = A
trigger2 = var(45) = 6
trigger2 = p2movetype != H
value = 108

[State 100, 4]
type = ChangeState
trigger1 = p2bodydist X = [25,30]
trigger1 = p2movetype = A
trigger1 = var(45) = [7,8]
value = 800

[State 100, 4]
type = ChangeState
trigger1 = p2bodydist X < 24
trigger2 = p2movetype = A
trigger2 = var(45) = [9,10]
trigger3 = time >= 70
value = 0
ctrl = 1