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

[statedef 30000]
movehitpersist = 1
hitdefpersist = 1

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

[state ]
type = changestate
trigger1 = ishelper
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = !ishelper
trigger1 = anim != 30000
value = 30000
ignorehitpause = 1

[state mind]
type = statetypeset
trigger1 = !ishelper
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = velset
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

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

[state ]
type = varset
triggerall = !ishelper
triggerall = enemy,name != "E-Fairy"
trigger1 = 1
sysvar(3) = 0
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(1) = 0
value = 2200,2
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(1) = 0
value = 5000,6 + (random%3)
channel = 0
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(3) = 0
value = 3000,3
channel = -1
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(65) = 0
trigger2 = animelemtime(73) = 0
value = 10000,0
channel = -1
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(72) = 0
value = 30000,1
channel = 1
volume = 300
ignorehitpause = 1

[state ]
type = envshake
trigger1 = animelem = 71 , >= 0
trigger1 = animelem = 72 , < 0
time = 310
freq = 120
ampl = 4
phase = 0
ignorehitpause = 1

[state ]
type = removeexplod
triggerall= !ishelper
trigger1 = animelemtime(57) >= 0
trigger1 = animelemtime(80) <= 0
id = 9999
ignorehitpause = 1

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

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32510) = 0
trigger1 = animelemtime(1) = 0
anim = 32510
id = 32510
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1,1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32511) = 0
trigger1 = animelemtime(1) = 0
anim = 32511
id = 32511
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1,1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(1) = 0 || animelemtime(1) = 10 || animelemtime(1) = 20 || animelemtime(1) = 30
trigger2 = animelemtime(1) = 40 || animelemtime(1) = 50|| animelemtime(1) = 60|| animelemtime(1) = 70
trigger3 = animelemtime(1) = 80|| animelemtime(1) = 90|| animelemtime(1) = 100
id = 39998
persistent = 1
pos = 0,-65
postype = p1
stateno = 39998
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(1) = 5 || animelemtime(1) = 15 || animelemtime(1) = 25 || animelemtime(1) = 35
trigger2 = animelemtime(1) = 45 || animelemtime(1) = 55 || animelemtime(1) = 65 || animelemtime(1) = 75
trigger3 = animelemtime(1) = 85|| animelemtime(1) = 95
id = 39999
persistent = 1
pos = 0,-65
postype = p1
stateno = 39998
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32521) = 0
trigger1 = animelemtime(65) = 0
trigger2 = animelemtime(73) = 0
anim = 32520
id = 32521
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1,1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32522) = 0
trigger1 = animelemtime(65) = 0
trigger2 = animelemtime(73) = 0
anim = 32520
id = 32522
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1.2,1.2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(30001) = 0
trigger1 = animelemtime(72) = 0
anim = 30001
id = 30001
postype = back
pos = 0,0
bindtime = -1
ontop = 0
sprpriority = 1
scale = 1,1
removetime = 310
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32502) = 0
trigger1 = animelemtime(72) = 0
anim = 32502
id = 32502
postype = back
pos = 0,-45
bindtime = -1
ontop = 0
sprpriority = -1
scale = 0.535,0.535
removetime = 310
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = (gametime%1) = 0
trigger1 = animelemtime(72) = [0,310]
anim = 10110
id = 10110
postype = back
pos = 0,0
bindtime = -1
ontop = 1
sprpriority = 999
scale = 0.2,0.2
random = 600,600
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = (gametime%1) = 0
trigger1 = animelemtime(72) = [0,310]
anim = 10201
id = 10201
postype = back
pos = 0,0
bindtime = -1
ontop = 1
sprpriority = 999
scale = 0.2,0.2
random = 600,600
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = (gametime%1) = 0
trigger1 = animelemtime(72) = [0,310]
anim = 32520
id = 32520
postype = back
pos = 0,0
bindtime = -1
ontop = 1
sprpriority = 999
scale = 0.2,0.2
random = 600,600
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

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

[state ]
type = projectile
triggerall = !ishelper
triggerall = alive
triggerall = enemy,alive
triggerall = palno = 1
trigger1 = animelemtime(71) >= 0
trigger1 = animelemtime(73) <= 0
trigger1 = (gametime%25) = 0
projanim = 999999
damage = 25
attr = S,NA
hitflag = MAF
animtype = back
getpower = 0,0
givepower = 0,0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause=1

[state ]
type = projectile
triggerall = !ishelper
triggerall = alive
triggerall = enemy,alive
triggerall = palno != 1
trigger1 = 1
projanim = 999999
damage = 25
attr = S,NA
hitflag = MAF
animtype = back
getpower = 0,0
givepower = 0,0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause=1

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

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

[state ]
type = changestate
triggerall = !ishelper
trigger1 = alive
value = 120
ignorehitpause = 1

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

[statedef 30100]
movehitpersist = 1
hitdefpersist = 1

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

[state ]
type = changestate
trigger1 = ishelper
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = !ishelper
trigger1 = anim != 30100
value = 30100
ignorehitpause = 1

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

[state ]
type = velset
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

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

[state ]
type = varset
triggerall = !ishelper
triggerall = enemy,name != "E-Fairy"
trigger1 = 1
sysvar(3) = 0
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(1) = 0
value = 2200,2
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(1) = 0
value = 5000,6 + (random%3)
channel = 0
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(3) = 0
value = 3000,3
channel = -1
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(65) = 0
trigger2 = animelemtime(73) = 0
value = 10000,0
channel = -1
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(72) = 0
value = 30000,0
channel = 1
volume = 300
ignorehitpause = 1

[state ]
type = envshake
trigger1 = animelem = 71 , >= 0
trigger1 = animelem = 72 , < 0
time = 360
freq = 120
ampl = 4
phase = 0
ignorehitpause = 1

[state ]
type = removeexplod
triggerall= !ishelper
trigger1 = animelemtime(57) >= 0
trigger1 = animelemtime(80) <= 0
id = 9999
ignorehitpause = 1

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

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32510) = 0
trigger1 = animelemtime(1) = 0
anim = 32510
id = 32510
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1,1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32511) = 0
trigger1 = animelemtime(1) = 0
anim = 32511
id = 32511
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1,1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(1) = 0 || animelemtime(1) = 10 || animelemtime(1) = 20 || animelemtime(1) = 30
trigger2 = animelemtime(1) = 40 || animelemtime(1) = 50|| animelemtime(1) = 60|| animelemtime(1) = 70
trigger3 = animelemtime(1) = 80|| animelemtime(1) = 90|| animelemtime(1) = 100
id = 39998
persistent = 1
pos = 0,-65
postype = p1
stateno = 39998
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(1) = 5 || animelemtime(1) = 15 || animelemtime(1) = 25 || animelemtime(1) = 35
trigger2 = animelemtime(1) = 45 || animelemtime(1) = 55 || animelemtime(1) = 65 || animelemtime(1) = 75
trigger3 = animelemtime(1) = 85|| animelemtime(1) = 95
id = 39999
persistent = 1
pos = 0,-65
postype = p1
stateno = 39998
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32521) = 0
trigger1 = animelemtime(65) = 0
trigger2 = animelemtime(73) = 0
anim = 32520
id = 32521
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1,1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32522) = 0
trigger1 = animelemtime(65) = 0
trigger2 = animelemtime(73) = 0
anim = 32520
id = 32522
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1.2,1.2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(30101) = 0
trigger1 = animelemtime(72) = 0
anim = 30101
id = 30101
postype = back
pos = 0,0
bindtime = -1
ontop = 0
sprpriority = 1
scale = 1,1
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32502) = 0
trigger1 = animelemtime(72) = 0
anim = 32502
id = 32502
postype = back
pos = 0,-45
bindtime = -1
ontop = 0
sprpriority = -1
scale = 0.535,0.535
removetime = 360
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = (gametime%1) = 0
trigger1 = animelemtime(72) = [0,360]
anim = 10110
id = 10110
postype = back
pos = 0,0
bindtime = -1
ontop = 1
sprpriority = 999
scale = 0.2,0.2
random = 600,600
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = (gametime%1) = 0
trigger1 = animelemtime(72) = [0,360]
anim = 10201
id = 10201
postype = back
pos = 0,0
bindtime = -1
ontop = 1
sprpriority = 999
scale = 0.2,0.2
random = 600,600
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = (gametime%1) = 0
trigger1 = animelemtime(72) = [0,360]
anim = 32520
id = 32520
postype = back
pos = 0,0
bindtime = -1
ontop = 1
sprpriority = 999
scale = 0.2,0.2
random = 600,600
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

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

[state ]
type = projectile
triggerall = !ishelper
triggerall = alive
triggerall = enemy,alive
triggerall = palno = 1
trigger1 = animelemtime(71) >= 0
trigger1 = animelemtime(73) <= 0
trigger1 = (gametime%25) = 0
projanim = 999999
damage = 25
attr = S,NA
hitflag = MAF
animtype = back
getpower = 0,0
givepower = 0,0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause=1

[state ]
type = projectile
triggerall = !ishelper
triggerall = alive
triggerall = enemy,alive
triggerall = palno != 1
trigger1 = 1
projanim = 999999
damage = 25
attr = S,NA
hitflag = MAF
animtype = back
getpower = 0,0
givepower = 0,0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause=1

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

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

[state ]
type = changestate
triggerall = !ishelper
trigger1 = alive
value = 120
ignorehitpause = 1
;-------------------------------------------------------------------------------

[statedef 30200]
movehitpersist = 1
hitdefpersist = 1

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

[state ]
type = changestate
trigger1 = ishelper
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = !ishelper
trigger1 = anim != 30200
value = 30200
ignorehitpause = 1

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

[state ]
type = velset
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

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

[state ]
type = varset
triggerall = !ishelper
triggerall = enemy,name != "E-Fairy"
trigger1 = 1
sysvar(3) = 0
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(1) = 0
value = 2200,2
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(1) = 0
value = 5000,6 + (random%3)
channel = 0
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(3) = 0
value = 3000,3
channel = -1
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(65) = 0
trigger2 = animelemtime(73) = 0
value = 10000,0
channel = -1
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(72) = 0
value = 30000,3
channel = 1
volume = 300
ignorehitpause = 1

[state ]
type = envshake
trigger1 = animelem = 71 , >= 0
trigger1 = animelem = 72 , < 0
time = 207
freq = 120
ampl = 4
phase = 0
ignorehitpause = 1

[state ]
type = removeexplod
triggerall= !ishelper
trigger1 = animelemtime(57) >= 0
trigger1 = animelemtime(80) <= 0
id = 9999
ignorehitpause = 1

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

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32510) = 0
trigger1 = animelemtime(1) = 0
anim = 32510
id = 32510
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1,1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32511) = 0
trigger1 = animelemtime(1) = 0
anim = 32511
id = 32511
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1,1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(1) = 0 || animelemtime(1) = 10 || animelemtime(1) = 20 || animelemtime(1) = 30
trigger2 = animelemtime(1) = 40 || animelemtime(1) = 50|| animelemtime(1) = 60|| animelemtime(1) = 70
trigger3 = animelemtime(1) = 80|| animelemtime(1) = 90|| animelemtime(1) = 100
id = 39998
persistent = 1
pos = 0,-65
postype = p1
stateno = 39998
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(1) = 5 || animelemtime(1) = 15 || animelemtime(1) = 25 || animelemtime(1) = 35
trigger2 = animelemtime(1) = 45 || animelemtime(1) = 55 || animelemtime(1) = 65 || animelemtime(1) = 75
trigger3 = animelemtime(1) = 85|| animelemtime(1) = 95
id = 39999
persistent = 1
pos = 0,-65
postype = p1
stateno = 39998
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32521) = 0
trigger1 = animelemtime(65) = 0
trigger2 = animelemtime(73) = 0
anim = 32520
id = 32521
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1,1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32522) = 0
trigger1 = animelemtime(65) = 0
trigger2 = animelemtime(73) = 0
anim = 32520
id = 32522
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1.2,1.2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(30201) = 0
trigger1 = animelemtime(72) = 0
anim = 30201
id = 30201
postype = back
pos = 0,0
bindtime = -1
ontop = 0
sprpriority = 1
scale = 1,1
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32501) = 0
trigger1 = animelemtime(72) = 0
anim = 32501
id = 32501
postype = back
pos = 0,-40
bindtime = -1
ontop = 0
sprpriority = -1
scale = 0.5,0.5
removetime = 207
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = (gametime%1) = 0
trigger1 = animelemtime(72) = [0,207]
anim = 10110
id = 10110
postype = back
pos = 0,0
bindtime = -1
ontop = 1
sprpriority = 999
scale = 0.2,0.2
random = 600,600
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = (gametime%1) = 0
trigger1 = animelemtime(72) = [0,207]
anim = 10201
id = 10201
postype = back
pos = 0,0
bindtime = -1
ontop = 1
sprpriority = 999
scale = 0.2,0.2
random = 600,600
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = (gametime%1) = 0
trigger1 = animelemtime(72) = [0,207]
anim = 32520
id = 32520
postype = back
pos = 0,0
bindtime = -1
ontop = 1
sprpriority = 999
scale = 0.2,0.2
random = 600,600
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

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

[state ]
type = projectile
triggerall = !ishelper
triggerall = alive
triggerall = enemy,alive
triggerall = palno = 1
trigger1 = animelemtime(71) >= 0
trigger1 = animelemtime(73) <= 0
trigger1 = (gametime%25) = 0
projanim = 999999
damage = 25
attr = S,NA
hitflag = MAF
animtype = back
getpower = 0,0
givepower = 0,0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause=1

[state ]
type = projectile
triggerall = !ishelper
triggerall = alive
triggerall = enemy,alive
triggerall = palno != 1
trigger1 = 1
projanim = 999999
damage = 25
attr = S,NA
hitflag = MAF
animtype = back
getpower = 0,0
givepower = 0,0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause=1

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

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

[state ]
type = changestate
triggerall = !ishelper
trigger1 = alive
value = 120
ignorehitpause = 1

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

[statedef 30300]
movehitpersist = 1
hitdefpersist = 1

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

[state ]
type = changestate
trigger1 = ishelper
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = !ishelper
trigger1 = anim != 30300
value = 30300
ignorehitpause = 1

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

[state ]
type = velset
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

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

[state ]
type = varset
triggerall = !ishelper
triggerall = enemy,name != "E-Fairy"
trigger1 = 1
sysvar(3) = 0
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(1) = 0
value = 2200,2
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(1) = 0
value = 5000,6 + (random%3)
channel = 0
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(3) = 0
value = 3000,3
channel = -1
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(65) = 0
trigger2 = animelemtime(73) = 0
value = 10000,0
channel = -1
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(72) = 0
value = 30000,2
channel = 1
volume = 300
ignorehitpause = 1

[state ]
type = envshake
trigger1 = animelem = 71 , >= 0
trigger1 = animelem = 72 , < 0
time = 383
freq = 120
ampl = 4
phase = 0
ignorehitpause = 1

[state ]
type = removeexplod
triggerall= !ishelper
trigger1 = animelemtime(57) >= 0
trigger1 = animelemtime(80) <= 0
id = 9999
ignorehitpause = 1

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

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32510) = 0
trigger1 = animelemtime(1) = 0
anim = 32510
id = 32510
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1,1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32511) = 0
trigger1 = animelemtime(1) = 0
anim = 32511
id = 32511
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1,1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(1) = 0 || animelemtime(1) = 10 || animelemtime(1) = 20 || animelemtime(1) = 30
trigger2 = animelemtime(1) = 40 || animelemtime(1) = 50|| animelemtime(1) = 60|| animelemtime(1) = 70
trigger3 = animelemtime(1) = 80|| animelemtime(1) = 90|| animelemtime(1) = 100
id = 39998
persistent = 1
pos = 0,-65
postype = p1
stateno = 39998
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(1) = 5 || animelemtime(1) = 15 || animelemtime(1) = 25 || animelemtime(1) = 35
trigger2 = animelemtime(1) = 45 || animelemtime(1) = 55 || animelemtime(1) = 65 || animelemtime(1) = 75
trigger3 = animelemtime(1) = 85|| animelemtime(1) = 95
id = 39999
persistent = 1
pos = 0,-65
postype = p1
stateno = 39998
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32521) = 0
trigger1 = animelemtime(65) = 0
trigger2 = animelemtime(73) = 0
anim = 32520
id = 32521
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1,1
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32522) = 0
trigger1 = animelemtime(65) = 0
trigger2 = animelemtime(73) = 0
anim = 32520
id = 32522
postype = p1
pos = 0,-65
bindtime = -1
ontop = 0
sprpriority = -1
scale = 1.2,1.2
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(30301) = 0
trigger1 = animelemtime(72) = 0
anim = 30301
id = 30301
postype = back
pos = 0,0
bindtime = -1
ontop = 0
sprpriority = 1
scale = 1,1
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(32501) = 0
trigger1 = animelemtime(72) = 0
anim = 32501
id = 32501
postype = back
pos = 0,-40
bindtime = -1
ontop = 0
sprpriority = -1
scale = 0.5,0.5
removetime = 383
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = (gametime%1) = 0
trigger1 = animelemtime(72) = [0,383]
anim = 10110
id = 10110
postype = back
pos = 0,0
bindtime = -1
ontop = 1
sprpriority = 999
scale = 0.2,0.2
random = 600,600
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = (gametime%1) = 0
trigger1 = animelemtime(72) = [0,383]
anim = 10201
id = 10201
postype = back
pos = 0,0
bindtime = -1
ontop = 1
sprpriority = 999
scale = 0.2,0.2
random = 600,600
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
triggerall = (gametime%1) = 0
trigger1 = animelemtime(72) = [0,383]
anim = 32520
id = 32520
postype = back
pos = 0,0
bindtime = -1
ontop = 1
sprpriority = 999
scale = 0.2,0.2
random = 600,600
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

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

[state ]
type = projectile
triggerall = !ishelper
triggerall = alive
triggerall = enemy,alive
triggerall = palno = 1
trigger1 = animelemtime(71) >= 0
trigger1 = animelemtime(73) <= 0
trigger1 = (gametime%25) = 0
projanim = 999999
damage = 25
attr = S,NA
hitflag = MAF
animtype = back
getpower = 0,0
givepower = 0,0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause=1

[state ]
type = projectile
triggerall = !ishelper
triggerall = alive
triggerall = enemy,alive
triggerall = palno != 1
trigger1 = 1
projanim = 999999
damage = 25
attr = S,NA
hitflag = MAF
animtype = back
getpower = 0,0
givepower = 0,0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause=1

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

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

[state ]
type = changestate
triggerall = !ishelper
trigger1 = alive
value = 120
ignorehitpause = 1

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