;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]僟僢僔儏丂堏摦
;--------------------------------------------------
[StateDef 100]
Type = S
MoveType = I
Physics = N
Anim = 100
Ctrl = 0
VelSet = 0, 0
SprPriority = 1

[State 100, AssertSpecial]
Type = AssertSpecial
Trigger1 = 1
Flag = NoWalk
Flag2 = NoAutoTurn

[State 100, VelSet]
Type = VelSet
Trigger1 = Time = 5
X = Const(Velocity.Run.Fwd.X)

[State 100, PlaySnd]
Type = PlaySnd
Trigger1 = Time = 5
Value = S100, 20
Channel = 6

[State 100, AfterImage]
Type = AfterImage
Trigger1 = Time = 5
trigger1 = !ishelper(6904)
Time = 40
Length = 10
PalBright = 0, 0, 0
PalContrast = 192, 0, 0
PalAdd = -60, -60, -60
PalMul = 1, 1, 1
Trans = Add
TimeGap = 1
FrameGap = 3

[State 100, Helper];僟僢僔儏僄僼僃僋僩
Type = Helper
Trigger1 = Time = 5
Persistent = 0
OwnPal = 1
Facing = 1
PosType = P1
Pos = -2, -35
ID = 30020
StateNo = 30020
Name = " "
helpertype = player

[State 100, ChangeState]
Type = ChangeState
TriggerAll = Time > 16
Trigger1 = Command != "holdfwd"
Trigger2 = Time > 40
Value = 101

[State 100, ChangeState]
Type = ChangeState
TriggerAll = Time > 5
Trigger1 = Command = "holdfwd"
Trigger1 = Command = "holdup"
Value = 102

;Time = 6偐傜堏峴壜擻

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]僟僢僔儏丂掆巭
;--------------------------------------------------
[StateDef 101]
Type = S
MoveType = I
Physics = N
Anim = 101
Ctrl = 0
SprPriority = 1

[State 101, AssertSpecial]
Type = AssertSpecial
Trigger1 = 1
Flag = NoWalk
Flag2 = NoAutoTurn

[State 101, VelMul]
Type = VelMul
Trigger1 = 1
X = 0.92

[State 101, ChangeState]
Type = ChangeState
Trigger1 = AnimTime = 0
Value = 0
Ctrl = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]崅懍僕儍儞僾乮弨旛乯
;--------------------------------------------------
[StateDef 102]
Type = S
Physics = N
Anim = 102
Ctrl = 0
SprPriority = 1

[State 102, VelMul]
Type = VelMul
Trigger1 = 1
X = 0.96

[State 102, Helper];崅懍僕儍儞僾僄僼僃僋僩
Type = Helper
Trigger1 = AnimTime = 0
Persistent = 0
OwnPal = 1
PosType = P1
Pos = 0, 0
ID = 30000
StateNo = 30000
Name = " "
helpertype = player

[State 102, VarSet]
Type = VarSet
Trigger1 = Time = 0
sysvar(1) = 0

[State 102, VarSet]
Type = VarSet
Trigger1 = Time = 0
Trigger1 = Command = "holdfwd"
Trigger1 = Command != "holdback"
sysvar(1) = 1

[State 102, VarSet]
Type = VarSet
Trigger1 = Time = 0
Trigger1 = Command != "holdfwd"
Trigger1 = Command = "holdback"
sysvar(1) = -1

[State 102, VelSet]
Type = VelSet
Trigger1 = AnimTime = 0
X = IfElse((SysVar(1)=1), 4.5, (IfElse((SysVar(1)=-1), -4.5, 0)))
Y = IfElse(SysVar(1)=0, -9.5, -7.0)

[State 102, ChangeState]
Type = ChangeState
Trigger1 = AnimTime = 0
Value = 103
Ctrl = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]崅懍僕儍儞僾乮忋徃乯
;--------------------------------------------------
[StateDef 103]
Type = A
Physics = A

[State 103, ChangeAnim]
Type = ChangeAnim
Trigger1 = Time = 0
Value = IfElse((Vel X >0), 42, (IfElse((Vel X <0), 43, 41)))

[State 103, VarSet]
Type = VarSet
Trigger1 = Time = 0
sysvar(1) = 0

[State 103, AssertSpecial]
Type = AssertSpecial
Trigger1 = 1
Flag = NoAirGuard

[State 103, AfterImage]
Type = AfterImage
Trigger1 = Time = 0
trigger1 = !ishelper(6904)
Time = 40
Length = 10
PalBright = 0, 0, 0
PalContrast = 192, 0, 0
PalAdd = -60, -60, -60
PalMul = 1, 1, 1
Trans = Add
TimeGap = 1
FrameGap = 3

[State 103, ChangeState]
Type = ChangeState
Trigger1 = Vel Y > 0
Value = 51

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]僶僢僋僗僥僢僾丂堏摦
;--------------------------------------------------
[StateDef 105]
Type = S
MoveType = I
Physics = N
Anim = 105
Ctrl = 0
VelSet = 0, 0
SprPriority = 0

[State 105, StateTypeSet]
Type = StateTypeSet
Trigger1 = Time = 4
StateType = A

[State 105, AssertSpecial]
Type = AssertSpecial
Trigger1 = 1
Flag = NoWalk
Flag2 = NoAutoTurn

[State 105, VelSet]
Type = VelSet
Trigger1 = Time = 4
X = Const(Velocity.Run.Back.X)
Y = Const(Velocity.Run.Back.Y)

[State 105, VelAdd]
Type = VelAdd
Trigger1 = Time > 4
Y = 0.30

[State 105, PlaySnd]
Type = PlaySnd
Trigger1 = Time = 4
Value = S100, 20
Channel = 6

[State 105, AfterImage]
Type = AfterImage
Trigger1 = Time = 4
trigger1 = !ishelper(6904)
Time = 20
Length = 10
PalBright = 0, 0, 0
PalContrast = 192, 0, 0
PalAdd = -60, -60, -60
PalMul = 1, 1, 1
Trans = Add
TimeGap = 1
FrameGap = 3

[State 105, Helper];僶僢僋僗僥僢僾僄僼僃僋僩
Type = Helper
Trigger1 = Time = 4
Persistent = 0
OwnPal = 1
Facing = -1
PosType = P1
Pos = 3, -40
ID = 30020
StateNo = 30021
Name = " "
helpertype = player

[State 105, NotHitBy]
Type = NotHitBy
Trigger1 = 1
Value = SCA
Time = 3

[State 105, ChangeState]
Type = ChangeState
Trigger1 = Vel Y > 0
Trigger1 = Pos Y >= 0
Value = 106

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]僶僢僋僗僥僢僾丂掆巭
;--------------------------------------------------
[StateDef 106]
Type = S
MoveType = I
Physics = S
Anim = 106
Ctrl = 0
VelSet = 0, 0
SprPriority = 0

[State 106, AssertSpecial]
Type = AssertSpecial
Trigger1 = 1
Flag = NoWalk
Flag2 = NoAutoTurn

[State 106, ChangeState]
Type = ChangeState
Trigger1 = !ishelper(30004)
Trigger1 = AnimTime = 0
Value = 0
Ctrl = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]嬻拞僟僢僔儏
;--------------------------------------------------
[StateDef 110]
Type = A
MoveType = I
Physics = N
Anim = 110
Ctrl = 0
VelSet = 0, 0
SprPriority = 0

[State 110, StateTypeSet]
Type = StateTypeSet
Trigger1 = Time = 19
Physics = A

[State 110, VelSet]
Type = VelSet
Trigger1 = Time = 7
X = 27
Y = -2.0

[State 110, VelAdd]
Type = VelAdd
Trigger1 = Time > 7
Trigger1 = Time < 19
Y = 0.17

[State 110, PlaySnd]
Type = PlaySnd
Trigger1 = Time = 7
Value = S100, 20
Channel = 6

[State 110, AfterImage]
Type = AfterImage
Trigger1 = Time = 7
trigger1 = !ishelper(6904)
Time = 30
Length = 10
PalBright = 0, 0, 0
PalContrast = 192, 0, 0
PalAdd = -60, -60, -60
PalMul = 1, 1, 1
Trans = Add
TimeGap = 1
FrameGap = 3

[State 110, Helper];僟僢僔儏僄僼僃僋僩
Type = Helper
Trigger1 = Time = 7
Persistent = 0
OwnPal = 1
Facing = 1
PosType = P1
Pos = -2, -35
ID = 30020
StateNo = 30020
Name = " "
helpertype = player

[State 110, CtrlSet]
Type = CtrlSet
Trigger1 = Time = 12
Value = 1

[State 110, ChangeState]
Type = ChangeState
Trigger1 = Time > 24
Value = 51

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]嬻拞僶僢僋僟僢僔儏
;--------------------------------------------------
[StateDef 115]
Type = A
MoveType = I
Physics = N
Anim = 115
Ctrl = 0
VelSet = 0, 0
SprPriority = 0

[State 115, StateTypeSet]
Type = StateTypeSet
Trigger1 = Time = 14
Physics = A

[State 115, VelSet]
Type = VelSet
Trigger1 = Time = 2
X = -27
Y = -2.5

[State 115, VelAdd]
Type = VelAdd
Trigger1 = Time > 2
Trigger1 = Time < 14
Y = 0.25

[State 115, PlaySnd]
Type = PlaySnd
Trigger1 = Time = 2
Value = S100, 20
Channel = 6

[State 115, AfterImage]
Type = AfterImage
Trigger1 = Time = 2
trigger1 = !ishelper(6904)
Time = 40
Length = 10
PalBright = 0, 0, 0
PalContrast = 192, 0, 0
PalAdd = -60, -60, -60
PalMul = 1, 1, 1
Trans = Add
TimeGap = 1
FrameGap = 3

[State 115, Helper];僶僢僋僟僢僔儏僄僼僃僋僩
Type = Helper
Trigger1 = Time = 2
Persistent = 0
OwnPal = 1
Facing = -1
PosType = P1
Pos = 0, -60
ID = 30020
StateNo = 30021
Name = " "
helpertype = player

[State 115, CtrlSet]
Type = CtrlSet
Trigger1 = Time = 10
Value = 1

[State 115, ChangeState]
Type = ChangeState
Trigger1 = Time > 25
Value = 51

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]嬻拞傗傜傟丂峝捈
;--------------------------------------------------
[Statedef 7000]
Type = A
MoveType= H
Physics = N
Ctrl = 0
VelSet = 0, 0

[State 7000, ChangeAnim]
Type = ChangeAnim
Trigger1 = Time = 0
Value = 5030

[State 7000, ChangeAnim]
Type = ChangeAnim
Trigger1 = Time > 0
Value = Anim

[State 7000, SelfState]
Type = SelfState
Trigger1 = HitShakeOver
Value = 5030

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]夞揮傗傜傟丂峝捈
;--------------------------------------------------
;奺Anim偵偮偄偰
; 5975		夞揮傗傜傟丂奐巒仌夞揮
; 5977		夞揮傗傜傟丂捠忢僉儍儔梡
;
;------------------------------
[Statedef 7020]
Type = S
MoveType = H
Physics = N
Ctrl = 0
VelSet = 0, 0

[State 7020, SelfState]
Type = SelfState
Trigger1 = Life = 0
Value = 5020

;--------------------夞揮傗傜傟偵懳墳偟偰側偄僉儍儔
[State 7020, ChangeAnim]
Type = ChangeAnim
Trigger1 = !SelfAnimExist(5975)
Trigger1 = GetHitVar(HitShakeTime) > 0
Value = 5012

;--------------------夞揮傗傜傟偵懳墳偟偰偄傞僉儍儔
[State 7020, ChangeAnim]
Type = ChangeAnim
Trigger1 = SelfAnimExist(5975)
Trigger1 = GetHitVar(HitShakeTime) > 0
Value = 5975

;--------------------嫟捠張棟
[State 7020, PosSet]
Type = PosSet
Trigger1 = Time = 0
Y = 0

[State 7020, HitVelSet]
Type = HitVelSet
Trigger1 = GetHitVar(HitShakeTime) <= 2
X = 1

[State 7020, ChangeState]
Type = ChangeState
Trigger1 = GetHitVar(HitShakeTime) <= 1
Value = 7021

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]夞揮傗傜傟丂夞揮
;--------------------------------------------------
;奺Anim偵偮偄偰
; 5975		夞揮傗傜傟丂奐巒仌夞揮
; 5977		夞揮傗傜傟丂捠忢僉儍儔梡
;
;------------------------------
[Statedef 7021]
Type = S
MoveType = H
Physics = S

;--------------------夞揮傗傜傟偵懳墳偟偰側偄僉儍儔
[State 7021, ChangeAnim]
Type = ChangeAnim
Trigger1 = !SelfAnimExist(5975)
Value = 5012

[State 7021, PosAdd]
Type = PosAdd
Trigger1 = !SelfAnimExist(5975)
X = IfElse(Time%2=0, 1, -1)

;--------------------夞揮傗傜傟偵懳墳偟偰偄傞僉儍儔
[State 7021, ChangeAnim]
Type = ChangeAnim
Trigger1 = SelfAnimExist(5975)
Trigger1 = Time = 0
Value = 5975

;--------------------嫟捠張棟
[State 7021, HitVelSet]
Type = HitVelSet
Trigger1 = Time = 0
X = 1

[State 7021, HitFallSet]
Type = HitFallSet
Trigger1 = Time = 0
Value = 0

[State 7021, DefenceMulSet]
Type = DefenceMulSet
Trigger1 = HitOver
Value = 1

[State 7021, ChangeState]
Type = ChangeState
Trigger1 = Time = 25
Value = 7022

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]夞揮傗傜傟丂廔椆
;--------------------------------------------------
;奺Anim偵偮偄偰
; 5975		夞揮傗傜傟丂奐巒仌夞揮
; 5976		夞揮傗傜傟丂廔椆
; 5977		夞揮傗傜傟丂捠忢僉儍儔梡
;
;------------------------------
[Statedef 7022]
Type = S
MoveType = H
Physics = S
Velset = 0, 0

;--------------------夞揮傗傜傟偵懳墳偟偰側偄僉儍儔
[State 7022, ChangeAnim]
Type = ChangeAnim
Trigger1 = !SelfAnimExist(5975)
Value = 5012

;--------------------夞揮傗傜傟偵懳墳偟偰偄傞僉儍儔
[State 7022, ChangeAnim]
Type = ChangeAnim
Trigger1 = Anim = 5975
Trigger1 = SelfAnimExist(5976)
Trigger1 = Time = 0
Value = 5976

;--------------------嫟捠張棟
[State 7022, DefenceMulSet]
Type = DefenceMulSet
Trigger1 = HitOver
Value = 1

[State 7022, SelfState]
Type = SelfState
Trigger1 = Time = 9
Value = 0
Ctrl = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]挻昁嶦傗傜傟丂峝捈
;--------------------------------------------------
[StateDef 7030]
Type = A
MoveType= H
Physics = N
Anim = 5030
Ctrl = 0
VelSet = 0, 0

[State 7030, ChangeAnim]
Type = ChangeAnim
Trigger1 = Time > 0
Value = Anim

[State 7030, ChangeState]
Type = ChangeState
Trigger1 = HitShakeOver
Value = 7031

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]挻昁嶦傗傜傟丂悂偒旘傃
;--------------------------------------------------
[StateDef 7031]
Type = A
MoveType= H
Physics = N
Anim = IfElse(SelfAnimExist(5035), 5035, 5050)

[State 7031, ChangeAnim]
Type = ChangeAnim
Trigger1 = Anim = 5035
Trigger1 = AnimTime = 0
Value = 5050

[State 7031, HitVelSet]
Type = HitVelSet
Trigger1 = Time = 0
X = 1
Y = 1

[State 7031, VelAdd]
Type = VelAdd
Trigger1 = 1
Y = GetHitVar(YAccel)

[State 7031, SelfState]
Type = SelfState
Trigger1 = Vel Y > 0
Trigger1 = Pos Y >= 0
Value = 5100

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]挻昁嶦傗傜傟乮僇儊儔晄捛乯丂峝捈
;--------------------------------------------------
[StateDef 7035]
Type = A
MoveType= H
Physics = N
Anim = 5030
Ctrl = 0
VelSet = 0, 0

[State 7035, ChangeAnim]
Type = ChangeAnim
Trigger1 = Time > 0
Value = Anim

[State 7035, ScreenBound]
Type = ScreenBound
Trigger1 = 1
Value = 1
Movecamera = 1, 0

[State 7035, ChangeState]
Type = ChangeState
Trigger1 = HitShakeOver
Value = 7036

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]挻昁嶦傗傜傟乮僇儊儔晄捛乯丂悂偒旘傃
;--------------------------------------------------
[StateDef 7036]
Type = A
MoveType= H
Physics = N
Anim = IfElse(SelfAnimExist(5035), 5035, 5050)

[State 7031, ChangeAnim]
Type = ChangeAnim
Trigger1 = Anim = 5035
Trigger1 = AnimTime = 0
Value = 5050

[State 7036, HitVelSet]
Type = HitVelSet
Trigger1 = Time = 0
X = 1
Y = 1

[State 7036, VelAdd]
Type = VelAdd
Trigger1 = 1
Y = GetHitVar(YAccel)

[State 7036, ScreenBound]
Type = ScreenBound
Trigger1 = 1
Value = 1
Movecamera = 1, 0

[State 7036, SelfState]
Type = SelfState
Trigger1 = Vel Y > 0
Trigger1 = Pos Y >= 0
Value = 5100

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]暻僶僂儞僪傗傜傟丂峝捈
;--------------------------------------------------
[StateDef 7040]
Type = A
MoveType= H
Physics = N
Anim = 5030
Ctrl = 0
VelSet = 0, 0

[State 7040, ChangeAnim]
Type = ChangeAnim
Trigger1 = Time > 0
Value = Anim

[State 7040, ChangeState]
Type = ChangeState
Trigger1 = HitShakeOver
Value = 7041

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]暻僶僂儞僪傗傜傟丂悂偒旘傃
;--------------------------------------------------
[StateDef 7041]
Type = A
MoveType= H
Physics = N
Anim = IfElse(SelfAnimExist(5035), 5035, 5050)

[State 7041, ChangeAnim]
Type = ChangeAnim
Trigger1 = Anim = 5035
Trigger1 = AnimTime = 0
Value = 5050

[State 7041, HitVelSet]
Type = HitVelSet
Trigger1 = Time = 0
X = 1
Y = 1

[State 7041, VelAdd]
Type = VelAdd
Trigger1 = 1
Y = GetHitVar(YAccel)

[State 7041, SelfState]
Type = SelfState
Trigger1 = Vel Y > 0
Trigger1 = Pos Y >= 0
Value = 5100

[State 7041, ChangeState]
Type = ChangeState
TriggerAll = Time > 0
Trigger1 = (Vel X >0) && (FrontEdgeBodyDist < 3)
Trigger2 = (Vel X <0) && ( BackEdgeBodyDist < 3)
Value = 7042

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]暻僶僂儞僪傗傜傟丂暻僶僂儞僪
;--------------------------------------------------
[StateDef 7042]
Type = A
MoveType= H
Physics = N

[State 7042, VelSet]
Type = VelSet
Trigger1 = Time = 0
Y = 0

[State 7042, Turn]
Type = Turn
Trigger1 = Time = 0
Trigger1 = FrontEdgeBodyDist > BackEdgeBodyDist

[State 7042, PosFreeze]
Type = PosFreeze
Trigger1 = Time < 2

[State 7042, ChangeAnim]
Type = ChangeAnim
Trigger1 = Time < 2
Value = 5030

[State 7042, ChangeAnim2]
Type = ChangeAnim2
Trigger1 = Time = 2
Value = 7040

[State 7042, VelSet]
Type = VelSet
Trigger1 = Time = 2
X = -0.25*Abs(Vel X)
Y = -10

[State 7042, SelfState]
Type = SelfState
Trigger1 = Vel Y > 0
Trigger1 = Pos Y >= -0.5*Const(Size.Mid.Pos.Y)
Value = 5100

[State 7042, SelfState];暅婣傊
Type = SelfState
TriggerAll = Vel Y > 4
TriggerAll = Pos Y < -10
TriggerAll = Alive
TriggerAll = CanRecover
Trigger1 = (Command = "holdfwd") || (Command = "holdback")
Trigger1 = (Command = "a") || (Command = "b") || (Command = "c")
Value = 5210

;-----偙偙偐傜枅僼儗乕儉張棟
[State 7042, Offset]
Type = Offset
Trigger1 = Time >= 2
Y = Const(Size.Mid.Pos.Y)

[State 7042, VelAdd]
Type = VelAdd
Trigger1 = Time > 2
Y = GetHitVar(YAccel)

[State 7042, AngleDraw]
Type = AngleDraw
Trigger1 = Time > 2
Value = 30*(Time-2)

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[僿儖僷乕]憡庤暻僶僂儞僪敾掕丂憡庤偵挘晅偒
;--------------------------------------------------
[StateDef 7043]
Type = A
MoveType= I
Physics = N
Anim = 6900
Ctrl = 0

[State -2];儔僀僼僶乕偼忺傝
type = Lifeset
triggerall = ishelper
trigger1 = root,life = [1,1000]
value = root,life
ignorehitpause = 1

[State 7043, PosAdd]
Type = PosAdd
Trigger1 = Floor(P2Dist X) != 0
Trigger2 = Floor(P2Dist Y) != 0
X = Floor(P2Dist X)
Y = Floor(P2Dist Y)

[State 7043, ChangeState]
Type = ChangeState
TriggerAll = Time > 0
Trigger1 = P2StateNo = 7042
Trigger2 = P2StateNo = 7047
Value = 7044

[State 7043, DestroySelf]
Type = DestroySelf
Trigger1 = Time > 0
Trigger1 = P2StateNo != [7040,7042]
Trigger1 = P2StateNo != [7045,7047]

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[僿儖僷乕]憡庤暻僶僂儞僪敾掕丂岠壥壒
;--------------------------------------------------
[StateDef 7044]
Type = A
MoveType= I
Physics = N

[State -2];儔僀僼僶乕偼忺傝
type = Lifeset
triggerall = ishelper
trigger1 = root,life = [1,1000]
value = root,life
ignorehitpause = 1

[State 7044, PlaySnd]
Type = PlaySnd
Trigger1 = Time = 0
Value = S100, 11

[State 7044, EnvShake]
Type = EnvShake
Trigger1 = Time = 0
Time = 12
Freq = 100
Ampl = 3

[State 7044, DestroySelf]
Type = DestroySelf
Trigger1 = Time = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]彴僶僂儞僪傗傜傟丂峝捈
;--------------------------------------------------
[StateDef 7045]
Type = A
MoveType= H
Physics = N
Anim = 5030
Ctrl = 0
VelSet = 0, 0

[State 7045, ChangeAnim]
Type = ChangeAnim
Trigger1 = Time > 0
Value = Anim

[State 7045, ChangeState]
Type = ChangeState
Trigger1 = HitShakeOver
Value = 7046

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]彴僶僂儞僪傗傜傟丂悂偒旘傃
;--------------------------------------------------
[StateDef 7046]
Type = A
MoveType= H
Physics = N
Anim = IfElse(SelfAnimExist(5035), 5035, 5050)

[State 7046, ChangeAnim]
Type = ChangeAnim
Trigger1 = Anim = 5035
Trigger1 = AnimTime = 0
Value = 5050

[State 7046, HitVelSet]
Type = HitVelSet
Trigger1 = Time = 0
X = 1
Y = 1

[State 7046, VelAdd]
Type = VelAdd
Trigger1 = 1
Y = GetHitVar(YAccel)

[State 7046, ChangeState]
Type = ChangeState
Trigger1 = Vel Y > 0
Trigger1 = Pos Y >= -0.5*Const(Size.Mid.Pos.Y)
Value = 7047

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[憡庤]彴僶僂儞僪傗傜傟丂彴僶僂儞僪
;--------------------------------------------------
[StateDef 7047]
Type = A
MoveType= H
Physics = N

[State 7047, PosSet]
Type = PosSet
Trigger1 = Time = 0
Y = 0

[State 7047, VelSet]
Type = VelSet
Trigger1 = Time = 0
Y = 0

[State 7047, Turn]
Type = Turn
Trigger1 = Time = 0
Trigger1 = Vel X > 0

[State 7047, PosFreeze]
Type = PosFreeze
Trigger1 = Time < 2

[State 7047, ChangeAnim2]
Type = ChangeAnim2
Trigger1 = Time < 2
Value = 7045

[State 7047, ChangeAnim2]
Type = ChangeAnim2
Trigger1 = Time = 2
Value = 7040

[State 7047, VelSet]
Type = VelSet
Trigger1 = Time = 2
X = -0.25*Abs(Vel X)
Y = -10

[State 7047, SelfState]
Type = SelfState
Trigger1 = Vel Y > 0
Trigger1 = Pos Y >= -0.5*Const(Size.Mid.Pos.Y)
Value = 5100

[State 7047, SelfState];暅婣傊
Type = SelfState
TriggerAll = Vel Y > 4
TriggerAll = Pos Y < -10
TriggerAll = Alive
TriggerAll = CanRecover
Trigger1 = (Command = "holdfwd") || (Command = "holdback")
Trigger1 = (Command = "a") || (Command = "b") || (Command = "c")
Value = 5210

;-----偙偙偐傜枅僼儗乕儉張棟
[State 7047, Offset]
Type = Offset
Trigger1 = Time >= 2
Y = Const(Size.Mid.Pos.Y)

[State 7047, VelAdd]
Type = VelAdd
Trigger1 = Time > 2
Y = GetHitVar(YAccel)

[State 7047, AngleDraw]
Type = AngleDraw
Trigger1 = Time > 2
Value = 30*(Time-2)

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[僿儖僷乕]俫俹昞帵仌僆乕儔乮superpause拞乯
;--------------------------------------------------
;奺Var偵偮偄偰乮St6900撈帺乯
;var(4)  巰朣僼儔僌
;var(5)  侾俀俹廔椆僼儔僌
;var(6)  侾俀俹慛寣帪娫掆巭夝彍
;var(7)  侾俀俹慛寣帪娫掆巭夝彍曗彆
;var(8)  侾俀俹慛寣帪娫掆巭夝彍曗彆
;var(26) 侾俀俹慛寣
;var(27) 侾俀俹慛寣
;var(28) 侾俀俹慛寣
;var(29) 侾俀俹慛寣
;var(30) 侾俀俹慛寣
;var(31) 俇俹杮懱hitdef僗僀僢僠俁
;var(32) 俇俹杮懱hitdef僗僀僢僠俀
;var(33) 俇俹杮懱hitdef僗僀僢僠侾
;var(34) 杮懱峌寕妋擣曗彆
;var(35) 杮懱峌寕妋擣
;var(36) 俇俹帪娫掆巭
;var(37) 俇俹俫俹侽
;var(38) 侾俀俹慛寣揋俫俹婰壇
;var(39) 傾乕儅乕娔帇
;var(40) 撪晹俫俹
;var(41) 僗僩乕儕乕
;var(42) 僩儉僉儔乕丒傾儅僥儔僗
;var(44) 儔僀僼僶乕偼忺傝
;var(45) 儔僀僼僶乕偼忺傝僇僂儞僩
;var(46) 憐掕奜偺僗僥乕僩僇僂儞僩
;var(47) 俇俹僗僥乕僩屌掕
;fvar(0) 娤嶡
;------------------------------
[StateDef 6900]
Type    = A
Movetype= I
Physics = N
Anim = 10000

[State -2];柍揋
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1

[State 1000, 0]
Type = BindToRoot
trigger1 = root,stateno = [89011,89012]
trigger2 = root,palno = 12
trigger2 = root,stateno = 89012
trigger2 = root,time = [0,49]
Facing = 1
Pos = 0,20
ignorehitpause = 1

[State 1000, 0]
Type = posset
trigger1 = root,stateno != [89011,89012]
trigger1 = !(root,palno = 12 && root,stateno = 89012 && root,time = [0,49])
x = 200
y = 300
ignorehitpause = 1

[State 6115, 摟柧搙]
Type = Trans
trigger1 = root,stateno = [89011,89012]
trigger1 = var(47) != 8901
Trans = Add
ignorehitpause = 1

[State 6115, 摟柧搙]
Type = Trans
trigger1 = root,stateno = [89011,89012]
trigger1 = var(47) = 8901
Trans = sub
ignorehitpause = 1

[State 310 , blink]
type = PalFX
trigger1 = time = 0
time = -1
add = 100,-180,-180
sinadd = -80,-80,-80,10
color = 0 
invertall = 1
persistent = 30
ignorehitpause = 1

[State 6115, 妏搙傪桳岠]
Type = AngleDraw
trigger1 = root,stateno = [89011,89012]
Scale = 2.5,2.5
ignorehitpause = 1

[State -26]
type = ChangeAnim
trigger1 = root,stateno = 89011
trigger2 = root,palno = 12
trigger2 = root,stateno = 89012
trigger2 = root,time = [0,49]
value = root,anim
ignorehitpause = 1

[State -2]
Type = AssertSpecial
trigger1 = root,stateno != [89011,89012]
trigger2 = root,stateno = 89012
trigger2 = root,time >= 50
IgnoreHitPause = 1
Flag  = invisible

[State -21];帪娫搥寢
type = varset
trigger1 = root,stateno = 1603 && root,palno = 6
trigger1 = root,time = 10
var(36) = 890*(var(36) = 0) + 8901*(var(36) = 890)
ignorehitpause = 1

[State -2];帪娫搥寢
Type = AssertSpecial
Triggerall = numenemy
Triggerall = root,palno != 10
Triggerall = (p2name!="F1"&&p4name!="F1")||(enemynear,alive&&root,numpartner = 0)
Triggerall = !((root,palno = 6 || root,palno = 12) && var(6) > 35016)
Triggerall = !(root,palno = 11 && var(6) > 35016 && root,var(35)=0)
Triggerall = !(root,palno = 11 && roundno > 1 && root,numpartner = 0 && root,var(35) = 0)
Trigger1 = root,palno != 6
Trigger2 = root,var(58) != [0,1]
Trigger3 = var(36) != 890 && var(36) != 8901
Trigger4 = var(31) = 890106
IgnoreHitPause = 1
Flag = TimerFreeze

[State -2]
Type = AssertSpecial
Trigger1 = 1
IgnoreHitPause = 1
Flag = Noshadow

[State -2];攚宨柍偟
Type = AssertSpecial
Triggerall = root,numexplod(8958) = 0
Trigger1 = root,palno = 12
Trigger2 = root,palno != 12
Trigger2 = var(41) >= 2
Trigger3 = root,numexplod(8970)
Trigger4 = root,numexplod(8971)
IgnoreHitPause = 1
Flag = nobg
Flag2 = NoFG

[State -2];攚宨柍偟
Type = AssertSpecial
Trigger1 = root,numexplod(8958)
IgnoreHitPause = 1
Flag = nobardisplay

[State 1000, 0]
Type = BGPalFX
Trigger1 = root,numexplod(8958)
Time = 1
Add = 255,-255,-255
IgnoreHitPause = 1

;壒妝掆巭
[State -2]
Type = AssertSpecial
triggerall = root,var(39) != 1
triggerall = roundstate > 1
trigger1 = Var(41) >= 3
trigger2 = Var(41) = 2
trigger2 = root,stateno = 89016
IgnoreHitPause = 1
flag = nomusic

;僗僩乕儕乕壒妝
[State 4]
type = stopSnd
triggerall = root,var(39) != 1
triggerall = roundstate > 1
trigger1 = Var(41) >= 3
trigger2 = Var(41) = 2
trigger2 = root,stateno = 89016
channel = -1
persistent = 0
ignorehitpause = 1

;僗僩乕儕乕壒妝
[State 4]
type = PlaySnd
triggerall = root,var(39) != 1
triggerall = roundstate > 1
trigger1 = Var(41) >= 3
trigger2 = Var(41) = 2
trigger2 = root,stateno = 89016
value = 8901,0
loop = 1
persistent = 0
ignorehitpause = 1

[State 4]
type = stopSnd
triggerall = roundstate > 1
trigger1 = root,palno = 11
trigger1 = root,var(59) < 10 || gametime%263 = 1
channel = -1
persistent = 99
ignorehitpause = 1

[State 1]
Type = PlaySnd
triggerall = roundstate > 1
trigger1 = root,palno = 11
trigger1 = root,var(59) < 10 || gametime%263 = 1
Value = s904,0
persistent = 99
ignorehitpause = 1

[State 1]
Type = PlaySnd
triggerall = roundstate > 1
triggerall = root,palno = 11
triggerall = root,var(59) < 35 || gametime%135 = 1
trigger1 = var(6) > 35016
trigger2 = var(6) = [28901,33506]
Value = s904,1
persistent = 35
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭丂楈椡僎乕僕昞帵

;--------------------楈椡僎乕僕榞傪昞帵
[State 6900, Explod];1P懁楈椡僎乕僕丂榞乮儃儉俀乯
Type = Explod
Trigger1 = roundstate > 1
Trigger1 = TeamSide = 1
Trigger1 = NumExplod(6912) = 0
Anim = 6912
ID = 6912
Pos = (Root,Var(36)), (Root,Var(37))
PosType = Left
SprPriority = 9
Facing = 1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.495, 0.5
ignorehitpause = 1

[State 6900, Explod];2P懁楈椡僎乕僕丂榞乮儃儉俀乯
Type = Explod
Trigger1 = roundstate > 1
Trigger1 = TeamSide = 2
Trigger1 = NumExplod(6912) = 0
Anim = 6912
ID = 6912
Pos = -(Root,Var(36)), (Root,Var(37))
PosType = Right
SprPriority = 9
Facing = -1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.495, 0.5
ignorehitpause = 1

;--------------------楈椡僎乕僕傪昞帵
[State 6900, Explod];1P懁楈椡僎乕僕丂僎乕僕惵
Type = Explod
Trigger1 = roundstate > 1
Trigger1 = numhelper(890)
Trigger1 = Var(40) = [751,1000]
Trigger1 = TeamSide = 1
Trigger1 = NumExplod(6915) = 0
Anim = 6915
ID = 6915
Pos = (Root,Var(36)), (Root,Var(37))
PosType = Left
SprPriority = 10
Facing = 1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.5
ignorehitpause = 1

[State 6900, Explod];1P懁楈椡僎乕僕丂僎乕僕椢
Type = Explod
Trigger1 = roundstate > 1
Trigger1 = numhelper(890)
Trigger1 = Var(40) = [501,750]
Trigger1 = TeamSide = 1
Trigger1 = NumExplod(6916) = 0
Anim = 6916
ID = 6916
Pos = (Root,Var(36)), (Root,Var(37))
PosType = Left
SprPriority = 10
Facing = 1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.5
ignorehitpause = 1

[State 6900, Explod];1P懁楈椡僎乕僕丂僎乕僕墿
Type = Explod
Trigger1 = roundstate > 1
Trigger1 = numhelper(890)
Trigger1 = Var(40) = [251,500]
Trigger1 = TeamSide = 1
Trigger1 = NumExplod(6917) = 0
Anim = 6917
ID = 6917
Pos = (Root,Var(36)), (Root,Var(37))
PosType = Left
SprPriority = 10
Facing = 1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.5
ignorehitpause = 1

[State 6900, Explod];1P懁楈椡僎乕僕丂僎乕僕愒
Type = Explod
Trigger1 = roundstate > 1
Trigger1 = numhelper(890)
Trigger1 = Var(40) = [126,250]
Trigger1 = TeamSide = 1
Trigger1 = NumExplod(6919) = 0
Anim = 6919
ID = 6919
Pos = (Root,Var(36)), (Root,Var(37))
PosType = Left
SprPriority = 10
Facing = 1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.5
ignorehitpause = 1

[State 6900, Explod];1P懁楈椡僎乕僕丂僎乕僕揰柵
Type = Explod
Trigger1 = roundstate > 1
Trigger1 = numhelper(890)
Trigger1 = Var(40) = [1,125]
Trigger1 = TeamSide = 1
Trigger1 = NumExplod(6918) = 0
Trigger1 = Var(4) != 890106
Anim = 6918
ID = 6918
Pos = (Root,Var(36)), (Root,Var(37))
PosType = Left
SprPriority = 10
Facing = 1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.5
ignorehitpause = 1

[State 6900, Explod];2P懁楈椡僎乕僕丂僎乕僕惵
Type = Explod
Trigger1 = roundstate > 1
Trigger1 = numhelper(890)
Trigger1 = Var(40) = [751,1000]
Trigger1 = TeamSide = 2
Trigger1 = NumExplod(6915) = 0
Anim = 6915
ID = 6915
Pos = -(Root,Var(36)), (Root,Var(37))
PosType = Right
SprPriority = 10
Facing = -1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.5
ignorehitpause = 1

[State 6900, Explod];2P懁楈椡僎乕僕丂僎乕僕椢
Type = Explod
Trigger1 = roundstate > 1
Trigger1 = numhelper(890)
Trigger1 = Var(40) = [501,750]
Trigger1 = TeamSide = 2
Trigger1 = NumExplod(6916) = 0
Anim = 6916
ID = 6916
Pos = -(Root,Var(36)), (Root,Var(37))
PosType = Right
SprPriority = 10
Facing = -1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.5
ignorehitpause = 1

[State 6900, Explod];2P懁楈椡僎乕僕丂僎乕僕墿
Type = Explod
Trigger1 = roundstate > 1
Trigger1 = numhelper(890)
Trigger1 = Var(40) = [251,500]
Trigger1 = TeamSide = 2
Trigger1 = NumExplod(6917) = 0
Anim = 6917
ID = 6917
Pos = -(Root,Var(36)), (Root,Var(37))
PosType = Right
SprPriority = 10
Facing = -1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.5
ignorehitpause = 1

[State 6900, Explod];2P懁楈椡僎乕僕丂僎乕僕愒
Type = Explod
Trigger1 = roundstate > 1
Trigger1 = numhelper(890)
Trigger1 = Var(40) = [126,250]
Trigger1 = TeamSide = 2
Trigger1 = NumExplod(6919) = 0
Anim = 6919
ID = 6919
Pos = -(Root,Var(36)), (Root,Var(37))
PosType = Right
SprPriority = 10
Facing = -1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.5
ignorehitpause = 1

[State 6900, Explod];2P懁楈椡僎乕僕丂僎乕僕揰柵
Type = Explod
Trigger1 = roundstate > 1
Trigger1 = numhelper(890)
Trigger1 = Var(40) = [1,125]
Trigger1 = TeamSide = 2
Trigger1 = NumExplod(6918) = 0
Trigger1 = Var(4) != 890106
Anim = 6918
ID = 6918
Pos = -(Root,Var(36)), (Root,Var(37))
PosType = Right
SprPriority = 10
Facing = -1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.5
ignorehitpause = 1

;--------------------楈椡僎乕僕偺挿偝傪曄壔
[State 6900, ModifyExplod];僎乕僕惵
type = ModifyExplod
Trigger1 = NumExplod(6915) > 0
Trigger1 = numhelper(890)
ID = 6915
Scale = 0.0005*(Var(40)), 0.5
ignorehitpause = 1

[State 6900, ModifyExplod];僎乕僕椢
type = ModifyExplod
Trigger1 = NumExplod(6916) > 0
Trigger1 = numhelper(890)
ID = 6916
Scale = 0.0005*(Var(40)), 0.5
ignorehitpause = 1

[State 6900, ModifyExplod];僎乕僕墿
type = ModifyExplod
Trigger1 = NumExplod(6917) > 0
Trigger1 = numhelper(890)
ID = 6917
Scale = 0.0005*(Var(40)), 0.5
ignorehitpause = 1

[State 6900, ModifyExplod];僎乕僕揰柵
type = ModifyExplod
Trigger1 = NumExplod(6918) > 0
Trigger1 = numhelper(890)
ID = 6918
Scale = 0.0005*(Var(40)), 0.5
ignorehitpause = 1

[State 6900, ModifyExplod];僎乕僕愒
type = ModifyExplod
Trigger1 = NumExplod(6919) > 0
Trigger1 = numhelper(890)
ID = 6919
Scale = 0.0005*(Var(40)), 0.5
ignorehitpause = 1

[State 6900, RemoveExplod];僎乕僕惵
Type = RemoveExplod
TriggerAll = NumExplod(6915) > 0
Trigger1 = Var(40) != [751,1000]
ID = 6915
ignorehitpause = 1

[State 6900, RemoveExplod];僎乕僕椢
Type = RemoveExplod
TriggerAll = NumExplod(6916) > 0
Trigger1 = Var(40) != [501,750]
ID = 6916
ignorehitpause = 1

[State 6900, RemoveExplod];僎乕僕墿
Type = RemoveExplod
TriggerAll = NumExplod(6917) > 0
Trigger1 = Var(40) != [251,500]
ID = 6917
ignorehitpause = 1

[State 6900, RemoveExplod];僎乕僕揰柵
Type = RemoveExplod
TriggerAll = NumExplod(6918) > 0
Trigger1 = Var(40) != [1,125]
Trigger2 = Var(4) = 890106
ID = 6918
ignorehitpause = 1

[State 6900, RemoveExplod];僎乕僕愒
Type = RemoveExplod
TriggerAll = NumExplod(6919) > 0
Trigger1 = Var(40) != [126,250]
ID = 6919
ignorehitpause = 1

;--------------------抏僸僢僩壒嵞惗

[State 6900, PlaySnd];懪寕彫
Type = PlaySnd
Trigger1 = Parent,Var(17) = 1
Value = S100, 0
Channel = 7
ignorehitpause = 1

[State 6900, PlaySnd];懪寕拞
Type = PlaySnd
Trigger1 = Parent,Var(17) = 2
Value = S100, 1
Channel = 7
ignorehitpause = 1

[State 6900, PlaySnd];懪寕戝
Type = PlaySnd
Trigger1 = Parent,Var(17) = 3
Value = S100, 2
Channel = 7
ignorehitpause = 1

[State 6900, PlaySnd];懪寕摿戝
Type = PlaySnd
Trigger1 = Parent,Var(17) = 4
Value = S100, 3
Channel = 7
ignorehitpause = 1

[State 6900, PlaySnd];抏
Type = PlaySnd
Trigger1 = Parent,Var(17) = 5
Value = S100, 8
Channel = 7
ignorehitpause = 1

;--------------------抏僸僢僩壒惂屼

[State 6900, ParentVarSet];僸僢僩
Type = ParentVarSet
Trigger1 = Parent,Var(17) > 0
V = 17
Value = 0
ignorehitpause = 1


;--------------------
;僔僗僥儉
;--------------------
;--------------------杮懱俫俹
[State -21]
type = varset
trigger1 = root,stateno = 8908 && root,palno = 6
trigger1 = root,time = 10
trigger2 = roundstate != 2
trigger3 = root,var(58) != [0,1]
trigger4 = var(31) = 890106 && var(37) = 890
trigger4 = root,stateno != 8913
var(37) = 890*(var(37) != 890)*(roundstate = 2)*(root,var(58) = [0,1])
ignorehitpause = 1

[State -21]
type = varset
Trigger1 = roundstate <= 1
trigger1 = Var(44) != [0,699]
var(44) = 0
ignorehitpause = 1

[State -21]
type = varset
triggerall = root,palno = [10,11]
trigger1 = var(40) = [1,1000]
var(44) = 400+ceil((1000 - var(40))*0.3)
ignorehitpause = 1

[State -21]
type = varadd
Triggerall = roundstate = 2
Trigger1 = root,palno != 6
Trigger2 = root,palno = 6
Trigger2 = root,var(58) > 1 || (root,var(33) && var(37) != 890)
var(45) = 1
ignorehitpause = 1

[State -21]
type = varadd
Triggerall = roundstate = 2
triggerall = Var(44) = [0,698]
triggerall = root,palno != [10,11]
trigger1 = Var(45) = [1,1200]
trigger1 = (Var(45))%8 = 1
trigger2 = Var(45) = [1201,3600]
trigger2 = (Var(45))%12 = 1
trigger3 = Var(45) = [3601,9600]
trigger3 = (Var(45))%24 = 1
trigger4 = Var(45) > 9600
trigger4 = (Var(45))%36 = 1
var(44) = 1
ignorehitpause = 1

[State -21]
type = varset
Trigger1 = roundstate > 1
trigger1 = Var(44) != [0,699]
var(44) = 699
ignorehitpause = 1

;--------------------傾乕儅乕娔帇
[State -21]
type = varadd
Trigger1 = roundstate = 2
Trigger1 = time > 5
Trigger1 = numhelper(890)
Trigger1 = helper(890),time = 2
Trigger1 = root,palno = 10 || root,stateno != [1060,1075]
trigger1 = Var(39) = 0
trigger2 = Var(39) = 1
var(39) = 1
ignorehitpause = 1

;傾乕儅乕娔帇
[State -21]
type = varset
Trigger1 = roundstate = 2
Trigger1 = numhelper(890)
Trigger1 = helper(890),time >= 60
trigger1 = Var(39) != 0
var(39) = 0
ignorehitpause = 1

;--------------------侾俀俹埲奜俫俹尭彮
[State -21];巰朣僼儔僌
type = varset
triggerall = root,palno != [10,12]
Triggerall = roundstate = 2
triggerall = Var(39) = 1
Triggerall = root,stateno != [1060,1075]
trigger1 = root,palno != 1
trigger1 = root,palno != 6
trigger1 = root,palno != 7
trigger1 = Var(40) = [2,60]
trigger2 = Var(40) = [2,40]
var(40) = 1
ignorehitpause = 1

[State -21];巰朣僼儔僌乮俇丒侾侽俹乯
type = varset
Triggerall = roundstate = 2
Triggerall = !(root,var(25) = 1 && root,palno = 6)
trigger1 = root,palno = 6
trigger1 = Var(39) = 1
Trigger1 = root,stateno != [1060,1075]
trigger1 = Var(40) = 1
trigger2 = root,palno = 10
trigger2 = numhelper(6904)
trigger2 = helper(6904),stateno = 8915
trigger2 = helper(6904),time > 90
var(4) = 890106
ignorehitpause = 1

[State -21];俫俹尭彮
type = varadd
triggerall = root,palno != [10,12]
Triggerall = roundstate = 2
triggerall = Var(39) = 1
Triggerall = numhelper(890)
Triggerall = root,stateno != [1060,1075]
trigger1 = Var(40) = [61,1000]
var(40) = -60+40*(root,palno=6)+20*(helper(890),var(35) != 0)
ignorehitpause = 1

[State -21];俫俹尭彮
type = varadd
triggerall = root,palno = 10
Triggerall = roundstate = 2
triggerall = Var(39) = 1
Triggerall = numhelper(890)
trigger1 = root,var(24) = [2,20]
trigger1 = Var(40) >= 1000 - (root,var(24) -1)*floor(999/root,var(24))
trigger1 = enemynear,movetype = A
trigger1 = root,fvar(13) = [-111,111]
trigger1 = root,fvar(14) = [-89,89]
var(40) =-floor(999/root,var(24))
ignorehitpause = 1

[State -21];俫俹尭彮
type = varadd
triggerall = root,palno = 11
Triggerall = roundstate = 2
triggerall = Var(39) = 1 || gametime%300 = 1
Triggerall = numhelper(890)
trigger1 = Var(40) = [51,1000]
var(40) =-(Var(40)=[890,1000])-(Var(40)=[351,1000])-(random%2=0)*(Var(40)=[151,350])-(random%3 =0)*(Var(40)=[51,150])
ignorehitpause = 1

[State -21];俫俹尭彮
type = varadd
Triggerall = roundstate = 2
triggerall = Var(39) = 1
Triggerall = root,stateno != [1060,1075]
triggerall = Var(40) = [41,1000]
trigger1 = root,palno = 1
trigger2 = root,palno = 7
var(40) = -20
ignorehitpause = 1

[State -21];弶婜愝掕
type = varset
Trigger1 = NumHelper(890)
trigger1 = Var(40) != [1,1000]
trigger2 = (root,palno = 12 || root,palno = 6) && numenemy
trigger2 = ((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1"))) || (p2name="kaioh"||p4name="kaioh")
var(40) = 1000
ignorehitpause = 1

;--------------------杮懱峌寕妋擣
[State -21]
type = varadd
trigger1 = root,time = 698
var(34) = 1
persistent = 600
ignorehitpause = 1

[State -21]
type = varset
trigger1 = (root,stateno = [200,240])||(root,stateno = [400,440])||(root,stateno = [600,620])
trigger2 = (root,stateno = [1000,1075])||(root,stateno = [3021,3164])||root,stateno = 800
trigger3 = (root,stateno = [3520,3564])||(root,stateno = [89011,89034])||root,stateno = 1603
trigger4 = (root,stateno = [8901,8914])
var(35) = 890
ignorehitpause = 1

;--------------------俇俹愱梡
[State -21];儀儂儅
type = varadd
Triggerall = root,stateno = 8901
triggerall = root,time = [8,67]
trigger1 = root,palno = 6
trigger1 = var(40) = [1,999]
var(40) = 17
ignorehitpause = 1

[State 1000, 斀嵃]
type = Explod
trigger1 = root,stateno = 8910
trigger1 = roundstate = 3
anim = 8978
id = 8978
sprpriority = 9999999999999999
postype = back
scale = 1.3,1.3
pos = 0,0
BindTime = -1
trans = add
ontop = 1
ownpal = 1
ignorehitpause = 1
persistent = 0
pausemovetime = 999999999
supermovetime = 999999999

[State 1000, 斀嵃]
type = playsnd
trigger1 = root,stateno = 8910
trigger1 = roundstate = 3
persistent = 0
value = 896,1
ignorehitpause = 1

[State -21]
type = varset
trigger1 = root,stateno = 8912 && root,palno = 6
trigger1 = root,time = 1
trigger2 = roundstate != 2
trigger3 = root,var(58) != [0,1]
var(47) = 8901*(var(47) != 8901)*(roundstate = 2)*(root,var(58) = [0,1])
ignorehitpause = 1

[State -21]
type = varset
trigger1 = root,stateno = 8913 && root,palno = 6 && root,var(58) = 1
trigger1 = root,time = 2 && var(32) = 8901
var(31) = 890106*(var(33) = 890)
ignorehitpause = 1

[State -21]
type = varset
trigger1 = root,stateno = 8913 && root,palno = 6 && root,var(58) = 1
trigger1 = root,time = 2
trigger2 = var(32) = 8901 && root,stateno != 8913
trigger2 = var(31) != 890106
var(32) = 8901*(root,stateno = 8913)*(var(33) = 890)
ignorehitpause = 1

[State -21]
type = varset
trigger1 = root,stateno = 8913 && root,palno = 6 && root,var(58) = 1
trigger1 = root,time = 2 && var(33) != 890
trigger2 = var(33) = 890 && root,stateno != 8913
trigger2 = var(31) != 890106
trigger3 = var(33) = 890 && root,stateno = 8913
trigger3 = root,time = 1 && var(31) = 890106
var(33) = 890*(root,stateno = 8913)*(var(31) != 890106)
ignorehitpause = 1

;-------------------侾俀俹埲奜僗僩乕儕乕
;僗僩乕儕乕奐巒
[State -21]
type = varset
triggerall = root,palno != 12
triggerall = root,palno != 6
trigger1 = root,palno != [10,11]
Trigger1 = roundstate = 2
trigger1 = Var(39) = 1
Trigger1 = root,var(58) != [0,1]
Trigger1 = root,var(52) <= 0
trigger1 = Var(40) = [1,200]
var(41) = 1
ignorehitpause = 1

[State -21];俫俹夞暅
type = varset
triggerall = root,palno != 12
trigger1 = Var(41) = 1
Trigger1 = root,stateno = 35
Trigger1 = root,time > 54
var(40) = 1000
ignorehitpause = 1

[State -21];傾儅僥儔僗敪摦
type = varset
triggerall = root,palno != 12
trigger1 = Var(41) = 1
Trigger1 = var(40) = 1000
trigger2 = Var(41) = [0,1]
trigger2 = root,var(52) = 1
var(41) = 2 
ignorehitpause = 1

[State -21];傾儅僥儔僗俫俹尭彮儃乕僫僗
type = varadd
triggerall = root,palno != 12
Trigger1 = roundstate = 2
trigger1 = Var(41) = 3
trigger1 = Var(39) = 1
trigger1 = Var(40) = [41,1000]
trigger1 = numhelper(890)
Trigger1 = helper(890),stateno = 891
var(40) = -40
ignorehitpause = 1

;-------------------侾俀俹僗僩乕儕乕乮嫟捠崁栚娷傓乯
;侾俀俹僉儞僌僋儕儉僝儞屻敿傊
[State -21]
type = varset
triggerall = root,palno = 12
trigger1 = Var(41) = 0
trigger1 = root,stateno = 89012
var(41) = 1
ignorehitpause = 1

;侾俀俹僩儉僉儔乕僇僂儞僩
[State -21]
type = varadd
triggerall = root,palno = 12
trigger1 = root,stateno = [89012,89013]
trigger2 = root,stateno = 890107
trigger3 = numhelper(89014)
trigger4 = root,stateno = [89016,89017]
var(42) = 1
ignorehitpause = 1

;侾俀俹僉儞僌僋儕儉僝儞屻敿廔椆
[State -21]
type = varset
triggerall = root,palno = 12
triggerall = Var(41) = [0,1]
trigger1 = var(42) > 240
trigger2 = root,var(52) = 1
var(41) = 2
ignorehitpause = 1

[State -21]
type = varset
trigger1 = var(41) > 3
var(42) = 0
ignorehitpause = 1

;傾儅僥儔僗敪摦妋擣乮嫟捠乯
[State -21]
type = varset
trigger1 = Var(41) = 2
trigger1 = root,stateno = 89017
var(41) = 3
ignorehitpause = 1

;侾俀俹傾儅僥儔僗俫俹尭彮
[State -21]
type = varadd
triggerall = root,palno = 12
Trigger1 = roundstate = 2
trigger1 = Var(41) = 3
trigger1 = Var(39) = 1
trigger1 = Var(40) = [41,1000]
var(40) = -10+9*(root,var(26) != [0,1])
ignorehitpause = 1

[State -21];侾俀俹傾儅僥儔僗俫俹尭彮儃乕僫僗
type = varadd
triggerall = root,palno = 12
Trigger1 = roundstate = 2
trigger1 = Var(41) = 3
trigger1 = Var(39) = 1
trigger1 = Var(40) = [41,1000]
trigger1 = numhelper(890)
Trigger1 = helper(890),stateno = 891
var(40) = -40*(root,var(26) = [0,1])
ignorehitpause = 1

;傾儅僥儔僗廔椆乮嫟捠乯
[State -21]
type = varset
trigger1 = Var(41) = 3
trigger1 = root,palno = 12
trigger1 = Var(40) = [1,40]
trigger2 = Var(41) = 3
trigger2 = root,palno != 12
trigger2 = Var(40) = [1,120]
trigger3 = Var(41) <= 3
trigger3 = root,var(52) = 2
trigger4 = root,palno = 12 && numenemy
trigger4 = root,var(26) = [0,1]
trigger4 = enemy,teammode = simul
trigger4 = var(42) > 24000;嫮惂廔椆
var(41) = 4
ignorehitpause = 1

;傾儅僥儔僗嫮惂廔椆
[State -21]
type = varset
triggerall = Var(41) = 3 && numenemy
triggerall = root,palno = 12
triggerall = root,var(26) = [0,1]
triggerall = enemy,teammode = single || enemy,teammode = turns
trigger1 = ceil(1000*(enemynear,life)/(enemynear,lifemax)) > var(40)+200
trigger2 = var(42) > 1500 && enemynear,life = enemynear,lifemax 
trigger3 = var(42) > 2500 && ceil(1000*(enemy,life)/(enemy,lifemax)) > var(40)+100
trigger4 = var(42) > 3500 && ceil(1000*(enemy,life)/(enemy,lifemax)) > var(40)+50
trigger5 = var(42) > 4500 && ceil(1000*(enemy,life)/(enemy,lifemax)) > var(40)
trigger6 = var(42) > 2500 && ceil(1000*(enemy,life)/(enemy,lifemax)) > 975 && var(40) = 1000
trigger7 = var(42) > 9000 && enemy,life >= var(38) -10
var(41) = 4
ignorehitpause = 1

[State -21];巰嫸偄敪摦俫俹夞暅乮嫟捠乯
type = varset
trigger1 = Var(41) = 4
Trigger1 = root,stateno = 89019
Trigger1 = root,time >= 270
var(40) = 1000
ignorehitpause = 1

;傾儅僥儔僗廔椆妋擣丂巰嫸偄敪摦妋擣乮嫟捠乯
[State -21]
type = varset
trigger1 = Var(41) = 4
trigger1 = Var(40) = 1000
trigger1 = root,stateno = 89020
var(41) = 5
ignorehitpause = 1

;侾俀俹巰嫸偄俫俹尭彮
[State -21]
type = varadd
triggerall = root,palno = 12
trigger1 = Var(41) = 5
trigger1 = Var(39) = 1
trigger1 = Var(40) = [61,1000]
var(40) = -60
ignorehitpause = 1

;巰嫸偄廔椆
[State -21]
type = varset
triggerall = root,palno != 1 && root,palno != 7
trigger1 = Var(41) = 5
trigger1 = Var(40) = [1,60]
trigger2 = Var(41) <= 5
trigger2 = root,var(52) >= 3
trigger3 = Var(41) = 5 && root,palno = 12
trigger3 = Var(40) = [1,333]
var(41) = 6
ignorehitpause = 1

[State -21];慛寣偺寢枛敪摦俫俹夞暅乮嫟捠乯
type = varset
trigger1 = Var(41) = 6
Trigger1 = root,stateno = 89026
Trigger1 = root,time >= 562
var(40) = 1000
ignorehitpause = 1

;巰嫸偄廔椆妋擣丂慛寣偺寢枛敪摦妋擣乮嫟捠乯
[State -21]
type = varset
triggerall = Var(41) = 6
triggerall = Var(40) = 1000
trigger1 = root,stateno = [89027,89028]
trigger2 = root,stateno = 89034
trigger3 = root,stateno = 8910
var(41) = 7
ignorehitpause = 1

;慛寣偺寢枛揋俫俹婰壇亄傾儅僥儔僗嫮惂廔椆俫俹婰壇
[State -21]
type = varset
triggerall = numenemy
trigger1 = Var(41) = 6 && root,stateno = 89026
trigger1 = root,time > 1
trigger1 = var(38) = 0 || var(38) > enemynear,life
trigger2 = Var(41) = 3 && var(38) = 0
trigger2 = var(42) = 4500
trigger3 = root,palno = 6 && var(40) = [280,300]
trigger3 = var(38) = 0
var(38) = enemynear,life
ignorehitpause = 1

;俫俹婰壇
[State -21]
type = varset
triggerall = numenemy
triggerall = enemynear,life = 0 && enemynear,alive
trigger1 = Var(41) = 6 && root,stateno = 89026
trigger2 = Var(41) = 3
trigger2 = var(42) = 4500
trigger3 = root,palno = 6 && var(40) = [280,300]
var(38) = -1
ignorehitpause = 1

[State -21]
type = varadd
triggerall = numenemy && Var(41) = 7
trigger1 = root,palno = 12
var(26) = 100*(enemynear,pos y = fvar(0)) -99
ignorehitpause = 1

[State -21]
type = varset
trigger1 = var(26) < 0
var(26) = 0
ignorehitpause = 1

[State -21]
type = varset
triggerall = numenemy && Var(41) = 7
trigger1 = root,palno = 12
fvar(0) = enemynear,pos y
ignorehitpause = 1

[State -21]
type = varadd
triggerall = numenemy && Var(41) = 7
trigger1 = root,palno = 12
var(27) = 100*(enemynear,vel x = [-1.5,1.5])*(enemynear,vel y = [-1.5,1.5]) -99
ignorehitpause = 1

[State -21]
type = varset
trigger1 = var(27) < 0
var(27) = 0
ignorehitpause = 1

[State -21]
type = varadd
triggerall = numenemy && Var(41) = 7
trigger1 = root,palno = 12
var(28) = 100*(enemynear,movetype = A) -99
ignorehitpause = 1

[State -21]
type = varset
trigger1 = var(28) < 0
var(28) = 0
ignorehitpause = 1

[State -21]
type = varadd
triggerall = numenemy && Var(41) = 7
trigger1 = root,palno = 12
var(29) = 100*(enemynear,stateno != 52)*(enemynear,stateno != 50)*(enemynear,stateno != 0) -99
ignorehitpause = 1

[State -21]
type = varset
trigger1 = var(29) < 0
var(29) = 0
ignorehitpause = 1

[State -21]
type = varset
triggerall = numenemy && Var(41) = 7
trigger1 = root,palno = 12
var(30) = 6*(enemynear,stateno = 52||enemynear,stateno = 50||enemynear,stateno = 0) -5
ignorehitpause = 1

[State -21]
type = varset
trigger1 = var(30) < 0
var(30) = 0
ignorehitpause = 1

;侾俀俹慛寣偺寢枛崿撟俫俹尭彮
[State -21]
type = varadd
triggerall = root,palno = 12 && numenemy
triggerall = Var(41) = 7 && Var(39) = 1
triggerall = root,stateno = 89027
trigger1 = Var(40) = [61,1000]
trigger2 = Var(40) = [41,1000]
trigger2 = !numhelper(893)
var(40) = -ceil((30+30*(numhelper(893)=1))*(enemynear,lifemax-enemynear,life)/enemynear,lifemax)*(enemynear,life=[1,999])
ignorehitpause = 1

;侾俀俹慛寣偺寢枛僿償儞俫俹尭彮
[State -21]
type = varadd
triggerall = root,palno = 12
trigger1 = Var(41) = 7 && Var(39) = 1
trigger1 = root,stateno = 89028
trigger1 = Var(40) = [41,1000]
var(40) = -10 -20*(numhelper(892)=1) -10*(numhelper(893)=1)
ignorehitpause = 1

;侾俀俹慛寣偺寢枛恄乆偺墿崹俫俹尭彮
[State -21]
type = varadd
triggerall = root,palno = 12 && numhelper(890)
trigger1 = Var(41) = 7 && Var(39) = 1
trigger1 = root,stateno = 89034
trigger1 = Var(40) = [41,1000]
trigger1 = helper(890),var(32) = [1,200]
var(40) = -15*(numhelper(893)=1) -ceil((helper(890),var(32))/8)
ignorehitpause = 1

;侾俀俹慛寣偺寢枛斀嵃俫俹尭彮
[State -21]
type = varadd
triggerall = root,palno = 12 && numenemy
triggerall = Var(41) = 7 && Var(39) = 1
triggerall = root,stateno = 8910
triggerall = root,fvar(14) = [-89,89]
trigger1 = Var(40) = [51,1000]
trigger2 = Var(40) = [41,1000]
trigger2 = root,fvar(14) != [-30,30]
var(40) = (-10-10*(root,fvar(14) = [-60,60]))*(numhelper(893)=1)-(10+20*(root,fvar(14) != 0))*(root,fvar(14) = [-30,30])
ignorehitpause = 1

;侾俀俹慛寣偺寢枛俫俹夞暅
[State -21]
type = varadd
triggerall = root,palno = 12
triggerall = Var(41) = 7 && numhelper(893) = 0
triggerall = Var(40) = [301,600]
triggerall = root,time <= 25
trigger1 = root,stateno = [89027,89028]
trigger2 = root,stateno = 89034
trigger3 = root,stateno = 8910
var(40) = 1
ignorehitpause = 1

;侾俀俹慛寣偺寢枛俫俹夞暅
[State -21]
type = varadd
triggerall = root,palno = 12
triggerall = Var(41) = 7 && numhelper(893) = 0
triggerall = Var(40) = [1,333]
triggerall = root,time <= 25 + 25*(root,var(55) != 1)
trigger1 = root,stateno = [89027,89028]
trigger2 = root,stateno = 89034
trigger3 = root,stateno = 8910
var(40) = 1
ignorehitpause = 1

;侾俀俹慛寣偺寢枛俫俹夞暅
[State -21]
type = varadd
triggerall = root,palno = 12
triggerall = Var(41) = 7
triggerall = Var(40) = [1,333]
trigger1 = numhelper(6902)
trigger1 = helper(6902),var(1) != 0
trigger2 = numhelper(6902) != 1
var(40) = 1
ignorehitpause = 1

;侾俀俹慛寣偺寢枛俫俹夞暅
[State -21]
type = varadd
triggerall = root,palno = 12 && numenemy
triggerall = Var(41) = 7
triggerall = Var(40) = [1,150]
triggerall = root,var(55) != 1
trigger1 = enemynear,life >= var(38) || enemynear,life != [1,999]
trigger2 = enemynear,life >= ceil(0.7*enemynear,lifemax)
trigger3 = enemynear,time > 700
trigger4 = var(26) > 1000 || var(27) > 700 || var(28) > 700 || var(29) > 1000 || var(30) > 700
var(40) = 1 +random%10
ignorehitpause = 1

;侾俀俹慛寣偺寢枛俫俹夞暅
[State -21]
type = varadd
triggerall = root,palno = 12 && numenemy
triggerall = Var(41) = 7 && Var(39) = 1
triggerall = Var(40) = [1,150]
triggerall = root,var(55) != 1
trigger1 = enemynear,movetype != A
trigger2 = enemynear,time != [3,100]
trigger3 = root,fvar(13) != [-111,111]
trigger4 = root,fvar(14) != [-89,89]
trigger5 = enemynear,animelem <= 1
var(40) = 20+random%40
ignorehitpause = 1

;俇俹俫俹夞暅
[State -21]
type = varadd
triggerall = root,palno = 6 && numhelper(893) = 0 && numenemy
triggerall = Var(40) = [1,150]
trigger1 = enemynear,life > var(38) || enemynear,life != [1,999]
trigger2 = enemynear,life >= ceil(0.7*enemynear,lifemax)
var(40) = 20+random%40
ignorehitpause = 1

;慛寣偺寢枛帪娫掆巭夝彍
[State -21]
type = varadd
triggerall = Var(41) = 7
Trigger1 = root,palno = 12
trigger2 = root,palno = 6 && root,var(58) > 1
var(6) = 1890*(var(7) <= var(40)) - 1889
ignorehitpause = 1

[State -21]
type = varset
trigger1 = var(6) < 23506*(root,palno=11)
trigger2 = numpartner
var(6) = 23506*(root,palno=11)
ignorehitpause = 1

;慛寣偺寢枛帪娫掆巭夝彍曗彆
[State -21]
type = varset
triggerall = Var(41) = 7
Triggerall = root,palno = 12 || (root,palno = 6 && root,var(58) > 1)
trigger1 = var(7) != [1,1000]
trigger2 = var(7) > var(40)
var(7) = var(40)*(var(7) = [1,1000]) + 1000*(var(7) != [1,1000])
ignorehitpause = 1

[State -21];儕僓儗僋僔儑儞傪偨偩偺夞暅偱偼側偔儕僓儗僋僔儑儞偩偲擣幆偡傞堊
type = varset
triggerall = root,palno = 11
Trigger1 = enemynear,name = "Ayu Tukimiya"
Trigger1 = enemynear,palno = 12
Trigger1 = enemynear,NumHelper(100999)
Trigger1 = enemynear,life = enemynear,lifemax
trigger1 = var(8) = -1 || var(8) = [1,50]
var(8) = 1000
ignorehitpause = 1
persistent = 0

;慛寣偺寢枛廔椆
[State -21]
type = varset
triggerall = Var(41) = 7 && numenemy
Triggerall = !(root,var(25) = 1 && root,palno = 12)
trigger1 = root,palno = 12
trigger1 = Var(40) = [1,40]
trigger1 = enemynear,life < ceil(0.7*enemynear,lifemax)
trigger1 = enemynear,life = [1,999]
trigger2 = root,palno != 12
trigger2 = Var(40) = 1
trigger3 = root,palno = 12 && root,var(55) = 1
trigger3 = Var(40) = [1,40]
var(41) = 8
ignorehitpause = 1

;僗僩乕儕乕巰朣僼儔僌
[State -21]
type = varset
Triggerall = roundstate = 2 && numenemy
Triggerall = enemynear,alive
trigger1 = Var(41) >= 8
trigger1 = root,palno = 12
trigger1 = enemynear,life < ceil(0.7*enemynear,lifemax)
trigger1 = enemynear,life = [1,999]
trigger2 = root,palno = 1 || root,palno = 7
trigger2 = Var(41) = 5
trigger2 = Var(40) = 1
trigger3 = root,palno != 12
trigger3 = Var(41) >= 8
trigger4 = Var(5) >= 10180
trigger5 = Var(41) >= 8
trigger5 = root,palno = 12
trigger5 = root,var(55) = 1
var(4) = 890106
ignorehitpause = 1

;侾俀俹廔椆僼儔僌
[State -21]
type = parentvarset
Triggerall = roundstate >= 3
triggerall = Var(4) = 890106
triggerall = Var(41) > 0
trigger1 = root,palno != 6
trigger1 = root,palno != [10,11]
var(50) = 890106*root,var(51)
ignorehitpause = 1

[State -21];憐掕奜僗僥乕僩娔帇
type = varset
Triggerall = root,var(56) = 2*gametime
trigger1 = var(41) < 3
trigger1 = root,stateno < 89035
trigger2 = var(41) = 3
trigger2 = root,stateno = [89016,89017]
trigger3 = var(41) = [4,5]
trigger3 = root,stateno = [89019,89021]
trigger4 = var(41) = [6,7]
trigger4 = root,stateno = 8910 || root,stateno = 89034 || root,stateno = [89026,89029]
trigger5 = roundstate != 2
Trigger6 = var(50) = 890106
Trigger7 = root,stateno = 140
var(46) = 0
ignorehitpause = 1

[State -21];憐掕奜僗僥乕僩娔帇
type = varadd
Triggerall = roundstate = 2
triggerall = var(50) != 890106
trigger1 = var(41) < 3
trigger1 = root,stateno > 89034
trigger2 = var(41) = 3
trigger2 = root,stateno != [89016,89017]
trigger3 = var(41) = [4,5]
trigger3 = root,stateno != [89019,89021]
trigger4 = var(41) = [6,7]
trigger4 = root,stateno != 8910 && root,stateno != 89034 && root,stateno != [89026,89029]
var(46) = 1
ignorehitpause = 1

;侾俀俹儗僋僀僄儉僼儔僌
[State -21]
type = parentvarset
Triggerall = numenemy
triggerall = Var(4) = 890106
triggerall = root,palno = 12
triggerall = root,var(55) != 0
triggerall = var(5) < 10000
trigger1 = enemynear,life >= ceil(0.7*enemynear,lifemax)
trigger2 = enemynear,life >= 1000
trigger3 = enemynear,life >= var(38)
trigger4 = enemynear,time > 700 || var(27) > 700 || var(28) > 700 || var(29) > 700
var(54) = 890106
ignorehitpause = 1

;侾俀俹儗僋僀僄儉
[State -21]
type = varset
Triggerall = numenemy
triggerall = root,var(54) = 890106
triggerall = root,palno = 12
trigger1 = root,var(55) != 0
var(4) = 0
ignorehitpause = 1

[State 6900, Explod];侾俀俹儗僋僀僄儉1P懁僗儁儖僇乕僪柤
Type = Explod
Triggerall = TeamSide = 1
triggerall = numexplod(8924) = 0
trigger1 = root,var(54) = 890106
Anim = 8961
ID = 8961
Pos = 20, 80
PosType = Left
SprPriority = 10
Facing = 1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.2, 0.2
ignorehitpause = 1

[State 6900, Explod];侾俀俹儗僋僀僄儉2P懁僗儁儖僇乕僪柤
Type = Explod
Triggerall = TeamSide = 2
triggerall = numexplod(8924) = 0
trigger1 = root,var(54) = 890106
Anim = 8961
ID = 8961
Pos = -100, 80
PosType = Right
SprPriority = 10
Facing = 1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.2, 0.2
ignorehitpause = 1

[State 3020, PlaySnd];侾俀俹儗僋僀僄儉
Type = PlaySnd
trigger1 = root,var(54) = 890106
Value = S898,0
persistent = 0
ignorehitpause = 1

;侾俀俹廔椆僼儔僌
[State -21]
type = varset
Triggerall = roundstate < 2
Triggerall = roundno != 1
trigger1 = root,palno != 6
trigger1 = root,palno != [10,11]
trigger1 = root,var(51) = 1
trigger1 = root,var(50) = 890106
var(5) = 10000
ignorehitpause = 1

;侾俀俹廔椆僼儔僌
[State -21]
type = varadd
Triggerall = roundstate = 2
Triggerall = roundno != 1
trigger1 = root,palno != 6
trigger1 = root,palno != [10,11]
trigger1 = root,var(51) = 1
trigger1 = root,var(50) = 890106
trigger1 = var(5) >= 10000
var(5) = 1
ignorehitpause = 1

[State -21]
type = assertspecial
Triggerall = roundstate = 2
Triggerall = roundno != 1
trigger1 = root,palno != 6
trigger1 = root,palno != [10,11]
trigger1 = root,var(51) = 1
trigger1 = root,var(50) = 890106
flag = nokosnd
ignorehitpause = 1

