;-------------------------------------------------------------------------------
;傾乕儅乕

[statedef 150]
hitdefpersist = 1
movehitpersist = 1

[state ]
type = selfstate
trigger1 = !ishelper
value = 0
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = !ishelper(150)
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = ishelper(150)
movetype = i
physics = n
ignorehitpause = 1

[state ]
type = changeanim
trigger1 = ishelper(150)
value = root,anim
ignorehitpause = 1

[state ]
type = assertspecial
trigger1 = ishelper(150)
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = ishelper(150)
value = 0
ignorehitpause = 1

[state ]
type = lifeset
trigger1 = ishelper(150)
value = 9999999999999
ignorehitpause = 1

[state ]
type = bindtoroot
trigger1 = ishelper(150)
pos = 0, 0
ignorehitpause = 1

[state ]
type = playerpush
trigger1 = ishelper(150)
value = 1
ignorehitpause = 1

[state ]
type = assertspecial
triggerall = ishelper(150)
trigger1 = (enemy,alive) || (enemy,life != 0)
trigger1 = (!enemy,alive) || (!enemy,life != 0)
trigger2 = roundstate != 2
flag = noko
ignorehitpause = 1

[state ]
type = turn
triggerall = ishelper(150)
trigger1 = facing != root,facing
ignorehitpause = 1

[state ]
type = hitoverride
trigger1 = ishelper(150)
time = -1
slot = 1
attr = sca,aa,at,ap
stateno = 150
ignorehitpause = 1

[state ]
type = nothitby
triggerall = ishelper(150)
trigger1 = roundstate < 2
trigger1 = roundstate > 2
trigger2 = numhelper(10305)
value = sca
ignorehitpause = 1

[state ]
type = nothitby
triggerall = ishelper(150)
triggerall = numhelper(10305) = 0
triggerall = root,palno = 1
trigger1 = gethitvar(damage)
value = sca
time = 30
ignorehitpause = 1

[state ]
type = nothitby
triggerall = ishelper(150)
triggerall = numhelper(10305) = 0
triggerall = root,life = [500,599]
triggerall = root,palno = [2,12]
trigger1 = gethitvar(damage)
value = sca
time = 200
ignorehitpause = 1

[state ]
type = nothitby
triggerall = ishelper(150)
triggerall = numhelper(10305) = 0
triggerall = (root,life < 500) || (root,life > 600)
triggerall = root,palno = [2,12]
trigger1 = gethitvar(damage)
value = sca
time = 250
ignorehitpause = 1

[state ]
type = playsnd
triggerall = ishelper(150)
triggerall = root,life < 500
trigger1 = gethitvar(damage)
value = 5000,38
channel = -1
volume = 300
freqmul = 1 - 0.2 * (random%10)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = ishelper(150)
triggerall = root,life > 500
trigger1 = gethitvar(damage)
value = 5000,39
channel = -1
volume = 300
freqmul = 1 + 0.2 * (random%10)
ignorehitpause = 1

[state ]
type = destroyself
triggerall = ishelper(150)
trigger1 = !alive
trigger2 = !root,alive
ignorehitpause = 1

[state ]
type = changestate
triggerall = ishelper
trigger1 = root,alive
value = 5150
ignorehitpause = 1

;-------------------------------------------------------------------------------
;帪巭傔夝彍

[statedef 112233]
hitdefpersist = 1
movehitpersist = 1

[state ]
type = selfstate
trigger1 = !ishelper
value = 120
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = !ishelper(112233)
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = ishelper(112233)
statetype = a
movetype = i
physics = n
ignorehitpause = 1

[state ]
type = changeanim
trigger1 = ishelper(112233)
trigger1 = anim != 1000001
value = 1000001
ignorehitpause = 1

[state ]
type = nothitby
trigger1 = ishelper(112233)
value = sca, aa, ap ,at
ignorehitpause = 1
time = -1

[state ]
type = assertspecial
trigger1 = ishelper(112233)
flag = invisible
ignorehitpause = 1

[state ]
type = playerpush
trigger1 = ishelper(112233)
value = 0
ignorehitpause=1

[state ]
type = screenbound
trigger1 = 1
value = 0
ignorehitpause = 1

[state ]
type = posset
trigger1 = ishelper(112233)
x = root,pos x
y = root,pos y -7
ignorehitpause = 1

[state ]
type = pause
triggerall = ishelper(112233)
trigger1 = 1
time = 0
movetime = 0
ignorehitpause = 1

[state ]
type = superpause
triggerall = ishelper(112233)
trigger1 = 1
anim = -1
time = 0
movetime = 0
darken = 0
ignorehitpause = 1

[state ]
type = destroyself
triggerall = ishelper(112233)
trigger1 = numhelper(112233) >= 2
trigger2 = helper(112233),stateno != 112233
trigger3 = !root,alive
trigger4 = (root,palno = [2,12]) && (enemy,alive = 0)
ignorehitpause = 1

[state ]
type = changestate
triggerall = ishelper
trigger1 = root,alive
value = 5150
ignorehitpause = 1

;-----------------------------------乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗

[statedef 10010]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = selfstate
trigger1 = !ishelper
value = 0
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = !ishelper(10010)
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = ishelper(10010)
statetype = a
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(10010)
trigger1 = anim != 10002
value = 10002
ignorehitpause = 1

[state ]
type = nothitby
trigger1 = ishelper(10010)
value = sca
time = -1
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = ishelper(10010)
value = 0
ignorehitpause = 1

[state ]
type = lifeset
trigger1 = ishelper(10010)
value = 9999999999999
ignorehitpause = 1

[state ]
type = playerpush
trigger1 = ishelper(10010)
value = 0
ignorehitpause = 1

[state ]
type = screenbound
trigger1 = 1
value = 0
ignorehitpause = 1

[state ]
type = velset
triggerall = ishelper(10010)
trigger1 = 1
x = 0
y = -7
ignorehitpause = 1

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

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = 1
anim = 10010
sprpriority = 0
postype = p1
pos = 0,0
random = 10,10
vel = -1 + (random%4),-1 + (random%4)
facing = -1
ownpal = 1
scale = 0.5,0.5
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = 1
anim = 10010
sprpriority = 0
postype = p1
pos = 0,0
random = 10,10
vel = -1 + (random%4),-1 + (random%4)
facing = -1
ownpal = 1
scale = 0.5,0.5
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = 1
anim = 10010
sprpriority = 0
postype = p1
pos = 0,0
random = 10,10
vel = -1 + (random%4),-1 + (random%4)
facing = -1
ownpal = 1
scale = 0.3,0.3
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1













[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = 1
anim = 10110
id = 10110
postype = p1
pos = 0,-10
random = 60,60
vel = 0,-2
ownpal = 1
ontop = 0
sprpriority = 1
scale = 0.1,0.1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = 1
anim = 10201
id = 10201
postype = p1
pos = 0,-10
random = 60,60
vel = 0,-2
ownpal = 1
ontop = 0
sprpriority = 1
scale = 0.3,0.1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = 1
anim = 10010
id = 10010
postype = p1
pos = 0,-10
random = 60,60
vel = 0,-2
ownpal = 1
ontop = 0
sprpriority = 1
scale = 0.2,0.2
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = 1
anim = 10010
id = 10010
postype = p1
pos = 0,-10
random = 60,60
vel = 0,-2
ownpal = 1
ontop = 0
sprpriority = 1
scale = 0.2,0.2
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1
















[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 0
anim = 10020
id = 10020
postype = p1
pos = 0,0
scale = 0.3,0.10
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 0
anim = 32520
id = 132520
postype = p1
pos = 0,0
scale = 0.1,0.03
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 1
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 2
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 3
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 4
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 5
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 6
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 7
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 8
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 9
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 10
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 11
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 12
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 13
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 14
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 15
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 16
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 17
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 18
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 19
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 20
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 21
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 22
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 23
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 24
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 25
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 26
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 27
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 28
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 29
anim = 10020
id = 10020
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10010)
trigger1 = sysvar(4) = 30
anim = 10021
id = 10021
postype = p1
scale = 0.2,0.06
sprpriority = 18
ownpal = 1
removetime = -2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

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

[state ]
type = hitdef
triggerall = ishelper(10010)
triggerall = root,palno = 1
trigger1 = (gametime%25) = 0
guardflag = MA
attr = ,NA
hitflag = MAF
animtype = medium
priority = 7
damage = 15
pausetime = 0,25
guard.pausetime = 0,5
ground.hittime = 7
ignorehitpause = 1

[state ]
type = hitdef
triggerall = ishelper(10010)
triggerall = root,palno != 1
trigger1 = 1
guardflag = MA
attr = ,NA
hitflag = MAF
animtype = medium
priority = 7
damage = 25
pausetime = 0,25
guard.pausetime = 0,5
ground.hittime = 7
ignorehitpause = 1

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

[state ]
type = varadd
trigger1 = ishelper(10010)
sysvar(2) = 1
ignorehitpause = 1

[state ]
type = destroyself
triggerall = ishelper(10010)
trigger1 = sysvar(2) >= 30
ignorehitpause = 1

[state ]
type = changestate
triggerall = ishelper
trigger1 = root,alive
value = 5150
ignorehitpause = 1

;-----------------------------------乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗

[statedef 10110]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = selfstate
trigger1 = !ishelper
value = 120
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = !ishelper(10110)
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = ishelper(10110)
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(10110)
trigger1 = anim != 10002
value = 10002
ignorehitpause = 1

[state ]
type = nothitby
trigger1 = ishelper(10110)
value = sca
time = -1
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = ishelper(10110)
value = 0
ignorehitpause = 1

[state ]
type = lifeset
trigger1 = ishelper(10110)
value = 9999999999999
ignorehitpause = 1

[state ]
type = playerpush
trigger1 = ishelper(10110)
value = 0
ignorehitpause = 1

[state ]
type = screenbound
trigger1 = 1
value = 0
ignorehitpause = 1

[state ]
type = velset
triggerall = ishelper(10110)
trigger1 = 1
x = 3
ignorehitpause=1

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

[state ]
type = explod
triggerall = ishelper(10110)
trigger1 = 1
anim = 10010
sprpriority = 0
postype = p1
pos = 0,0
random = 20,20
vel = -1 + (random%5),-1 + (random%5)
facing = -1
ownpal = 1
scale = 0.5,0.5
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10110)
trigger1 = 1
anim = 10010
sprpriority = 0
postype = p1
pos = 0,0
random = 10,10
vel = -1 + (random%4),-1 + (random%4)
facing = -1
ownpal = 1
scale = 0.5,0.5
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10110)
trigger1 = 1
anim = 10101
sprpriority = 0
postype = p1
pos = 0,0
random = 20,20
vel = -1 + (random%5),-1 + (random%5)
facing = -1
ownpal = 1
scale = 0.5,0.5
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10110)
trigger1 = 1
anim = 10110
sprpriority = 0
postype = p1
pos = 0,0
random = 10,10
vel = -1 + (random%4),-1 + (random%4)
facing = -1
ownpal = 1
scale = 0.5,0.5
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10110)
trigger1 = 1
anim = 10101
sprpriority = 0
postype = p1
pos = 0,0
random = 20,20
vel = -1 + (random%5),-1 + (random%5)
facing = -1
ownpal = 1
scale = 0.3,0.3
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10110)
trigger1 = 1
anim = 10110
sprpriority = 0
postype = p1
pos = 0,0
random = 10,10
vel = -1 + (random%4),-1 + (random%4)
facing = -1
ownpal = 1
scale = 0.3,0.3
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1


















[state ]
type = explod
triggerall = ishelper(10110)
trigger1 = 1
anim = 10110
id = 10110
postype = p1
pos = 0,-10
random = 60,60
vel = 0,-2
ownpal = 1
ontop = 0
sprpriority = 1
scale = 0.1,0.1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10110)
trigger1 = 1
anim = 10201
id = 10201
postype = p1
pos = 0,-10
random = 60,60
vel = 0,-2
ownpal = 1
ontop = 0
sprpriority = 1
scale = 0.1,0.3
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10110)
trigger1 = 1
anim = 10010
id = 10010
postype = p1
pos = 0,-10
random = 60,60
vel = 0,-2
ownpal = 1
ontop = 0
sprpriority = 1
scale = 0.2,0.2
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10110)
trigger1 = 1
anim = 10110
id = 10110
postype = p1
pos = 0,-10
random = 60,60
vel = 0,-2
ownpal = 1
ontop = 0
sprpriority = 1
scale = 0.2,0.2
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10110)
trigger1 = 1
anim = 10110
id = 10110
postype = p1
pos = 0,-10
random = 60,60
vel = 0,-2
ownpal = 1
ontop = 0
sprpriority = 1
scale = 0.2,0.2
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

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

[state ]
type = hitdef
triggerall = ishelper(10110)
triggerall = root,palno = 1
trigger1 = (gametime%25) = 0
guardflag = MA
attr = ,NA
hitflag = MAF
animtype = medium
priority = 7
damage = 15
pausetime = 0,25
guard.pausetime = 0,5
ground.hittime = 7
ignorehitpause = 1

[state ]
type = hitdef
triggerall = ishelper(10110)
triggerall = root,palno != 1
trigger1 = 1
guardflag = MA
attr = ,NA
hitflag = MAF
animtype = medium
priority = 7
damage = 25
pausetime = 0,25
guard.pausetime = 0,5
ground.hittime = 7
ignorehitpause = 1

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

[state ]
type = varadd
trigger1 = ishelper(10110)
sysvar(4) = 1
ignorehitpause = 1

[state ]
type = destroyself
trigger1 = sysvar(4) >= 150
ignorehitpause = 1

[state ]
type = changestate
triggerall = ishelper
trigger1 = root,alive
value = 5150
ignorehitpause = 1

;-----------------------------------乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗
;

[statedef 10210]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = selfstate
trigger1 = !ishelper
value = 120
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = !ishelper(10210)
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = ishelper(10210)
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(10210)
trigger1 = anim != 10002
value = 10002
ignorehitpause = 1

[state ]
type = nothitby
trigger1 = ishelper(10210)
value = sca
time = -1
ignorehitpause = 1

[state ]
type = velset
trigger1 = ishelper(10210)
x = 0
y = 0
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = ishelper(10110)
value = 0
ignorehitpause = 1

[state ]
type = lifeset
trigger1 = ishelper(10210)
value = 9999999999999
ignorehitpause = 1

[state ]
type = assertspecial
trigger1 = ishelper(10210)
flag = noshadow
ignorehitpause = 1

[state ]
type = screenbound
trigger1 = 1
value = 0
ignorehitpause = 1

[state ]
type = hitoverride
triggerall = ishelper(10210)
trigger1 = 1
attr = SCA, AA, AP ,AT
slot = 0
stateno = 10210
time = -1
ignorehitpause = 1

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

[state ]
type = explod
triggerall = ishelper(10210)
trigger1 = (gametime%4) = 0
anim = 10110
ID = 10110
postype = p1
sprpriority = 2
random = 100,100
scale = 0.2,0.2
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10210)
trigger1 = (gametime%4) = 0
anim = 10110
ID = 10110
postype = p1
sprpriority = 2
random = 100,100
scale = 0.2,0.2
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10210)
trigger1 = (gametime%4) = 0
anim = 10110
ID = 10110
postype = p1
sprpriority = 2
random = 100,100
scale = 0.2,0.2
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10210)
trigger1 = 1
anim = 10010
sprpriority = 10
postype = p1
random = 10,10
vel = 3 - (random%5),3 - (random%5)
facing = -1
ownpal = 1
scale = 0.15,0.15
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10210)
trigger1 = 1
anim = 10010
sprpriority = 10
postype = p1
random = 10,10
vel = 3 - (random%5),3 - (random%5)
facing = -1
ownpal = 1
scale = 0.2,0.2
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10210)
trigger1 = 1
anim = 10010
sprpriority = 10
postype = p1
random = 10,10
vel = 3 - (random%5),3 - (random%5)
facing = -1
ownpal = 1
scale = 0.3,0.3
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10210)
trigger1 = 1
anim = 10010
sprpriority = 10
postype = p1
random = 10,10
vel = 3 - (random%5),3 - (random%5)
facing = -1
ownpal = 1
scale = 0.35,0.35
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10210)
trigger1 = (gametime%3) = 0
anim = 10201
id = 10201
postype = p1
pos = 0,0
ontop = 0
sprpriority = 1
scale = 0.25,0.25
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10210)
triggerall = numexplod(10001) = 0
trigger1 = sysvar(4) = 0
anim = 10001
id = 10001
postype = p1
pos = 0,0
bindtime = -1
ontop = 0
sprpriority = 0
scale = 2,2
removetime = 350
;trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1















[state ]
type = helper
triggerall = ishelper(10210)
trigger1 = sysvar(4) = 50
trigger2 = sysvar(4) = 150
trigger3 = sysvar(4) = 250
trigger4 = sysvar(4) = 350
id = 10610
persistent = 1
pos = 0,0
postype = p1
stateno = 10610
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = ishelper(10210)
trigger1 = sysvar(4) = 100
trigger2 = sysvar(4) = 200
trigger3 = sysvar(4) = 300
id = 10620
persistent = 1
pos = 0,0
postype = p1
stateno = 10610
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

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

[state ]
type = hitdef
triggerall = ishelper(10210)
triggerall = root,palno = 1
trigger1 = (gametime%25) = 0
guardflag = MA
attr = ,NA
hitflag = MAF
animtype = medium
priority = 7
damage = 15
pausetime = 0,20
guard.pausetime = 0,5
ground.hittime = 7
ignorehitpause = 1

[state ]
type = hitdef
triggerall = ishelper(10210)
triggerall = root,palno != 1
trigger1 = 1
guardflag = MA
attr = ,NA
hitflag = MAF
animtype = medium
priority = 7
damage = 25
pausetime = 0,20
guard.pausetime = 0,5
ground.hittime = 7
ignorehitpause = 1

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

[state ]
type = velset
triggerall = ishelper(10210)
trigger1 = 1
x = 1
ignorehitpause = 1

[state ]
type = varadd
trigger1 = ishelper(10210)
sysvar(4) = 1
ignorehitpause = 1

[state ]
type = destroyself
triggerall = ishelper(10210)
trigger1 = sysvar(4) >= 350
ignorehitpause = 1

[state ]
type = changestate
triggerall = ishelper
trigger1 = root,alive
value = 5150
ignorehitpause = 1

;-----------------------------------乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗

[statedef 10305]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = selfstate
trigger1 = !ishelper
value = 0
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = !ishelper(10305)
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = ishelper(10305)
statetype = a
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(10305)
trigger1 = anim != 999999
value = 999999
ignorehitpause = 1

[state ]
type = nothitby
trigger1 = ishelper(10305)
value = sca
time = -1
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = ishelper(10305)
value = 0
ignorehitpause = 1

[state ]
type = lifeset
trigger1 = ishelper(10305)
value = 9999999999999
ignorehitpause = 1

[state ]
type = playerpush
trigger1 = ishelper(10305)
value = 0
ignorehitpause = 1

[state ]
type = screenbound
trigger1 = 1
value = 0
ignorehitpause = 1

[state ]
type = bindtoroot
trigger1 = ishelper(10305)
pos = cos((gametime * 0.15) - (pi/180)) * 95,sin(gametime * 3) * 50 - 75
ignorehitpause = 1

[state ]
type = sprpriority
trigger1 = ishelper(10305)
value = 0 + 5 * sin(gametime * 0.2) * sin(gametime * 3.5)
ignorehitpause = 1

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

[state ]
type = explod
triggerall = ishelper(10305)
triggerall = root,anim != [30000,30300]
trigger1 = 1
anim = 10010
id = 9999
sprpriority = 1
postype = p1
ownpal = 1
scale = 0.45,0.45
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10305)
triggerall = root,anim != [30000,30300]
trigger1 = (gametime%2) = 0
anim = 10201
id = 9999
sprpriority = 3
postype = p1
ownpal = 1
scale = 0.1,0.1
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10305)
triggerall = root,anim != [30000,30300]
trigger1 = (gametime%2) = 1
anim = 32520
id = 9999
sprpriority = 3
postype = p1
ownpal = 1
scale = 0.1,0.1
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10305)
triggerall = root,anim != [30000,30300]
trigger1 = 1
anim = 10022
id = 9999
sprpriority = -1
postype = p1
pos = 0,0
facing = -1
ownpal = 1
scale = 0.05,0.05
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10305)
triggerall = root,anim != [30000,30300]
trigger1 = 1
anim = 10110
id = 9999
sprpriority = 1
postype = p1
pos = 0,0
random = 15,15
facing = -1
ownpal = 1
scale = 0.15,0.15
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10305)
triggerall = root,anim != [30000,30300]
trigger1 = 1
anim = 10110
id = 9999
sprpriority = 1
postype = p1
pos = 0,0
random = 20,20
facing = -1
ownpal = 1
scale = 0.15,0.15
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10305)
triggerall = root,anim != [30000,30300]
trigger1 = 1
anim = 10010
id = 9999
sprpriority = 0
postype = p1
pos = 0,0
random = 10,10
vel = -1 + (random%4),-1 + (random%4)
facing = -1
ownpal = 1
scale = 0.2,0.2
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10305)
triggerall = root,anim != [30000,30300]
trigger1 = 1
anim = 10010
id = 9999
sprpriority = 0
postype = p1
pos = 0,0
random = 10,10
vel = -1 + (random%4),-1 + (random%4)
facing = -1
ownpal = 1
scale = 0.2,0.2
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10305)
triggerall = root,anim != [30000,30300]
trigger1 = 1
anim = 10010
id = 9999
sprpriority = 0
postype = p1
pos = 0,0
random = 10,10
vel = -1 + (random%4),-1 + (random%4)
facing = -1
ownpal = 1
scale = 0.15,0.15
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

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

[state ]
type = null;hitdef
triggerall = ishelper(10305)
triggerall = enemy,alive
triggerall = 1
trigger1 = root,palno = 1
trigger1 = (gametime%25) = 0
trigger2 = root,palno = [2,12]
trigger2 = 1
damage = 1
attr = ,sa
getpower = 0,0
givepower = 0,0
ignorehitpause=1

[state ]
type = reversaldef
triggerall = ishelper(10305)
trigger1 = 1
reversal.attr = sca,aa,at,ap
ignorehitpause = 1

[state ]
type = targetlifeadd
triggerall = ishelper(10305)
trigger1 = (gametime%8) = 0
value = -1
ignorehitpause = 1

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

[state ]
type = varadd
trigger1 = ishelper(10305)
sysvar(4) = 1
ignorehitpause = 1

[state ]
type = destroyself
triggerall = ishelper(10305)
trigger1 = root,palno != 12
trigger1 = sysvar(4) >= 500
trigger2 = !root,alive
ignorehitpause = 1

[state ]
type = changestate
triggerall = ishelper
trigger1 = root,alive
value = 5150
ignorehitpause = 1

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

[statedef 10410]
sprpriority = 5
movehitpersist = 1
hitdefpersist = 1

[state ]
type = selfstate
trigger1 = !ishelper
value = 120
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = !ishelper(10410)
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = ishelper(10410)
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(10410)
trigger1 = anim != 10002
value = 10002
ignorehitpause = 1

[state ]
type = nothitby
trigger1 = ishelper(10410)
value = sca
time = -1
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = ishelper(10410)
value = 0
ignorehitpause = 1

[state ]
type = lifeset
trigger1 = ishelper(10410)
value = 9999999999999
ignorehitpause = 1

[state ]
type = assertspecial
trigger1 = ishelper(10410)
flag = noshadow
ignorehitpause = 1

[state ]
type = screenbound
trigger1 = 1
value = 0
ignorehitpause = 1

[state ]
type = hitoverride
triggerall = ishelper(10410)
trigger1 = 1
attr = SCA, AA, AP ,AT
slot = 0
stateno = 10410
time = -1
ignorehitpause = 1

[state ];慜偵棧傟偰傞偲偒
type = veladd
triggerall = ishelper(10410)
trigger1 = p2bodydist x > 0
x = 0.1
ignorehitpause=1

[state ];屻傠偵棧傟偰傞偲偒
type = veladd
triggerall = ishelper(10410)
trigger1 = p2bodydist x < 0
x = -0.1
ignorehitpause=1

[state ];壓偵棧傟偰傞偲偒
type = veladd
triggerall = ishelper(10410)
trigger1 = p2bodydist y > 0
y = 0.1
ignorehitpause=1

[state ];忋偵棧傟偰傞偲偒
type = veladd
triggerall = ishelper(10410)
trigger1 = p2bodydist y < 0
y = -0.1
ignorehitpause=1

[state ]
type = velset
triggerall = ishelper(10410)
trigger1 = p2bodydist x > 0
triggerall = Vel X >= 2;x懍搙偑8埲忋偺偲偒
x = 2
ignorehitpause=1

[state ]
type = velset
triggerall = ishelper(10410)
trigger1 = p2bodydist x < 0
triggerall = Vel X <= -2;x懍搙偑-8埲壓偺偲偒
x = -2
ignorehitpause=1

[state ]
type = velset
triggerall = ishelper(10410)
trigger1 = p2bodydist y > 0
triggerall = Vel Y >= 2;y懍搙偑8埲忋偺偲偒
y = 2
ignorehitpause=1

[state ]
type = velset
triggerall = ishelper(10410)
trigger1 = p2bodydist y < 0
triggerall = Vel Y <= -2;y懍搙偑-8埲壓偺偲偒
y = -2
ignorehitpause=1

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

[state ]
type = explod
triggerall = ishelper(10410)
trigger1 = 1
anim = 10010
postype = p1
scale = 0.35,0.35
ownpal = 1
sprpriority = 8
trans = sub
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10410)
trigger1 = 1
anim = 10020
sprpriority = 1
postype = p1
scale = 0.05,0.02
pos = 0,0
ownpal = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10410)
trigger1 = 1
anim = 32520
sprpriority = 1
postype = p1
scale = 0.05,0.02
pos = 0,0
ownpal = 1
trans = sub
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10410)
trigger1 = 1
anim = 10010
postype = p1
scale = 0.4,0.4
vel = -2 + (random%4),-2 + (random%4)
random = 22,8
ownpal = 1
sprpriority = 8
trans = sub
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10410)
trigger1 = 1
anim = 10110
postype = p1
scale = .3,.3
random = 22,8
ownpal = 1
sprpriority = 8
trans = sub
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10410)
trigger1 = 1
anim = 10201
postype = p1
scale = .04,.08
random = 42,8
ownpal = 1
sprpriority = 8
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10410)
trigger1 = 1
anim = 10201
postype = p1
scale = .02,.04
random = 52,8
ownpal = 1
sprpriority = 8
trans = sub
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10410)
trigger1 = 1
anim = 10010
postype = p1
scale = .3,.3
random = 42,8
ownpal = 1
sprpriority = 8
trans = sub
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10410)
trigger1 = 1
anim = 10010
postype = p1
scale = .1,.1
random = 52,8
ownpal = 1
sprpriority = 8
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10410)
trigger1 = 1
anim = 10201
postype = p1
scale = .08,.08
random = 42,8
ownpal = 1
sprpriority = 8
trans = sub
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10410)
trigger1 = 1
anim = 10201
postype = p1
scale = .04,.04
random = 52,8
ownpal = 1
sprpriority = 8
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10410)
trigger1 = 1
anim = 10010
postype = p1
scale = .3,.3
random = 42,8
ownpal = 1
sprpriority = 8
trans = sub
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10410)
trigger1 = 1
anim = 10010
postype = p1
scale = .1,.1
random = 52,8
ownpal = 1
sprpriority = 8
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

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

[state ]
type = hitdef
triggerall = ishelper(10410)
triggerall = root,palno = 1
trigger1 = (gametime%25) = 0
guardflag = MA
attr = ,NA
hitflag = MAF
animtype = medium
priority = 7
damage = 15
pausetime = 0,20
guard.pausetime = 0,5
ground.hittime = 7
ignorehitpause = 1

[state ]
type = hitdef
triggerall = ishelper(10410)
triggerall = root,palno != 1
trigger1 = 1
guardflag = MA
attr = ,NA
hitflag = MAF
animtype = medium
priority = 7
damage = 25
pausetime = 0,20
guard.pausetime = 0,5
ground.hittime = 7
ignorehitpause = 1

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

[state ]
type = velset
triggerall = ishelper(10410)
trigger1 = 1
x = 2
ignorehitpause = 1

[state ]
type = varadd
trigger1 = ishelper(10410)
sysvar(4) = 1
ignorehitpause = 1

[state ]
type = destroyself
triggerall = ishelper(10410)
trigger1 = sysvar(4) >= 150
trigger2 = !root,alive
ignorehitpause = 1

[state ]
type = changestate
triggerall = ishelper
trigger1 = root,alive
value = 5150
ignorehitpause = 1

;-----------------------------------乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗

[statedef 10510]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = selfstate
trigger1 = !ishelper
value = 120
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = !ishelper(10510)
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = ishelper(10510)
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(10510)
trigger1 = anim != 10002
value = 10002
ignorehitpause = 1

[state ]
type = nothitby
trigger1 = ishelper(10510)
value = sca
time = -1
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = ishelper(10510)
value = 0
ignorehitpause = 1

[state ]
type = lifeset
trigger1 = ishelper(10510)
value = 9999999999999
ignorehitpause = 1

[state ]
type = playerpush
trigger1 = ishelper(10510)
value = 0
ignorehitpause = 1

[state ]
type = screenbound
trigger1 = ishelper(10510)
value = 0
ignorehitpause = 1

[state ]
type = playsnd
triggerall = ishelper(10510)
trigger1 = sysvar(4) = 0
value = 211,0
channel = -1
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

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

[state ]
type = explod
triggerall = ishelper(10510)
trigger1 = 1
anim = 10010
id = 9999
sprpriority = 0 + 5 * sin(gametime * 3) * sin(gametime * 0.15)
pos = cos((gametime * 6) - (pi/180)) * 95,sin(gametime * 0.3) * 50 - 75
postype = p2
ownpal = 1
scale = 0.45,0.45
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

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

[state ]
type = hitdef
triggerall = ishelper(10510)
triggerall = root,palno = 1
trigger1 = (gametime%25) = 0
guardflag = MA
attr = ,NA
hitflag = MAF
animtype = medium
priority = 7
damage = 15
pausetime = 0,20
guard.pausetime = 0,5
ground.hittime = 7
ignorehitpause = 1

[state ]
type = hitdef
triggerall = ishelper(10510)
triggerall = root,palno != 1
trigger1 = 1
guardflag = MA
attr = ,NA
hitflag = MAF
animtype = medium
priority = 7
damage = 25
pausetime = 0,20
guard.pausetime = 0,5
ground.hittime = 7
ignorehitpause = 1

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

[state ]
type = varadd
trigger1 = ishelper(10510)
sysvar(4) = 1
ignorehitpause = 1

[state ]
type = destroyself
triggerall = ishelper(10510)
trigger1 = sysvar(4) >= 50
trigger2 = !root,alive
ignorehitpause = 1

[state ]
type = changestate
triggerall = ishelper
trigger1 = root,alive
value = 5150
ignorehitpause = 1

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

[statedef 10610]

[state ]
type = selfstate
trigger1 = !ishelper
value = 0
ctrl = 1
ignorehitpause = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = !ishelper(10610) && !ishelper(10620)
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(10610)
trigger1 = anim != 32505
value = 32505
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(10620)
trigger1 = anim != 32506
value = 32506
ignorehitpause = 1

[state ]
type = screenbound
trigger1 = 1
value = 0
ignorehitpause = 1

[state ]
type = sprpriority
trigger1 = ishelper(10610) || ishelper(10620)
value = 0
ignorehitpause = 1

[state ]
type = angleadd
triggerall = ishelper(10610) || ishelper(10620)
trigger1 = !time
value = ifelse(random<500,-2,2)
ignorehitpause = 1

[state ]
type = null;varset
trigger1 = ishelper(10610)
v = 1
value = var(1) + 1
ignorehitpause = 1

[state ]
type = null;angledraw
trigger1 = ishelper(10610)
scale = 0.2 + var(1) / 15.0,0.2 + var(1) / 15.0
ignorehitpause = 1

[state ]
type = angledraw
triggerall = ishelper(10610)
trigger1 = 1
scale = 2.0 - fvar(0),2.0 - fvar(0)
ignorehitpause = 1

[state ]
type = angledraw
triggerall = ishelper(10620)
trigger1 = 1
scale = 0.2 + fvar(0),0.2 + fvar(0)
ignorehitpause = 1

[state ]
type = varadd
triggerall = ishelper(10610) || ishelper(10620)
trigger1 = 1
fvar(0) = 0.1
ignorehitpause = 1

[state ]
type = trans
triggerall = ishelper(10610) || ishelper(10620)
trigger1 = 1
trans = addalpha
alpha = 200 - var(3),256
ignorehitpause = 1

[state ]
type = varadd
triggerall = ishelper(10610) || ishelper(10620)
trigger1 = 1
var(3) = 10
ignorehitpause = 1

[state ]
type = assertspecial
trigger1 = ishelper(10610) || ishelper(10620)
flag = noshadow
ignorehitpause = 1

[state ]
type = varadd
triggerall = ishelper(10610) || ishelper(10620)
trigger1 = 1
sysvar(4) = 1
ignorehitpause = 1

[state ]
type = destroyself
triggerall = ishelper(10610) || ishelper(10620)
trigger1 = sysvar(4) >= 50
ignorehitpause = 1

[state ]
type = changestate
triggerall = ishelper
trigger1 = root,alive
value = 5150
ignorehitpause = 1

;-----------------------------------乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗

[statedef 10710]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = selfstate
trigger1 = !ishelper
value = 120
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = !ishelper(10710) && !ishelper(10720)
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = ishelper(10710) || ishelper(10720)
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(10710)
trigger1 = anim != 10701
value = 10701
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(10720)
trigger1 = anim != 10702
value = 10702
ignorehitpause = 1

[state ]
type = nothitby
trigger1 = ishelper(10710) || ishelper(10720)
value = sca
time = -1
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = ishelper(10710) || ishelper(10720)
value = 0
ignorehitpause = 1

[state ]
type = lifeset
trigger1 = ishelper(10710) || ishelper(10720)
value = 9999999999999
ignorehitpause = 1

[state ]
type = playerpush
trigger1 = ishelper(10710) || ishelper(10720)
value = 0
ignorehitpause = 1

[state ]
type = screenbound
trigger1 = ishelper(10710) || ishelper(10720)
value = 0
ignorehitpause = 1

[state ]
type = angledraw
triggerall = ishelper(10710)
trigger1 = animelemtime(12) = [0,200]
value = var(4)
ignorehitpause = 1

[state ]
type = angledraw
triggerall = ishelper(10720)
trigger1 = animelemtime(12) = [0,200]
value = var(5)
ignorehitpause = 1

[state ]
type = trans
trigger1 = ishelper(10710)
trans = add
ignorehitpause = 1

[state ]
type = trans
trigger1 = ishelper(10720)
trans = sub
ignorehitpause = 1

[state ]
type = playsnd
triggerall = ishelper(10710) || ishelper(10720)
trigger1 = sysvar(4) = 0
trigger2 = sysvar(4) = 50
trigger3 = sysvar(4) = 100
trigger4 = sysvar(4) = 150
trigger5 = sysvar(4) = 200
value = 10000,5
volume = 300
freqmul = 2
ignorehitpause = 1

[state ]
type = projectile
triggerall = ishelper(10710) || ishelper(10720)
triggerall = enemy,alive
trigger1 = (gametime % 50) = 0
projanim = 999999
damage = 20
attr = s,na
hitflag = maf
animtype = back
getpower = 0,0
givepower = 0,0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause=1

[state ]
type = explod
triggerall = ishelper(10710) || ishelper(10720)
triggerall = (gametime % 5) = 0
trigger1 = animelemtime(12) = [0,200]
anim = 10201
id = 10201
postype = p1
pos = 0,0
bindtime = -1
ontop = 0
sprpriority = 1
scale = 1.5,1.5
random = 20,20
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = helper
triggerall = ishelper(10710) || ishelper(10720)
triggerall = (gametime % 26) = 0
trigger1 = animelemtime(12) = [0,200]
id = 10820
pos = 0,0
postype = p1
stateno = 10820
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = varadd
trigger1 = ishelper(10710)
var(4) = -10
ignorehitpause = 1

[state ]
type = varadd
trigger1 = ishelper(10720)
var(5) = 10
ignorehitpause = 1

[state ]
type = assertspecial
trigger1 = ishelper(10710) || ishelper(10720)
flag = noshadow
ignorehitpause = 1

[state ]
type = varadd
trigger1 = ishelper(10710) || ishelper(10720)
sysvar(4) = 1
ignorehitpause = 1

[state ]
type = destroyself
triggerall = ishelper(10710) || ishelper(10720)
trigger1 = sysvar(4) >= 222
trigger2 = !root,alive
ignorehitpause = 1

[state ]
type = changestate
triggerall = ishelper
trigger1 = root,alive
value = 5150
ignorehitpause = 1

;-----------------------------------乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗

[statedef 10810]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = selfstate
trigger1 = !ishelper
value = 120
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = !ishelper(10810)
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = ishelper(10810)
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(10810)
trigger1 = anim != 32504
value = 32504
ignorehitpause = 1

[state ]
type = nothitby
trigger1 = ishelper(10810)
value = sca
time = -1
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = ishelper(10810)
value = 0
ignorehitpause = 1

[state ]
type = lifeset
trigger1 = ishelper(10810)
value = 9999999999999
ignorehitpause = 1

[state ]
type = playerpush
trigger1 = ishelper(10810)
value = 0
ignorehitpause = 1

[state ]
type = screenbound
trigger1 = ishelper(10810)
value = 0
ignorehitpause = 1

[state ]
type = angledraw
trigger1 = ishelper(10810)
scale = var(4) * 0.1,var(4) * 0.1
ignorehitpause = 1

[state ]
type = varadd
triggerall = ishelper(10810)
trigger1 = sysvar(4) = [0,10]
var(4) = 1
ignorehitpause = 1

[state ]
type = varadd
triggerall = ishelper(10810)
trigger1 = sysvar(4) = [260,270]
var(4) = -1
ignorehitpause = 1

[state ]
type = angledraw
trigger1 = ishelper(10810)
value = var(5)
ignorehitpause = 1

[state ]
type = varadd
trigger1 = ishelper(10810)
var(5) = 5
ignorehitpause = 1

[state ]
type = explod
triggerall = ishelper(10810)
triggerall = (gametime % 5) = 0
trigger1 = sysvar(4) = [10,260]
anim = 10201
id = 10201
postype = p1
pos = 0,0
bindtime = -1
ontop = 0
sprpriority = 1
scale = 1.5,1.5
random = 15,15
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = helper
triggerall = ishelper(10810)
triggerall = sysvar(4) >= 20
trigger1 = (gametime % 26) = 0
id = 10820
pos = 0,0
postype = p1
stateno = 10820
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = projectile
triggerall = ishelper(10710) || ishelper(10720)
triggerall = enemy,alive
trigger1 = (gametime % 50) = 0
projanim = 999999
damage = 20
attr = s,na
hitflag = maf
animtype = back
getpower = 0,0
givepower = 0,0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause=1

[state ]
type = assertspecial
trigger1 = ishelper(10810)
flag = noshadow
ignorehitpause = 1

[state ]
type = varadd
trigger1 = ishelper(10810)
sysvar(4) = 1
ignorehitpause = 1

[state ]
type = destroyself
triggerall = ishelper(10810)
trigger1 = sysvar(4) >= 270
trigger2 = !root,alive
ignorehitpause = 1

[state ]
type = changestate
triggerall = ishelper
trigger1 = root,alive
value = 5150
ignorehitpause = 1

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

[statedef 10820]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = selfstate
trigger1 = !ishelper
value = 0
ctrl = 1
ignorehitpause = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = !ishelper(10820)
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(10820)
trigger1 = anim != 10301
value = 10301
ignorehitpause = 1

[state ]
type = screenbound
trigger1 = ishelper(10820)
value = 0
ignorehitpause = 1

[state ]
type = sprpriority
trigger1 = ishelper(10820)
value = 1
ignorehitpause = 1

[state ]
type = angledraw
trigger1 = ishelper(10820)
scale = 0.5 + (var(4) * 0.1),0.5 + (var(4) * 0.1)
ignorehitpause = 1

[state ]
type = varadd
trigger1 = ishelper(10820)
var(4) = -1
ignorehitpause = 1

[state ]
type = trans
trigger1 = ishelper(10820)
trans = addalpha
alpha = 256 - var(3),256
ignorehitpause = 1

[state ]
type = varadd
trigger1 = ishelper(10820)
var(3) = 10
ignorehitpause = 1

[state ]
type = assertspecial
trigger1 = ishelper(10820)
flag = noshadow
ignorehitpause = 1

[state ]
type = varadd
trigger1 = ishelper(10820)
sysvar(4) = 1
ignorehitpause = 1

[state ]
type = destroyself
triggerall = ishelper(10820)
trigger1 = sysvar(4) >= 26
ignorehitpause = 1

[state ]
type = changestate
triggerall = ishelper
trigger1 = root,alive
value = 5150
ignorehitpause = 1

;-------------------------------------------------------------------------------
;戝杺朄慜

[statedef 39998]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = selfstate
trigger1 = !ishelper
value = 0
ctrl = 1
ignorehitpause = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = !ishelper(39998) && !ishelper(39999)
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(39998)
trigger1 = anim != 32505
value = 32505
ignorehitpause = 1

[state ]
type = changeanim
triggerall = ishelper(39999)
trigger1 = anim != 32506
value = 32506
ignorehitpause = 1

[state ]
type = screenbound
trigger1 = 1
value = 0
ignorehitpause = 1

[state ]
type = sprpriority
trigger1 = ishelper(39998) || ishelper(39999)
value = 0
ignorehitpause = 1

[state ]
type = angleadd
triggerall = ishelper(39998) || ishelper(39999)
trigger1 = !time
value = ifelse(random<500,-2,2)
ignorehitpause = 1

[state ]
type = angledraw
triggerall = ishelper(39998) || ishelper(39999)
trigger1 = 1
scale = 2.0 - fvar(0),2.0 - fvar(0)
ignorehitpause = 1

[state ]
type = angledraw
triggerall = ishelper(39998) || ishelper(39999)
trigger1 = 1
scale = 0.2 + fvar(0),0.2 + fvar(0)
ignorehitpause = 1

[state ]
type = varadd
triggerall = ishelper(39998) || ishelper(39999)
trigger1 = 1
fvar(0) = 0.1
ignorehitpause = 1

[state ]
type = trans
triggerall = ishelper(39998) || ishelper(39999)
trigger1 = 1
trans = addalpha
alpha = 200 - var(3),256
ignorehitpause = 1

[state ]
type = varadd
triggerall = ishelper(39998) || ishelper(39999)
trigger1 = 1
var(3) = 10
ignorehitpause = 1

[state ]
type = assertspecial
trigger1 = ishelper(39998) || ishelper(39999)
flag = noshadow
ignorehitpause = 1

[state ]
type = varadd
triggerall = ishelper(39998) || ishelper(39999)
trigger1 = 1
sysvar(4) = 1
ignorehitpause = 1

[state ]
type = destroyself
triggerall = ishelper(39998) || ishelper(39999)
trigger1 = sysvar(4) >= 50
ignorehitpause = 1

[state ]
type = changestate
triggerall = ishelper
trigger1 = root,alive
value = 5150
ignorehitpause = 1

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