;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	忢帪娔帇僗僥乕僩
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
[Statedef -2]
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	僆僾僔儑儞娭學
;--------------------------------------------------
[State -2, VarSet];侾俀俹僗僩乕儕乕弶婜僗儁儖
Type = VarSet
triggerall = !ishelper
Trigger1 = palno = 12
Trigger1 = roundstate < 2
Trigger1 = roundno = 1
var(52) = 0;乮侽丗僉儞僌僋儕儉僝儞丂侾丗傾儅僥儔僗丂俀丗巰嫸偄丂俁丗慛寣偺寢枛乯
ignorehitpause = 1

[State -2, VarSet];侾侽俹懴媣椡
Type = VarSet
triggerall = !ishelper
Trigger1 = palno = 10
var(24) = 3;乮俀乣俀侽偺斖埻偱愝掕壜擻丅偦傟埲奜偼晄巰恎偵側傞偺偱拲堄丅乯
ignorehitpause = 1

[State -2, VarSet];愱梡俛俧俵巊梡慖戰
Type = VarSet
triggerall = !ishelper
Trigger1 = 1
var(39) = 0;乮侽丗巊梡丂侾丗巊梡偟側偄乯
ignorehitpause = 1

[State -2, VarSet];楈椡僎乕僕昞帵埵抲 X
Type = VarSet
Trigger1 = !ishelper
V = 36
Value = 109
ignorehitpause = 1

[State -2, VarSet];楈椡僎乕僕昞帵埵抲 Y
Type = VarSet
Trigger1 = !ishelper
V = 37
Value = 234
ignorehitpause = 1

[State -2, VarSet];巆憸僶僌
Type = VarSet
triggerall = !ishelper
Trigger1 = 1
var(12) = 0;乮侽丗柍偟丂侾丗桳傝乯
ignorehitpause = 1

[State -2, VarSet];俇丒侾俀俹晄巰恎壔乮徫乯
Type = VarSet
triggerall = !ishelper
Trigger1 = 1
var(25) = 0;乮侽丗柍偟丂侾丗桳傝乯
ignorehitpause = 1

[State -2, VarSet];俇俹僆乕僩儀儂儅丒侾俀俹傾儅僥儔僗弶婜嫢埆巇條壔
Type = VarSet
triggerall = !ishelper
Trigger1 = 1
var(26) = 1;乮侽丗柍偟丂侾丗僆乕僩儀儂儅偺傒丂俀丗椉曽乯
ignorehitpause = 1

[State -2, VarSet];儗僋僀僄儉
Type = VarSet
triggerall = !ishelper
Trigger1 = 1
var(55) = 0;乮侽丗柍偟丂侾丗桳傝乯
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	僔僗僥儉娭學
;--------------------------------------------------
[State -2, VarSet];僗僩乕儕乕弶婜僗儁儖擮偺偨傔
Type = VarSet
triggerall = !ishelper
Trigger1 = var(52) < 0
Trigger2 = var(50) = 890106
Trigger2 = roundstate < 2
var(52) = 0
ignorehitpause = 1

[State -2, VarSet];崅懍僕儍儞僾丂擖椡帪娫愝掕
Type = VarSet
triggerall = !ishelper || ishelper(6904)
Trigger1 = Command = "down"
V = 11
Value = 10
ignorehitpause = 1

[State -2, VarAdd];崅懍僕儍儞僾丂擖椡帪娫尭彮
Type = VarAdd
triggerall = !ishelper || ishelper(6904)
Trigger1 = Var(11) > 0
V = 11
Value = -1
ignorehitpause = 1

[State -2, RemoveExplod];徃揤廟
Type = RemoveExplod
TriggerAll = NumExplod(6220) > 0
Trigger1 = !(StateNo=[1020,1039])
ID = 6220
ignorehitpause = 1

[State 1000, 0]
Type = ScreenBound
Trigger1 = ishelper && !ishelper(6904)
MoveCamera = 0,0
ignorehitpause = 1

[State -2]
type = PlayerPush
TriggerAll = !IsHelper || ishelper(890) || ishelper(6901) || ishelper(6903) || ishelper(6904)
triggerall = vel x = 0 && numenemy
triggerall = pos x - enemynear,pos x != [-30,30]
trigger1 = enemynear,vel x = 0
trigger2 = pos x - enemynear,pos x != [-100,100]
value = 0
ignorehitpause = 1

;嫍棧
[state -1]
type = varset
triggerall = (!ishelper || ishelper(6904)) && numenemy
trigger1 = var(56) != 2*gametime
trigger2 = time = 0
fvar(13) = abs(pos x - enemynear,pos x)*ifelse(frontedgedist<ifelse((facing=enemynear,facing),(enemynear,frontedgedist),(enemynear,backedgedist)),-1,1)
ignorehitpause = 1

;嫍棧
[state -1]
type = varset
triggerall = (!ishelper || ishelper(6904)) && numenemy
trigger1 = var(56) != 2*gametime
trigger2 = time = 0
fvar(14) = (enemynear,pos y)-pos y
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	僨僶僢僋娭學
;--------------------------------------------------
[State -2, DisplayToClipboard]
Type = DisplayToClipboard
trigger1 = !IsHelper && numenemy
Trigger1 = numhelper(6900)
Text = "HP:%d, e-state:%d, numT:%d, Pos X:%f, Pos Y:%f"
Params = (helper(6900),var(40)),(enemynear,stateno),numtarget,fvar(13),fvar(14)
IgnoreHitPause = 1

[State -2,debug]
type = AppendToClipboard
trigger1 = !IsHelper && numenemy
Trigger1 = numhelper(6900)
Trigger1 = gametime%240 < 120
text = "\n LIMIT:%d, e-life:%d, combo:%d, e-anim:%d, e-anim2:%d"
params = (helper(6900),var(6)),(helper(6900),var(8)),var(41),Var(44),Var(43)
ignorehitpause = 1

[State -2,debug]
type = AppendToClipboard
trigger1 = !IsHelper && numenemy
Trigger1 = numhelper(6900)
Trigger1 = gametime%240 >= 120
text = "\n LIMIT:%d, han:%d, han2:%d, han3:%d, han4:%d"
params = (helper(6900),var(6)),var(48),Var(47),var(46),Var(45)
ignorehitpause = 1

[state 1]
type = varset
triggerall = !IsHelper
triggerall = roundstate = 2 && numenemy
Trigger1 = enemynear,movereversed
Trigger2 = var(28) != [0,150]
Trigger3 = numhelper(193)
Trigger3 = helper(193),var(55) = 100
var(28) = 150
ignorehitpause = 1

[state 1]
type = varadd
triggerall = !IsHelper
triggerall = roundstate = 2
Trigger1 = var(28) = [1,150]
var(28) = -1
ignorehitpause = 1

[state 1]
type = varset
triggerall = !IsHelper
triggerall = roundstate = 2 && numenemy
Trigger1 = enemynear,gethitvar(hitcount) > 1
Trigger1 = var(28) = 0
var(41) = 890
ignorehitpause = 1

[state 1]
type = varset
trigger1 = !IsHelper
trigger1 = roundstate = 2
var(15) = stateno
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;婼涋彈乮婎杮乯
;--------------------------------------------------
[State -2];僈乕僪晄擻峌寕
Type = AssertSpecial
triggerall = !ishelper || ishelper(6904)
Trigger1 = 1
Flag = UnGuardable
ignorehitpause = 1

[State -2];僟僽儖俲俷慾巭
Type = AssertSpecial
triggerall = !ishelper
Triggerall = roundstate != 2 && alive
Trigger1 = palno != 6 && numhelper(6900)
Trigger2 = palno = 6 && numhelper(6900)
Trigger2 = helper(6900),var(36) != 8901
Trigger3 = numenemy
Trigger3 = enemynear,life != 0 || !enemynear,alive
Flag = noko
ignorehitpause = 1

[State -2];僈乕僪晄擻
Type = AssertSpecial
triggerall = !ishelper || ishelper(6904)
Trigger1 = 1
IgnoreHitPause = 1
Flag = NoStandGuard
flag2 = NoCrouchGuard
flag3 = NoAirGuard

[State -2];柍揋
type = NotHitBy
trigger1 = !ishelper
trigger2 = ishelper(6903) || ishelper(6904)
value = SCA
time = -1
ignorehitpause = 1

[state 1]
type = varset
trigger1 = fvar(32) != 0
trigger1 = fvar(32) != -0.7 && fvar(32) != -0.5 && fvar(32) != 0.5 && fvar(32) != 1.5
trigger2 = var(58) != [0,1]
fvar(32) = 0
ignorehitpause = 1

[state -1];僷儗僢僩堐帩
type = assertspecial
trigger1 = !ishelper
trigger1 = palno = [10,11]
trigger2 = ishelper(6903) || ishelper(6904)
flag = invisible
ignorehitpause = 1

[State 100, AfterImage]
Type = AfterImage
Triggerall = Time = [0,1]
Trigger1 = !ishelper
Trigger1 = palno = [10,11]
Trigger1 = roundstate = 0 || stateno = 0
trigger2 = ishelper(6904)
Trigger2 = stateno = 0 || roundstate = [0,1]
Trigger3 = !ishelper
Trigger3 = var(13) = 890
Trigger3 = stateno = 0
Time = 100000
PalBright = 0, 0, 0
PalContrast = 192, 0, 0
PalAdd = -60, -60, -60
PalMul = 1, 1, 1
Trans = Add
TimeGap  = 2

[state -1];僷儗僢僩堐帩
type = palfx
triggerall = !ishelper
trigger1 = palno != 6
trigger2 = palno = 6
trigger2 = fvar(32) = 0
time = 1
ignorehitpause = 1

[state -1];僷儗僢僩堐帩
type = palfx
triggerall = !ishelper
trigger1 = palno = 6
trigger1 = fvar(32) = 1.5
time = 1
add = 200,200,0
ignorehitpause = 1

[state -1];僷儗僢僩堐帩
type = palfx
triggerall = !ishelper
trigger1 = palno = 6
trigger1 = fvar(32) = 0.5
time = 1
add = 0,0,0
mul = 256,100,100
ignorehitpause = 1

[state -1];僷儗僢僩堐帩
type = palfx
triggerall = !ishelper
trigger1 = palno = 6
trigger1 = fvar(32) = -0.5
time = 1
add = 0,0,0
mul = 100,100,256
ignorehitpause = 1

[state -1];僷儗僢僩堐帩
type = palfx
triggerall = !ishelper
trigger1 = palno = 6
trigger1 = fvar(32) = -0.7
time = 1
add = -150,-150,-150
color = 0
InvertAll = 1
ignorehitpause = 1

[State -2];撆
type = targetlifeadd
triggerall = !ishelper
trigger1 = palno = 6 && numenemy
trigger1 = var(32) = 890 || var(32) = 8901
value = -1 -(var(32) = 8901)*ifelse(enemynear,life < 1000,1000,(enemynear,life))
Absolute = 1
ignorehitpause = 1

[State -2];撆
type = targetfacing
triggerall = !ishelper
trigger1 = palno = 6
trigger1 = var(32) = 890
value = 1
ignorehitpause = 1

[State -2];儔僀僼僶乕偼忺傝
type = Lifeset
triggerall = !ishelper
trigger1 = numhelper(6900) = 0
trigger2 = numhelper(6900)
trigger2 = helper(6900),var(4) != 890106
trigger2 = helper(6900),var(44) != [0,699]
value = 1 + lifemax*(roundstate != 2)
ignorehitpause = 1

[State -2];儔僀僼僶乕偼忺傝
type = Lifeset
triggerall = !ishelper
triggerall = numhelper(6900)
triggerall = helper(6900),var(4) != 890106
triggerall = helper(6900),var(44) = [0,699]
trigger1 = !(palno=6&&helper(6900),var(37)=890&&roundstate=2)
value = ceil((700 -helper(6900),var(44))*lifemax/1000) + lifemax*(palno=6)*(helper(6900),var(44)=0) + lifemax*(roundstate != 2)
ignorehitpause = 1

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

[State -2];僗僩乕儕乕侾夞偩偗
type = posset
triggerall = !ishelper
trigger1 = var(50) = 890106 && roundstate <= 2
trigger2 = var(50) = 890106 && numhelper(6900)
trigger2 = helper(6900),var(5) > 10170
y = 999999999
ignorehitpause = 1

[State -2];寛拝
type = Lifeset
triggerall = !ishelper
triggerall = palno != 11
triggerall = roundstate = 2
trigger1 = numhelper(6900) = 1
trigger1 = helper(6900),var(4) = 890106
value = 0
ignorehitpause = 1

[state -2];屒撈偺愴巑
type = Powerset
triggerall = !ishelper
trigger1 = !(palno = 6 && (var(32) = 890 || var(32) = 8901))
trigger2 = gametime%60 = 1
value = 0 + (palno = 6 && var(32) = 890)*random + 3*(palno = 6 && var(32) = 8901)*random
ignorehitpause = 1

[State 0]
type = statetypeset
trigger1 = var(56) != 2*gametime
trigger2 = gethitvar(damage)
movetype = I
ignorehitpause = 1

[State 0]
type = varset
triggerall = !ishelper && numenemy
triggerall = var(44) <= 0
trigger1 = enemynear,movecontact
trigger2 = enemynear,movereversed
var(44) = enemynear,anim
ignorehitpause = 1

[State 0]
type = varset
triggerall = !ishelper && numenemy
triggerall = var(44) != enemynear,anim
trigger1 = enemynear,movecontact
trigger2 = enemynear,movereversed
var(43) = enemynear,anim
ignorehitpause = 1

[State 0]
type = parentvarset
trigger1 = ishelper(89092)
trigger1 = var(56) != 2*gametime
var(32) = 8901
ignorehitpause = 1

[State 0]
type = parentvarset
trigger1 = ishelper(89092)
trigger1 = var(56) != 2*gametime
var(33) = stateno
ignorehitpause = 1

[State 0]
type = parentvarset
trigger1 = ishelper
trigger1 = ishelper(8909)||(ishelper(8969)&&(root,var(47)<=0||gametime%20=0))
trigger1 = movereversed
trigger1 = var(56) != 2*gametime
var(34) = 8901
ignorehitpause = 0

[State 0]
type = parentvarset
trigger1 = ishelper
trigger1 = ishelper(8909)||(ishelper(8969)&&(root,var(47)<=0||gametime%20=0))
trigger1 = movereversed
trigger1 = var(56) != 2*gametime
var(35) = stateno
ignorehitpause = 0

[State 0]
type = varset
triggerall = !ishelper && numhelper(6901)
triggerall = helper(6901),var(34) = 8901
triggerall = var(47) != helper(6901),var(35) && var(46) != helper(6901),var(35)
trigger1 = var(47) > 0 && var(46) > 0
trigger2 = var(48) <= 0
var(48) = helper(6901),var(35)
ignorehitpause = 1

[State 0]
type = varset
triggerall = !ishelper && numhelper(6901)
triggerall = helper(6901),var(34) = 8901
triggerall = var(48) != helper(6901),var(35) && var(46) != helper(6901),var(35)
trigger1 = var(48) > 0 && var(46) > 0
trigger2 = var(47) <= 0
var(47) = helper(6901),var(35)
ignorehitpause = 1

[State 0]
type = varset
triggerall = !ishelper && numhelper(6901)
triggerall = helper(6901),var(34) = 8901
triggerall = var(47) != helper(6901),var(35) && var(48) != helper(6901),var(35)
trigger1 = var(47) > 0 && var(48) > 0
trigger2 = var(46) <= 0
var(46) = helper(6901),var(35)
ignorehitpause = 1

[State 0]
type = varset
trigger1 = !ishelper && numhelper(6901)
trigger1 = helper(6901),var(32) = 8901
var(45) = helper(6901),var(33)
ignorehitpause = 1

[State -2]
type = AssertSpecial
Triggerall = !ishelper
TriggerAll	= palno = 11
triggerall = var(35) != 0
triggerall = enemynear,alive
trigger1 = roundstate = 3
flag = roundnotover
ignorehitpause = 1

[State -2]
type = SuperPause
Triggerall = !ishelper
TriggerAll	= palno = 11
triggerall = var(35) != 0
triggerall = enemynear,alive
trigger1 = roundstate > 2
trigger1 = var(34)
time = 60
movetime = 60
anim = -1
sound = s-1
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1

[State -2]
type = Pause
Triggerall = !ishelper
TriggerAll	= palno = 11
triggerall = var(35) != 0
triggerall = enemynear,alive
trigger1 = roundstate > 2
trigger1 = var(34)
time = 60
movetime = 60
ignorehitpause = 1

[State -1]
Type = varset
Triggerall = !ishelper
TriggerAll	= palno = 11
triggerall = roundstate = 2
trigger1 = stateno != 154
trigger1 = numhelper(6904)
trigger2 = movereversed
trigger3 = var(56) != 2*gametime
var(35) = 890
ignorehitpause = 1

[State 1]
Type = selfstate
Triggerall = ishelper(6903)
trigger1 = stateno != 152
trigger1 = stateno != 154
trigger2 = movereversed
trigger3 = var(56) != 2*gametime
Value = 152
ignorehitpause = 1

[State -1]
Type = selfstate
Triggerall = !ishelper
TriggerAll	= palno = [10,11]
triggerall = roundstate = 2
trigger1 = stateno != 154
trigger1 = numhelper(6904)
trigger2 = movereversed
trigger3 = var(56) != 2*gametime
Value = 154
ignorehitpause = 1

[State -1]
Type = selfstate
Triggerall = !ishelper
TriggerAll	= palno = 11
triggerall = var(35) != 0
trigger1 = stateno != 154
trigger2 = movereversed
trigger3 = var(56) != 2*gametime
Value = 154
ignorehitpause = 1

[State 1000, 0]
Type = removeExplod
triggerall = !ishelper
triggerall = numhelper(6900)
triggerall = stateno != 8913 && palno = 6
triggerall = helper(6900),var(33) = 890
triggerall = helper(6900),var(32) = 8901
triggerall = helper(6900),var(31) = 890106
Trigger1 = numexplod(1500)
Trigger1 = var(38) != 0 || gametime%37 = 32
Trigger2 = numexplod(1502)
Trigger2 = var(38) != 2 || (gametime%14 = 2 || pos x = [-1,0])
Trigger3 = roundstate != 2
ID = 1500+2*(numexplod(1502)>0)
ignorehitpause = 1

[State 1000, 0]
Type = Explod
triggerall = !ishelper
triggerall = numhelper(6900) && roundstate = 2
triggerall = stateno != 8913 && palno = 6
trigger1 = helper(6900),var(33) = 890
trigger1 = helper(6900),var(32) = 8901
trigger1 = helper(6900),var(31) = 890106
trigger1 = var(38) = 0 && numexplod(1500) = 0 && gametime%37 = 32
Anim = 8987
ID = 1500
PosType = P1
Pos = 65,ceil(fvar(14))
Facing = -1
BindTime = -1
ignorehitpause = 1

[State 1000, 0]
Type = Explod
triggerall = !ishelper
triggerall = numhelper(6900) && roundstate = 2
triggerall = stateno != 8913 && palno = 6
trigger1 = helper(6900),var(33) = 890
trigger1 = helper(6900),var(32) = 8901
trigger1 = helper(6900),var(31) = 890106
trigger1 = var(38) = 2 && numexplod(1502) = 0 && (gametime%14 = 2 || pos x = [-1,0])
Anim = 8988
ID = 1502
PosType = P1
Pos = 65,ceil(fvar(14))
Facing = -1
BindTime = -1
removeTime = -2
ignorehitpause = 1

[State 1000, 0]
Type = ModifyExplod
triggerall = !ishelper
triggerall = numhelper(6900) && roundstate = 2
triggerall = stateno != 8913 && palno = 6
triggerall = helper(6900),var(33) = 890
triggerall = helper(6900),var(32) = 8901
triggerall = helper(6900),var(31) = 890106
Trigger1 = numexplod(1500)
Trigger2 = numexplod(1502)
ID = 1500+2*(numexplod(1502)>0)
PosType = P1
Pos = 65,ceil(fvar(14))
Facing = -1
ignorehitpause = 1

[State -2, VarSet]
Type = VarSet
triggerall = !ishelper
triggerall = numhelper(6900)
triggerall = stateno != 8913 && palno = 6 && var(58) = 1
trigger1 = helper(6900),var(33) = 890
trigger1 = helper(6900),var(32) = 8901
trigger1 = helper(6900),var(31) = 890106
trigger1 = command = "88X"
var(38) = 2*(var(38) = 0) + (var(38) = 2)
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = !ishelper
triggerall = numhelper(6900)
triggerall = stateno != 8913 && stateno != 150 && palno = 6 && var(58) = 1
trigger1 = helper(6900),var(33) = 890
trigger1 = helper(6900),var(32) = 8901
trigger1 = helper(6900),var(31) = 890106
value = 140
ignorehitpause = 1

[state -2];僗僥乕僩夞暅
type = selfstate
trigger1 = var(56) != 2*gametime
trigger1 = !ishelper(8901061)&&!ishelper(8901064)&&!ishelper(8901065)&&!ishelper(8901067)
trigger1 = !ishelper(12007)&&!ishelper(12008)&&!ishelper(12009)&&!ishelper(8901072)
trigger2 = ishelper(8967) || ishelper(8968)
trigger2 = stateno != 89029 || root,numexplod(8958) = 0 || movereversed
trigger3 = ishelper(8969)
trigger3 = stateno != 89034 || root,numexplod(8971) = 0 || movereversed
trigger4 = ishelper(8909)
trigger4 = stateno != 8909 || (root,stateno != 8909 && root,palno = 6) || movereversed
trigger5 = ishelper(8901069)
trigger5 = stateno != 8901069
trigger6 = time > 700 && !ishelper
trigger6 = palno != [10,11]
value = 140
ignorehitpause = 1

[state -2]
type = targetstate
triggerall = !ishelper && numenemy
triggerall = roundstate = 2 && (palno = 12 || palno = 6)
trigger1=(enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1"))
trigger1 = numtarget
value = 8901062
ignorehitpause = 1

[state -2]
type = targetstate
triggerall = !ishelper
triggerall = roundstate = 2 && numtarget
trigger1 = stateno = 8910
trigger1 = time < 120
value = 8901068
ignorehitpause = 1

[state target]
type = targetstate
triggerall = !ishelper
triggerall = roundstate = 2 && stateno = 89027 && (palno = 6 || palno = 12)
trigger1 = numtarget && (time = [40,111])
value = 20007 + (gametime%60<20) + (gametime%60<40)
ignorehitpause = 1

[state -2]
type = targetstate
triggerall = !ishelper
triggerall = roundstate = 2 && stateno = 89034 && (palno = 6 || palno = 12)
trigger1 = numtarget && (time = [77,200])
value = 20004 + (gametime%60<20) + (gametime%60<40)
ignorehitpause = 1

[state -2]
type = targetstate
triggerall = !ishelper
triggerall = roundstate = 2 && palno = 6
trigger1 = stateno = 8912 && numhelper(6900)
trigger1 = numtarget && time < 90 && helper(6900),var(47) = 8901
value = 8901073
ignorehitpause = 1

[state -2]
type = targetdrop
triggerall = !ishelper && numenemy
triggerall = roundstate = 2 && numtarget > 6
trigger1 = palno = 12 || palno = 6
trigger1=(enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1"))
trigger2 = stateno = 8910 && time < 125
ignorehitpause = 1

[state -2];僗僥乕僩夞暅
type = selfstate
triggerall = !ishelper
trigger1 = var(56) != 2*gametime
trigger2 = gethitvar(damage)
trigger2 = gethitvar(damage) >= life
trigger3 = stateno = 140 && time > 30
value = 890106
ignorehitpause = 1

[state -2];僗僥乕僩夞暅
type = selfstate
triggerall = !ishelper
triggerall = numhelper(6900)
triggerall = time = 0 && roundstate = 2
trigger1 = stateno != 89013 && stateno != 89029
trigger1 = helper(6900),var(41)
value = 890106
ignorehitpause = 1

[State 1]
Type = selfstate
Triggerall = ishelper(12007) || ishelper(12008) || ishelper(12009)
Trigger1 = stateno != 89030
trigger2 = var(56) != 2*gametime
Value = 89030
ignorehitpause = 1

[state -2];僗僥乕僩夞暅
type = selfstate
trigger1 = ishelper(8901061)
trigger1 = root,numtarget && stateno != 8901061
trigger2 = ishelper(8901064)
trigger2 = root,numtarget && stateno != [8901063,8901064]
trigger3 = ishelper(8901065)
trigger3 = root,numtarget && stateno != [8901063,8901065]
trigger4 = ishelper(8901067)
trigger4 = root,numtarget && stateno != [8901063,8901067]
trigger5 = ishelper(8901072)
trigger5 = root,numtarget && (var(56) != 2*gametime || stateno != [8901063,8901072])
Trigger6 = ishelper(8901061)||ishelper(8901064)||ishelper(8901065)||ishelper(8901067)
trigger6 = var(56) != 2*gametime
value = 8901063
ignorehitpause = 1

;夋柺撪堐帩
[State -2]
type = posset
triggerall = !ishelper
triggerall = roundstate >= 2
triggerall = Alive = 1 && var(50) != 890106
trigger1 = pos y > 200
trigger2 = pos y < -500 && numenemy
trigger2 = enemynear,pos y - pos y > 500
trigger3 = BackEdgeBodyDist < -50
trigger4 = FrontEdgeBodyDist < -50
x = 0
y = 0
ignorehitpause = 1

;峌寕椡
[State -2]
type = AttackMulSet
triggerall = !ishelper || ishelper(6904)
trigger1 = palno != 6 && numenemy
value = ceil(0.00001*ifelse(enemynear,const(data.defence)>0,enemynear,const(data.defence),100)*ifelse(enemynear,lifemax>0,enemynear,lifemax,1000))*ifelse((palno=1||palno=7),0.5,1)
ignorehitpause = 1

;峌寕椡
[State -2]
type = AttackMulSet
triggerall = !ishelper
trigger1 = palno = 6 && numenemy
value = ceil(0.00001*ifelse(enemynear,const(data.defence)>0,enemynear,const(data.defence),100)*ifelse(enemynear,lifemax>0,enemynear,lifemax,1000))*(fvar(32)+1)
ignorehitpause = 1

;儔儞僟儉
[State -2]
Type = VarRandom
triggerall = !ishelper || ishelper(6904)
Trigger1 = Time = 1
Trigger2= GameTime %3= 1
V = 59
Range = 0,599
ignorehitpause = 1

;俙俬僼儔僌僙僢僩
[State -2]
type = VarSet
triggerall = !ishelper
Triggerall = Var(58) = 0
triggerall = palno != [10,12]
trigger1 = numhelper(6900) = 0
trigger2 = numhelper(6900)
trigger2 = helper(6900),var(41) = 0
var(58) = 1
IgnoreHitPause = 1

[State -2]
type = VarSet
trigger1 = ishelper
trigger1 = !ishelper(6904)
Trigger1 = Var(58) != 0
trigger2 = numhelper(6900)
trigger2 = helper(6900),var(41) != 0
var(58) = 0
IgnoreHitPause = 1

;儔僂儞僪廔椆屻AI僗僀僢僠傪off偵
[State -2]
Type = VarSet
triggerall = !ishelper || ishelper(6904)
TriggerAll = Var(58) > 1
Trigger1 = Win = 1
Trigger2 = Lose = 1
Trigger3 = DrawGame = 1
Trigger4 = RoundState = 4
Trigger5 = RoundState = 1
V = 58
Value = -8
IgnoreHitPause = 1

;2儔僂儞僪埲崀丄懄AI僗僀僢僠傪on偵
[State -2]
Type = VarSet
triggerall = !ishelper
Triggerall = RoundState = 2 && Var(58) < 0
trigger1 = palno != 12
V = 58
Value = 8
IgnoreHitPause = 1

[state -2];僗僥乕僩夞暅
type = selfstate
triggerall = !ishelper
trigger1 = roundstate = 3 && var(50) = 890106 && numhelper(6900)
trigger1 = helper(6900),var(5) > 10170
trigger2 = roundstate = 3 && !alive && palno = 10
value = 5150
ignorehitpause = 1

;攕杒帪墘弌
[State -2]
Type = selfstate
triggerall = !ishelper
Trigger1 = roundstate > 3 && Lose && stateno != 35 && !alive
value = 35
ignorehitpause = 1

;攕杒敾掕
[State -2, VarSet]
Type = VarSet
triggerall = !ishelper
Trigger1 = roundstate > 2 && Lose
var(51) = 1
ignorehitpause = 1

;彑棙敾掕
[State -2, VarSet]
Type = VarSet
triggerall = !ishelper
Trigger1 = roundstate > 2 && win
var(51) = 0
ignorehitpause = 1

;彑棙敾掕
[State -2, VarSet]
Type = VarSet
triggerall = !ishelper
Trigger1 = roundstate > 2 && win
var(50) = 0
ignorehitpause = 1

;彑棙帪墘弌
[State -2, VarSet]
Type = selfstate
triggerall = (!ishelper && win) || ishelper(6904)
Triggerall = roundstate > 3 && stateno != 180
Trigger1 = vel x != 0
Trigger2 = time > 20
Trigger2 = ctrl && vel y < 0
Trigger3 = stateno = 11
Trigger4 = ishelper(6904)
Trigger4 = root,var(35) != 0
value = 180
ignorehitpause = 1

[State -2, VarSet]
Type = VarSet
triggerall = !ishelper
triggerall = palno = 12 && numenemy
trigger1 = enemynear,name = "Kyuketsuki"
trigger1 = enemynear,palno = [6,11]
var(52) = 3
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = !ishelper
triggerall = RoundState = 2 && palno = 12
triggerall = stateno != 8910 && numenemy
trigger1 = enemynear,name = "Kyuketsuki"
trigger1 = enemynear,palno = [6,11]
trigger1 = enemynear,alive
value = 8910
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;婼涋彈乮侾俀俹埲奜僗僩乕儕乕乯
;--------------------------------------------------
[State 5111];僗僩乕儕乕奐巒
Type = selfState
triggerall = !ishelper
Trigger1 = palno != 12
Trigger1 = roundstate = 2
Trigger1 = stateno != [5000,5150]
Trigger1 = stateno != 35
Trigger1 = numhelper(6900)
Trigger1 = helper(6900),var(41) = 1
Value = 5050
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;婼涋彈乮侾俀俹僗僩乕儕乕乯
;--------------------------------------------------
[State -2, VarSet]
Type = VarSet
triggerall = !ishelper
Trigger1 = roundstate = 0
var(20) = 0
ignorehitpause = 1

[State 4]
type = stopSnd
triggerall = !ishelper
Trigger1 = roundstate = 1
trigger1 = palno = 10 || palno = 12
trigger1 = var(20) = 0
channel = -1
ignorehitpause = 1

[State -2, VarSet]
Type = Varadd
triggerall = !ishelper
Trigger1 = roundstate = 1
Trigger1 = var(20) = [0,1]
var(20) = 1
ignorehitpause = 1

;僉儞僌僋儕儉僝儞
[State -2]
type = SuperPause
triggerall = !ishelper
Triggerall = var(50) != 890106
trigger1 = (palno = 10 && roundno = 1) || (palno = 12 && var(52) = 0)
trigger1 = stateno=191&&RoundState=1&& var(20) = 1
trigger2 = palno != 12
trigger2 = stateno=89011&&time=1
time = 100
movetime = 0
anim = -1
Sound = S890+15*(palno = 10),0+2*(palno = 10)
persistent=0
ignorehitpause = 1
[State -2]
type = Projectile
triggerall = !ishelper
Triggerall = var(50) != 890106
trigger1 = stateno=89011&&time=1
projID = 8903
projanim = 8903
projremove = 0
projremovetime = 300
projheightbound = -2000000000, 2000000000
ProjEdgeBound = 2000000000
ProjStageBound = 2000000000
postype = p1
velmul = 0, 0
attr = SCA,NA
Damage = 10000-8000*(palno=1||palno=7), 10000-8000*(palno=1||palno=7)
hitflag = MAFDP
sparkno = -1
getpower = 0, 0
givepower = -1000000000, -1000000000
palfx.time = 60
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10
persistent = 1
pausemovetime = 99990000000
supermovetime = 99990000000
ignorehitpause = 1

[State reversal]
type = ReversalDef
triggerall = !ishelper
trigger1 = numenemy
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))&&(palno = 12 || palno = 6)
trigger2 = stateno = 89027 && (palno = 6 || palno = 12)
trigger2 = time = [40,111]
trigger3 = stateno = 89034 && (palno = 6 || palno = 12)
trigger3 = time = [77,200]
trigger4 = roundstate = 2
trigger4 = stateno = 8910 && time < 125
trigger5 = roundstate = 2 && stateno = 8912 && palno = 6 && numhelper(6900)
trigger5 = time < 90 && helper(6900),var(47) = 8901
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,0
hitsound = S890,1
p2stateno = 5150
palfx.time = 60
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10
ignorehitpause = 1

[state -2];僉儞僌僋儕儉僝儞
type = selfstate
triggerall = !ishelper && numenemy
triggerall =(enemy,name="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1"))&&palno=12
triggerall = RoundState = 3 && enemy,alive = 0
triggerall = stateno != 191
triggerall = stateno != [89011,89013]
trigger1 = stateno = 8901060
value = 89011
ignorehitpause = 1

[state -2];僉儞僌僋儕儉僝儞
type = selfstate
triggerall = !ishelper && numenemy
triggerall = (enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1"))&&palno=12
Triggerall = RoundState = 2 && enemy,alive
Triggerall = stateno != 8901060
trigger1 = ctrl || stateno != 0
value = 8901060
ctrl = 0
ignorehitpause = 1

[state -2];僉儞僌僋儕儉僝儞
type = selfstate
triggerall = !ishelper && numenemy
triggerall = !((enemy,name="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1"))&&palno=12)
Triggerall = var(50) != 890106 && var(52) = 0
triggerall = palno = 12 && RoundState = 2
triggerall = stateno != 191
triggerall = stateno != [89011,89013]
triggerall = numhelper(6900)
triggerall = helper(6900),var(41) = 0
trigger1 = ctrl
trigger2 = stateno != 0
value = 89011
ignorehitpause = 1

[State -2, RemoveExplod];僗儁儖僇乕僪柤乮僉儞僌僋儕儉僝儞乯嶍彍
Type = RemoveExplod
triggerall = !ishelper
Triggerall = NumExplod(8905) > 0
trigger1 = palno = 12
Trigger1 = numhelper(6900)
Trigger1 = helper(6900),var(41) = 2
trigger2 = palno != 12
trigger2 = stateno != 89011
ID = 8905
ignorehitpause = 1

[state 1706];傾儅僥儔僗堏峴
type = selfstate
triggerall = !ishelper
Triggerall = RoundState = 2
triggerall = numhelper(6900)
trigger1 = helper(6900),var(41) = 2
trigger1 = stateno != 89016
trigger1 = ctrl || stateno != 0
trigger2 = helper(6900),var(41) = 3
trigger2 = stateno = 0 || stateno = 50
value = 89016
ignorehitpause = 1

[State -2, VarSet];俇俹僝儞價儌乕僪娗棟
Type = Varset
triggerall = !ishelper && numenemy
trigger1 = enemynear,life != 0
trigger1 = enemynear,alive = 1
var(53) = 0
ignorehitpause = 1

[State -2, VarSet];俇俹僝儞價儌乕僪娗棟
Type = Varadd
triggerall = !ishelper && numhelper(6900) && numenemy
triggerall = palno = 6 && helper(6900),var(37) = 890
triggerall = var(53) = 0
trigger1 = enemynear,life = 0
trigger2 = enemynear,alive = 0
var(53) = 1
ignorehitpause = 1

[State -2];俇俹僝儞價儌乕僪
Type = AssertSpecial
triggerall = !ishelper
triggerall = var(53) = 0 && numhelper(6900)
trigger1 = palno = 6 && helper(6900),var(4) != 890106 && helper(6900),var(37) = 890
IgnoreHitPause = 1
Flag  = noko

[State -2];俇俹僝儞價儌乕僪
type = Lifeset
triggerall = !ishelper && numhelper(6900)
trigger1 = palno = 6 && helper(6900),var(37) = 890 && helper(6900),var(4) != 890106
value = 0 + (var(53)!=0) +lifemax*(roundstate!=2)
ignorehitpause = 1

[state 1706];巰嫸偄堏峴
type = selfstate
triggerall = !ishelper
Triggerall = RoundState = 2
triggerall = numhelper(6900)
trigger1 = helper(6900),var(41) = 4
trigger1 = stateno != [89017,89019]
trigger1 = ctrl || stateno != 0
trigger2 = helper(6900),var(41) = 5
trigger2 = stateno = 0 || stateno = 50
value = 89019
ignorehitpause = 1

[state 1706];慛寣偺寢枛堏峴
type = selfstate
triggerall = !ishelper
Triggerall = RoundState = 2 && var(54) != 890106
triggerall = numhelper(6900)
triggerall = stateno != 8910 && stateno != 89034
triggerall = stateno != [89026,89029]
triggerall = ctrl || stateno != 0
trigger1 = helper(6900),var(41) = 6
trigger2 = helper(6900),var(41) = 7
Trigger2 = numexplod(8958) = 0
value = 89026
ignorehitpause = 1

[State -2]
Type = AssertSpecial
trigger1 = !ishelper
trigger1 = numexplod(8958)||numexplod(8971)||var(54)=890106
trigger2 = ishelper(8967)
trigger3 = ishelper(8968)
IgnoreHitPause = 1
Flag  = invisible
Flag2 = roundnotover

[State 3000, 曄悢];恄敱岠壥壒
Type = Varadd
triggerall = !ishelper
Trigger1 = numexplod(8958)
var(20) = 1
ignorehitpause = 1

[State 1065, 儃僀僗];恄敱岠壥壒
Type = PlaySnd
triggerall = !ishelper
Trigger1 = numexplod(8958)
Trigger1 = var(20) = 139
Value = S897, 7
Channel = 3
ignorehitpause = 1

[State 1000, 0]
Type = EnvShake
triggerall = !ishelper
Trigger1 = numexplod(8958)
Trigger1 = var(20) >= 139
Trigger1 = timemod = 30,0
Time = 30
Freq = 60
Ampl = -20
ignorehitpause = 1

[state -2];僗僩乕儕乕侾夞偱廔傢傝
type = selfstate
triggerall = !ishelper
triggerall = Alive = 1 && roundstate = 2
triggerall = roundno > 1
trigger1 = var(51) = 1 && var(50) = 890106
trigger1 = stateno != 1
trigger1 = numhelper(6900)
trigger1 = helper(6900),var(5) = [10000,10179]
value = 1
ignorehitpause = 1

[state -2];僿儖僷乕愯桳帪敪嫸儌乕僪
type = selfstate
triggerall = !ishelper
triggerall = Alive = 1 && roundstate = 2 && ctrl && stateno != 1
trigger1 = numhelper(6900) = 0
trigger2 = numhelper(6901) = 0
value = 1
ignorehitpause = 1

[state -2];僿儖僷乕愯桳帪敪嫸儌乕僪
type = selfstate
triggerall = !ishelper
triggerall = Alive = 1 && roundstate = 2 && stateno != 1
trigger1 = var(54) = 890106
value = 1
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = !ishelper
triggerall = numhelper(6900)
triggerall = stateno != 140 && var(54) != 890106
trigger1 = helper(6900),var(46) > 700
value = 140
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = ishelper(6904)
triggerall = stateno != 8901060
Trigger1 = numhelper(193) && root,var(35) = 0
Trigger1 = helper(193),numtarget && helper(193),var(55) = 100 && helper(193),var(21) = 890
Trigger1 = enemynear,HitPauseTime > 901016
value = 8901060
ignorehitpause = 1

