
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	忢帪娔帇僗僥乕僩
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
[Statedef -2]
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;偙傫傆偂偖


[State -2, VarSet];帋崌廔椆屻偺挻夞暅偺桳柍
Type = VarSet
Trigger1 = 1
V = 44
Value = 0;偙偙傪侾偱偁傝丄0偱側偟


[State -2, VarSet];AI偺夞暅媄偺巊梡壜斲
Type = VarSet
Trigger1 = 1
V = 45
Value = 1;偙偙傪侾偱巊梡丄0偱巊梡晄壜


[State -2, VarSet];11丄12P偺帺柵偺桳柍
Type = VarSet
Trigger1 = 1
V = 46
Value = 1;偙偙傪侾偱偁傝丄0偱側偟


[State -2, VarSet];侾俀P,11P埲奜偺AI偺戝杺朄巊梡壜斲
Type = VarSet
Trigger1 = 1
V = 52
Value = 1;偙偙傪侾偱巊梡丄0偱巊梡晄壜


[State -2, VarSet];尰嵼枹巊梡
Type = null;VarSet
Trigger1 = 1
V = 53
Value = 0;偙偙傪侾偱ON丄0偱OFF
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;560僄儔乕懳嶔
[State ]
type=pause
trigger1=!ishelper
trigger1=alive
trigger1=roundstate!=2
time=2147483647
movetime=2147483647
UnHittable=0
ignorehitpause=1

[State ]
type=superpause
trigger1=!ishelper
trigger1=alive
trigger1=roundstate!=2
anim=-1
time=2147483647
movetime=2147483647
UnHittable=0
darken=0
ignorehitpause=1

[State ]
type=Helper
triggerall=!ishelper
trigger1=alive
trigger1=gametime%45=0
trigger2=numhelper(112233)=0
trigger2=roundstate<=1
name="kaijo"
id=112233
pos=0,0
postype=p1
sprpriority=0
stateno=112233
Helpertype=player
keyctrl=0
ownpal=0
supermove=1
pausemovetime=2147483647
supermovetime=2147483647
ignorehitpause=1

[State ]
type=changeanim
triggerall=!ishelper
trigger1=hitpausetime>30
trigger1=numhelper(504)
value=15991
ignorehitpause=1

[State ]
type=HitDef
trigger1=hitpausetime>30
trigger1=numhelper(504)
affectteam=F
attr=,NA
damage=0
getpower=0
givepower=0
hitflag	=MAFD
sparkno=-1
guard.sparkno=-1
pausetime=1,0
guard.pausetime=1, 0
ignorehitpause=1

[state ]
type=Helper
trigger1=numhelper(504)=0
name="hitpause-reset"
stateno=504
ID=504
helpertype=player
pos=0,0
postype=p1
facing=1
keyctrl=0
ownpal=0
supermove=1
pausemovetime=2147483647
supermovetime=2147483647
ignorehitpause=1

;==================================================================
;偍偟傑偄
;==================================================================














[State -2]
Type     = Helper
triggerall = palno = 12
TriggerAll = NumHelper(7226) = 0
Trigger1 = time = 0
Stateno  = 7226
ID       = 7226
Pos      = 0,0
PosType  = P1
Keyctrl  = 0
IgnoreHitPause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999
persistent = 0
ownpal = 1

[State -2]
Type     = Helper
triggerall = palno = 12
TriggerAll = NumHelper(7225) = 0
Trigger1 = time = 0
Stateno  = 7225
ID       = 7225
Pos      = 0,0
PosType  = P1
Keyctrl  = 0
IgnoreHitPause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999
persistent = 0
ownpal = 1

[State -2]
Type     = Helper
triggerall = palno = 12
TriggerAll = NumHelper(7224) = 0
Trigger1 = roundstate <= 2
Trigger1 = time = 0
Stateno  = 7224
ID       = 7224
Pos      = 0,0
PosType  = P1
Keyctrl  = 0
IgnoreHitPause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999
persistent = 0
ownpal = 1

[State -2]
Type     = Helper
triggerall = palno = 12
TriggerAll = NumHelper(72244) = 0
Trigger1 = roundstate <= 2
Trigger1 = time = 0
Stateno  = 72244
ID       = 72244
Pos      = 0,0
PosType  = P1
Keyctrl  = 0
IgnoreHitPause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999
persistent = 0
ownpal = 1

[State -2]
Type     = null;Helper
triggerall = palno = [7,12]
TriggerAll = NumHelper(7222) = 0
Trigger1 = time = 0
Stateno  = 7222
ID       = 7222
Pos      = 0,0
PosType  = P1
Keyctrl  = 0
IgnoreHitPause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999
persistent = 0
Size.XScale = 1.032
Size.YScale = 1.032

[State -2]
Type     = null;Helper
triggerall = palno = [7,12]
Triggerall = NumHelper(7220) = 0
Trigger1 = time = 0
Stateno  = 7220
ID       = 7220
IgnoreHitPause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999
Size.XScale = 1.017
Size.YScale = 1.017
persistent = 0

[State -2]
type = HitOverride
triggerall = palno = [7,12]
trigger1 = 1
attr = SCA, AA, AT, AP
slot = 0
stateno = 1115;2382
ignorehitpause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999

;曄悢婰壇梡僿儖僷乕(曄悢儕僙杊屼梡)
[State -2]
type = helper
triggerall = palno = [11,12]
trigger1 =!numhelper(1007)
id = 1007
persistent = 0
name = "P"
pos = 0,0
postype = P1
stateno = 1007
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999
sausemovetime = 9999999

;NOKO僼儔僌
;偙傟偼忢帪僗僥乕僩敳偗忬懺偺応崌偼摿偵昁梫偁傝傑偣傫丅偁偔傑偱搳偘傪嬺傜偆傛偆偵偟偰妿偮懄巰柍岠偵偟偨偄応崌
[State -2]
type = assertspecial
triggerall =numhelper(1007)
trigger1 =(movetype=H&&helper(1007),var(1)>1||var(1)!=gametime&&helper(1007),var(1)>1||roundstate>=2&&!alive&&helper(1007),var(1)>1)
flag = noko
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State ]
type=assertspecial
triggerall=!ishelper
trigger1=var(1)!
trigger2=gethitvar(fall.damage)!=0&&stateno=[5000,5150]
flag=noko
ignorehitpause=1

;僗僥乕僩敳偗
[State -2]
type = SelfState
trigger1 = numhelper(1007)
trigger1 = helper(1007),var(1)>1;曐懚偟偰抲偄偨儔僀僼偑1傛傝戝偒偄応崌
trigger1 = ((stateno=[5150,5199])||var(1)!=gametime&&helper(1007),var(0)>1199||!alive&&helper(1007),var(1)>1)
trigger1 = stateno != 1116
trigger1 = life != 0
value= (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151;僈乕僪僗僥乕僩
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state ]
type=selfstate
triggerall=!ishelper
trigger1=var(1)!=gametime
value=151*(statetype=S||statetype=L)+153*(statetype=C)+155*(statetype=A)
ctrl=0
ignorehitpause=1

;儔僀僼堐帩
;lifeset偱傕偐傑偄傑偣傫偑僩儗乕僯儞僌儌乕僪偱偺尒塰偊摍傪峫椂偡傞偲lifeadd偺曽偑偄偄偱偡
[State -2]
type = lifeadd
triggerall = roundstate=2
trigger1 = numhelper(1007)
trigger1 = helper(1007),var(1)-life>lifemax*0.1;曐懚偟偰偄偨儔僀僼偐傜尰嵼儔僀僼傪堷偄偨悢偑儔僀僼嵟戝抣偺1妱埲忋
trigger1 = stateno != 1116
trigger1 = life != 0
value=(helper(1007),var(1)-life)
ignorehitpause = 1
supermovetime = 9999999
sausemovetime = 9999999

[State -2, ]
type = lifeadd
triggerall != ishelper
triggerall = palno = 12
trigger1 = alive
trigger1 = numhelper(1007)
trigger1 = numhelper(1007)
trigger1 = helper(1007),var(1)>1;曐懚偟偰抲偄偨儔僀僼偑1傛傝戝偒偄応崌
trigger1 = ((stateno=[5150,5199])||var(1)!=gametime&&helper(1007),var(0)>1199||!alive&&helper(1007),var(1)>1) 
value = 5
pausemovetime = 0
supermovetime =

[state -2]
type = selfstate
triggerall = ishelper
trigger1 = var(36) != gametime
value = 8000
ignorehitpause = 1
supermovetime = 9999999
sausemovetime = 9999999

[State -2, VarSet]
Type = Varadd
triggerall = palno = [11,12]
triggerall = !ishelper
Trigger1 = 1
trigger1 = roundstate = 2
V = 57
Value = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2, VarSet]
Type = Varadd
triggerall = palno = [11,12]
triggerall = !ishelper
Trigger1 = 1
trigger1 = roundstate = 2
V = 26
Value = 1

[State -2,]
type = lifeadd
triggerall = palno = [7,12]
Trigger1 = Var(44) = 1
trigger1 = alive
trigger1 = roundstate = 3
trigger1 = life >=1 
value = 200

[State -2]
type = PalFX
triggerall = palno = [7,12]
triggerall = !ishelper
trigger1 = time = 0
time = 9999999999999999999999
add = 30,33,38
;mul = 0,0,0
sinadd = 45,50,57,120

[State -2]
type = null;PalFX
triggerall = palno = 12
trigger1 = time = 0
time = 9999999999999999999999
add = 5,5,15
;mul = 0,0,0
sinadd = 40,40,40,100

[State -1]
Type           = AfterImage
triggerall = palno = 12
Trigger1       = Time = 0
Time           = -1
Trans          = Add
Length         = 12
TimeGap        = 1
FrameGap       = 1
PalBright      = 80 , 80 , 80
PalContrast    = 150 , 200 , 255
PalAdd         = 0 , 0 , 0
PalMul      = .75,.75,.75  ;巆憸偺怓偺忔嶼抣乮愒,椢,惵丒俼俧俛丒float乯

[State -2, ]
type = powerset
triggerall = palno = [11,12]
trigger1 =1
value = 3000

[State -2, ]
type = powerset
triggerall = palno = [7,11]
trigger1 =1
trigger1 = power <=1000
value = 1000

[State -2, ]
type = poweradd
triggerall = palno = [7,11]
trigger1 = life >=20
trigger1 = (GameTime%10) = 0
value = 10

[State -2, ]
type = powerset
triggerall = palno = [7,11]
trigger1 = life <=20
trigger1 = 1
value = 3000

[State -2, ]
type = null;lifeadd
triggerall = palno = 12
trigger1 = alive
trigger1 = life >=1 
trigger1 = (GameTime%30) = 0
trigger1 = life <=30 
value = 8
pausemovetime = 0
supermovetime = 0

[State -2, ]
type = null;lifeadd
triggerall = palno = 12
trigger1 = alive
trigger1 = (GameTime%20) = 0
trigger1 = life >=1 
trigger1 = life <=15 
value = 2
pausemovetime = 0
supermovetime = 0

[State -2, ]
type = null;lifeadd
triggerall = palno = [11,12]
trigger1 = alive
trigger1 = (GameTime%70) = 0
value = 5
pausemovetime = 0
supermovetime = 0

[State -2, ]
type = lifeadd
triggerall = palno = [11,12]
trigger1 = alive
trigger1 = (GameTime%400) = 0
trigger1 = life <=20 
trigger1 = life >=1 
value = 1
pausemovetime = 0
supermovetime = 0

[State -2, ]
type = lifeadd
triggerall = palno = [7,12]
trigger1 = alive
trigger1 = (GameTime%120) = 0
trigger1 = life <=10 
trigger1 = life >=1 
value = 1
pausemovetime = 0
supermovetime = 0

[State -2]
type = LifeAdd
triggerall = roundstate = 2
triggerall = !ishelper
trigger1 = Helper(450000),GetHitVar(Damage)
value = -1
absolute = 1
ignorehitpause = 1
pausemovetime = 9999999999999999999
supermovetime = 9999999999999999999

[state -2]
type = helper
triggerall =  palno = [7,12]
triggerall = stateno !=1116
trigger1 = numhelper(450000) = 0
name = "hit"
helpertype = normal
id = 450000
stateno = 450000
pos = 0,0
postype = p1
ownpal= 1
pausemovetime = 9999999999999999999
supermovetime = 9999999999999999999
IgnoreHitPause = 1
persistent = 0

[State -2]
type = helper
triggerall = !numhelper(50000) && !ishelper
trigger1 = enemy,numprojid(1450001) > 0
ID = 50000
persistent = 0
pos = 0,0
postype = P1
stateno = 50000
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, VarSet];嬻拞僟僢僔儏惂屼丂弶婜壔
Type = VarSet
Trigger1 = Time = 0
Trigger1 = StateType != A
V = 10
Value = 40

[State -2, AfterImage];僟儊乕僕帪巆憸徚嫀
Type = AfterImage
Trigger1 = MoveType = H
Time = 0
IgnoreHitPause = 1

[State -2]
type = Pause
triggerall = life != 0
triggerall = palno = [11,12]
triggerall = !ishelper
trigger1 = (roundState = [3,4]) && enemy,alive = 1
time = 100
movetime = 100
ignorehitpause = 1

[State -2]
type = SuperPause
triggerall = life != 0
triggerall = palno = [11,12]
triggerall = !ishelper
trigger1 = (roundState = [3,4]) && enemy,alive = 1
anim = -1
time = 100
movetime = 100
darken = 0
ignorehitpause = 1

[State -2]
type = assertspecial
triggerall = stateno != [170,182]
triggerall = life != 0
triggerall = palno = [11,12]
triggerall = !ishelper
trigger1 = roundState >= 3
flag = roundnotover
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

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

;	暻抂挼傃墇偟杊巭慬抲
;丂仸揤抧巵偺俫俹傪嶲峫偵偝偣偰偄偨偩偒傑偟偨
;--------------------------------------------------
[State -2, Width]
Type = Width
TriggerAll = FrontEdgeDist < 8
TriggerAll = MoveType != H
Trigger1 = StateNo != [3040,3043]
Trigger1 = StateNo != [3050,3053]
Trigger1 = StateNo != [3525,3527]
Edge = 3,

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	僈乕僪僄僼僃僋僩昞帵
;--------------------------------------------------
[State -2, Explod];棫偪僈乕僪僄僼僃僋僩
Type = Explod
TriggerAll = Time = 0
TriggerAll = NumExplod(6950) < 3
Trigger1 = StateNo = 150
Anim = 6950
ID = 6950
Pos = 14, -40
PosType = P1
Facing = 1
BindTime = -1
SprPriority = 10
OwnPal = 1

[State -2, Explod];孅僈乕僪僄僼僃僋僩
Type = Explod
TriggerAll = Time = 0
TriggerAll = NumExplod(6950) < 3
Trigger1 = StateNo = 152
Anim = 6950
ID = 6950
Pos = 20, -24
PosType = P1
Facing = 1
BindTime = -1
SprPriority = 10
OwnPal = 1

[State -2, Explod];嬻拞僈乕僪僄僼僃僋僩
Type = Explod
TriggerAll = Time = 0
TriggerAll = NumExplod(6950) < 3
Trigger1 = StateNo = 154
Anim = 6950
ID = 6950
Pos = 31, -48
PosType = P1
Facing = 1
BindTime = -1
SprPriority = 10
OwnPal = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	峌寕僄僼僃僋僩徚嫀
;--------------------------------------------------
[State -2, RemoveExplod];儗僶乕対
Type = RemoveExplod
Trigger1 = StateNo != [210,211]
Trigger1 = NumExplod(210) > 0
IgnoreHitPause = 1
ID = 210

[State -2, RemoveExplod];儗僶乕対
Type = RemoveExplod
Trigger1 = StateNo != [210,211]
Trigger1 = NumExplod(211) > 0
IgnoreHitPause = 1
ID = 211

[State -2, RemoveExplod];僋儔僢僔儏対
Type = RemoveExplod
Trigger1 = StateNo != 240
Trigger1 = NumExplod(240) > 0
IgnoreHitPause = 1
ID = 240

[State -2, RemoveExplod];僋儔僢僔儏廟
Type = RemoveExplod
Trigger1 = StateNo != 440
Trigger1 = NumExplod(440) > 0
IgnoreHitPause = 1
ID = 440

[State -2, RemoveExplod];嬻拞対
Type = RemoveExplod
Trigger1 = StateNo != 600
Trigger1 = NumExplod(600) > 0
IgnoreHitPause = 1
ID = 600

[State -2, RemoveExplod];嬻拞対
Type = RemoveExplod
Trigger1 = StateNo != 600
Trigger1 = NumExplod(600) > 0
IgnoreHitPause = 1
ID = 600

[State -2, RemoveExplod];僨乕儌儞儘乕僪僋儗僀僪儖俙
Type = RemoveExplod
Trigger1 = StateNo != [1021,1022]
Trigger1 = NumExplod(6220) > 0
IgnoreHitPause = 1
ID = 6220

[State -2, RemoveExplod];僨乕儌儞儘乕僪僋儗僀僪儖俛
Type = RemoveExplod
Trigger1 = StateNo != [1031,1032]
Trigger1 = NumExplod(6230) > 0
IgnoreHitPause = 1
ID = 6230

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	儌乕僪暿巇條
;--------------------------------------------------

[State -2]
type = AssertSpecial
triggerall = palno = [7,12]
trigger1 = 1
trigger1 = !ishelper
flag  = nostandguard
flag2 = nocrouchguard
flag3 = noairguard

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	攕杒敾掕
;--------------------------------------------------
[State -2, VarSet]
Type = VarSet
Trigger1 = StateNo = 5150
Trigger1 = Lose
trigger2 = palno = [11,12]
Trigger2 = StateNo = 175
V = 51
Value = 1

[State -2, VarSet]
Type = null;Varadd
Trigger1 = StateNo = 180
V = 57
Value = 1

[State -2, VarSet]
Type = VarSet
Trigger1 = StateNo = 801
V = 39
Value = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	僎乕僕僆僼
;--------------------------------------------------
[State -2, VarAdd]
Type = Null;VarAdd
TriggerAll = Var(30)%10 = 0
Trigger1 = Var(46) = 1
Trigger1 = Var(52) = 9
V = 30
Value = 1

[State -2, AssertSpecial]
Type = AssertSpecial
Trigger1 = Var(30)%10 = 1
Flag = NoBarDisplay
IgnoreHitPause = 1

[State -2, VarAdd]
Type = null;VarAdd
TriggerAll = (Var(30)/10)%10 = 0
TriggerAll = NumEnemy > 0
Trigger1 = Enemy,Name = "Reimu_Hakurei"
Trigger1 = Enemy,AuthorName = "Nachel"
Trigger1 = Enemy,Var(30)%10 = 1
;Trigger2 = Var(46) = 1
;Trigger2 = Var(52) = 9
V = 30
Value = 10

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	儘乕僇儖儖乕儖
;--------------------------------------------------
;
;丂丂奺惢嶌幰偑梡堄偟偨僗僥僐儞傪捛壛偟傑偟偨偑丄
;丂堦晹曄峏傕偟傑偟偨丅
;
;丂丂丂曄峏丄傑偨偼捛壛偟偨僩儕僈乕
;丂丂丂丒亀TriggerAll = NumEnemy > 0亁
;丂丂丂丒亀Enemy,亁仺亀EnemyNear,亁
;
;--------------------------------------------------
;	嘓巵偺愒庨廐梩偺乽廱傪徟偑偡乿
;--------------------------------------------------

[State -2, Local-Rules]
Type = PowerAdd
TriggerAll = NumEnemy > 0
TriggerAll = EnemyNear,AuthorName = "嘓"
TriggerAll = EnemyNear,Name = "Akiha_Vermilion"
Trigger1   = EnemyNear,Var(47) = 1
Value = -26

;--------------------------------------------------
;	憈婱巵偺桯乆巕偺乽楈晞丒庻柦乿
;--------------------------------------------------


;--------------------------------------------------
;	悈塭巵偺渎崄偺乽婼敍傝偺弍 & 巤夓婼敍傝偺弍乿
;--------------------------------------------------
[State -2, Local-Rules]
Type = VarAdd
TriggerAll = Var(41) = 0; 僋儔僢僔儏拞偼彍奜
TriggerAll = NumEnemy > 0
TriggerAll = EnemyNear,Name = "Suika Ibuki"
TriggerAll = EnemyNear,AuthorName = "Mikage"
Trigger1 = EnemyNear,FVar(23) > 0
Trigger2 = EnemyNear,FVar(24) > 0
V = 40
Value = -3

[State -2, Local-Rules]
Type = VarSet
TriggerAll = NumEnemy > 0
TriggerAll = EnemyNear,Name = "Suika Ibuki"
TriggerAll = EnemyNear,AuthorName = "Mikage"
Trigger1 = EnemyNear,FVar(23) > 0
Trigger2 = EnemyNear,FVar(24) > 0
V = 42
Value = 1

;--------------------------------------------------
;	僪儘僂傿儞巵偺傾儖僇僫僉儍儔偺杺傾儖僇僫偺撆岠壥
;--------------------------------------------------
[State -2, Local-Rules]
Type = PowerAdd
TriggerAll = NumEnemy > 0
TriggerAll = EnemyNear,AuthorName = "Drowin arcana"
TriggerAll = EnemyNear,FVar(20) > 0
Trigger1 = Power > 0
Value = -1


[State -2, Local-Rules]
Type = PalFx
TriggerAll = NumEnemy > 0
TriggerAll = EnemyNear,Authorname = "Drowin arcana"
Trigger1 = EnemyNear,FVar(20) > 0
Add = 100,0,110
Mul = 220,220,220
Time = 5
IgnoreHitPause = 1

;--------------------------------------------------
;12P梡椫偭偐


[state a]
type = explod
triggerall = palno = 12
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = time%5 = 1
anim = 6100
id = 41000
sprpriority = 10-random%20
postype = p1
pos = 0,-50
scale = 0.25,0.25
bindtime = 1
under = 0
ownpal = 1
persistent = 1
vel = -1.5 + ((random%30)*0.1),-2 + ((random%40)*0.1)
accel = 0,0.08
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999
trans = add


[State -2]
type = Explod
triggerall = palno = 12
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%10) = 1
anim = 7139
id = 41000
scale = 0.5,0.5
sprpriority = 99
postype = p1
pos = -15 + (random%10), -45 + (random%10)
accel = -0.2, 0.13
vel = 5,-4
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add

[State -2]
type = Explod
triggerall = palno = 12
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%10) = 1
anim = 7139
id = 41000
scale = 0.5,0.5
sprpriority = 99
postype = p1
pos = 5 - (random%10), -45 + (random%10)
accel = 0.2, -0.1
vel = -5 ,2
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add

[State -2]
type = Explod
triggerall = palno = 12
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%10) = 1
anim = 7139
id = 41000
scale = 0.5,0.5
sprpriority = 99
postype = p1
pos = 5 - (random%10), -45 + (random%10)
accel = 0.2, 0.15
vel = -5,-4
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add

[State -2]
type = Explod
triggerall = palno = 12
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%10) = 1
anim = 7139
id = 41000
scale = 0.5,0.5
sprpriority = 99
postype = p1
pos = -5 + (random%10), -45 + (random%10)
accel = -0.2, -0.1
vel = 5 ,2
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add


[State -2]
type = Explod
triggerall = palno = 12
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%16) = 1
anim = 7111;7139
id = 41000
scale = 0.15,0.15
sprpriority = 99
postype = p1
pos = -15 + (random%10), -45 + (random%10)
accel = -0.2, 0.13
vel = 5,-4
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add

[State -2]
type = Explod
triggerall = palno = 12
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%16) = 1
anim = 7111;7139
id = 41000
scale = 0.15,0.15
sprpriority = 99
postype = p1
pos = 5 - (random%10), -45 + (random%10)
accel = 0.2, -0.1
vel = -5 ,2
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add

[State -2]
type = Explod
triggerall = palno = 12
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%16) = 1
anim = 7111;7139
id = 41000
scale = 0.15,0.15
sprpriority = 99
postype = p1
pos = 5 - (random%10), -45 + (random%10)
accel = 0.2, 0.15
vel = -5,-4
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add

[State -2]
type = Explod
triggerall = palno = 12
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%16) = 1
anim = 7111;7139
id = 41000
scale = 0.15,0.15
sprpriority = 99
postype = p1
pos = -5 + (random%10), -45 + (random%10)
accel = -0.2, -0.1
vel = 5 ,2
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add

;--------------------------------------------------
;偍傠傝傫岝棻巕


[State -2]
type = Explod
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%35) = 1
anim = 22123
id = 22123
sprpriority = 40
postype = p1
pos = 20 - (random%40), -30 + (random%20)
scale = 0.67,0.67
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999


[State -2]
type = Explod
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%40) = 1
anim = 22123
id = 22123
scale = 0.67,0.67
sprpriority = 40
postype = p1
pos = 20 - (random%40), -30 + (random%20)
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999


[State -2]
type = Explod
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%37) = 1
anim = 22123
id = 22123
scale = 0.67,0.67
sprpriority = 40
postype = p1
pos = 20 - (random%40), -30 + (random%20)
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999


[State -2]
type = Explod
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%34) = 1
anim = 22122
id = 22123
scale = 0.67,0.67
sprpriority = 40
postype = p1
pos = -40 + (random%40), -20 + (random%10)
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999


[State -2]
type = Explod
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%41) = 1
anim = 22122
id = 22123
scale = 0.67,0.67
sprpriority = 40
postype = p1
pos = -40 + (random%40), -20 + (random%10)
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999


[State -2]
type = Explod
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%48) = 1
anim = 22122
id = 22123
scale = 0.67,0.67
sprpriority = 40
postype = p1
pos = -40 + (random%40), -20 + (random%10)
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999



[State -2]
type = Explod
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%45) = 1
anim = 22124
id = 22123
scale = 0.67,0.67
sprpriority = 40
postype = p1
pos = 40 - (random%40), -20 + (random%10)
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999


[State -2]
type = Explod
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%43) = 1
anim = 22124
id = 22123
scale = 0.67,0.67
sprpriority = 40
postype = p1
pos = 40 - (random%40), -20 + (random%10)
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999


[State -2]
type = Explod
triggerall = anim = [0,1]
triggerall = time >= 15
trigger1 = (GameTime%47) = 1
anim = 22124
id = 22123
scale = 0.67,0.67
sprpriority = 40
postype = p1
pos = 40 - (random%40), -20 + (random%10)
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999


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

[State -2,Explod]
type = Explod
triggerall = anim = [0,1]
triggerall = time >= 17
trigger1 = (GameTime%6) = 0
trigger1 = palno >= 7
anim = 22125;22063
sprpriority = 11
scale = 0.8,0.8
postype = p1
pos = 0,0
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add

[State -2,Explod]
type = Explod
triggerall = anim = [0,1]
triggerall = time >= 17
trigger1 = (GameTime%6) = 0
trigger1 = palno <= 6
anim = 22125;22063
sprpriority = 11
scale = 0.5,0.5
postype = p1
pos = 0,0
bindtime = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add

[State a]
type = null;Explod
triggerall = anim !=7110
triggerall = !ishelper
trigger1 = (GameTime%6) = 1
trigger1 = roundstate >= 2
trigger1 = life != 0
anim = 7075
id = 41001
sprpriority = 16
postype = p1
pos = -40 + (random%80),0 - (random%40)
scale = 0.5,0.5 
bindtime = 1
under = 0
ownpal = 1
persistent = 1
vel = 0,-2 - (random%1)
ignorehitpause = 1
pausemovetime = 9999
supermovetime = 9999
trans = add

[State -2,Explod]
type = Explod
triggerall = palno = 12
triggerall = anim = [0,1]
triggerall = time >= 17
trigger1 = (GameTime%3) = 0
anim = 22126;22063
sprpriority = -4
scale = 0.84,0.84
postype = p1
pos = 0,-18
bindtime = 100
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add

[State -2,Explod]
type = Explod
triggerall = palno = 12
triggerall = anim = [0,1]
trigger1 = time >= 17
anim = 22126;22063
sprpriority = -3
Scale = (ifelse((gametime%6<=5),((gametime%10 * 0.02)  / 0.6),(1 - (gametime%10*0.02)  / 0.6))) * 0.82,0.82
postype = p1
pos = -1,-9
bindtime = 100
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add

[State -2,Explod]
type = Explod
triggerall = palno = [7,11]
triggerall = anim = [0,1]
triggerall = time >= 17
trigger1 = (GameTime%4) = 0
anim = 22126;22063
sprpriority = -4
scale = 0.84,0.84
postype = p1
pos = 0,-18
bindtime = 100
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add

[State -2,Explod]
type = Explod
triggerall = palno = [7,12]
triggerall = anim = [0,1]
triggerall = time >= 17
trigger1 = (GameTime%4) = 0
anim = 22300;22063
scale = 0.8,0.8
sprpriority = -1
postype = p1
pos = -1,-14
bindtime = 100
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = add

[State -1]
type = Explod
triggerall = anim = [0,1]
triggerall = palno = [7,11]
trigger1 = time = 17
anim = 41005
id = 41000
scale = 0.84,0.84
sprpriority = 0
postype = p1
pos = -3,-6
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -1]
type = Explod
triggerall = anim = [0,1]
trigger1 = numexplod(41002) = 0
trigger1 = time = 1
triggerall = palno >= 7
anim = 41000
id = 41002
scale = 0.85,0.16
sprpriority = -7
postype = p1
pos = 0,3
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
trans = add
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -1]
type = Explod
triggerall = anim = [0,1]
triggerall = palno <= 6
trigger1 = numexplod(41002) = 0
trigger1 = time = 1
anim = 41000
id = 41002
scale = 0.425,0.08
sprpriority = -7
postype = p1
pos = 0,3
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
trans = add
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -1]
type = Explod
triggerall = anim = [0,1]
triggerall = palno >= 7
trigger1 = time = 16
anim = 7140
id = 41000
scale = 1,0.2
sprpriority = -8
postype = p1
pos = 0,3
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
trans = add
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -1]
type = Explod
triggerall = anim = [0,1]
triggerall = palno <= 6
trigger1 = time = 16
anim = 7140
id = 41000
scale = 0.5,0.1
sprpriority = -8
postype = p1
pos = 0,3
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
trans = add
SuperMoveTime = 9999
PauseMoveTime = 9999

[State 3020, 1]
type = RemoveExplod
trigger1 = anim != [0,1]
ID = 41000

[State 3020, 1]
type = RemoveExplod
trigger1 = movetype = H
Trigger2 = Anim = 7110
Trigger2 = AnimElem = 6
ID = 41001

[State 3020, 1]
type = RemoveExplod
trigger1 = anim != [0,1]
ID = 41002

[State 3020, 1]
type = RemoveExplod
trigger1 = stateno != 1161
ID = 41003

[State 3020, 1]
type = RemoveExplod
trigger1 = stateno != [3030,3032]
ID = 6420

[State 3020, 1]
type = RemoveExplod
trigger1 = stateno != [810,812]
ID = 7122

[State 3020, 1]
type = RemoveExplod
trigger1 = stateno != [810,812]
ID = 7090

[State 3020, 1]
type = RemoveExplod
trigger1 = stateno != 3241
ID = 7091

[State 3020, 1]
type = RemoveExplod
trigger1 = stateno != 820
ID = 820

[State 3020, 1]
type = RemoveExplod
trigger1 = stateno != 820
ID = 820

[State 3020, 1]
type = RemoveExplod
trigger1 = anim = [0,1]
trigger1 = roundstate >= 3
trigger1 = alive
ID = 7006

[State -1]
type = Explod
triggerall = palno = 12
triggerall = numexplod(41001) = 0
trigger1 = anim = [0,1]
trigger1 = time = 1
anim = 7096
id = 41001
sprpriority = 5
scale = 0.8,0.8
postype = p1
pos = 0,-45
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
trans = add
SuperMoveTime = 9999
PauseMoveTime = 9999

[State a]
type = Explod
triggerall = anim !=7110
triggerall = !ishelper
trigger1 = (GameTime%7) = 1
trigger1 = roundstate >= 2
trigger1 = life != 0
anim = 7114
id = 41001
sprpriority = 16
postype = p1
pos = -35 + (random%70),0 - (random%80)
scale = 0.45,0.45
bindtime = 1
under = 0
ownpal = 1
persistent = 1
vel = 0,-2 - (random%1)
ignorehitpause = 1
pausemovetime = 9999
supermovetime = 9999
trans = add

[state -2]
type = nothitby
triggerall = palno = [7,12]
trigger1 = 1
value= SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
time = -1
ignorehitpause = 1
pausemovetime = 9999999999999999999
supermovetime = 9999999999999999999



[state -2]
type = destroyself
triggerall = ishelper(6699)
trigger1 = stateno != [6698,6699]
ignorehitpause = 1

[state -2]
type = destroyself
triggerall = ishelper(6689)
trigger1 = stateno != 6689
ignorehitpause = 1

[state -2]
type = destroyself
triggerall = ishelper(50000)
trigger1 = stateno != 50000
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = ishelper(50000)
trigger1 = stateno != 50000
value = 8000
ignorehitpause = 1

[Statedef 8000]
anim = 6900
ctrl = 0

[state 6506,1]
type = nothitby
trigger1 = 1
value = SCA
time = -1

[state 8000]
type = changestate
trigger1 = !ishelper
value = 0
ctrl = 1

[state 8000]
type = assertspecial
triggerall = ishelper
trigger1 = 1
flag = invisible

[state 8000]
type = destroyself
trigger1 = ishelper
