;***************************************************************************
;===========================================================================
;---------------------------------------------------------------------------
[Statedef -2]
;---------------------------------------------------------------------------
;===========================================================================
;***************************************************************************

[State DisplayToClipboard]
type = DisplayToClipboard
trigger1 = !ishelper
text = "Life = %d  Power = %d"
params = Life, Power
ignorehitpause = 1
[State AppendToClipboard]
type = AppendToClipboard
trigger1 = !ishelper
text = "\nEnemyLife = %d  EnemyPower = %d"
params = Enemy,Life,Enemy,Power
ignorehitpause = 1

[State 1]
type = varset
triggerall = !ishelper
triggerall = alive
trigger1 = palno = 12 && var(1) = 1
v = 30
value = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[state -1]
type = varset
trigger1 =palno=12&&roundstate<2
fv = 28
value = 0
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999
[State 1]
type = varset
triggerall = !ishelper
trigger1 = palno = 12
fv = 37
value = 1
[State 1]
type = varset
triggerall = !ishelper
trigger1 = palno = 12
fv = 38
value = 1

[state -2, a]
type = varset
triggerall = !ishelper
trigger1 = palno = 1
trigger2 = palno = 2
trigger3 = palno = 3
trigger4 = palno = 4
trigger5 = palno = 5
trigger6 = palno = 6
v = 1
value = 0
[state -2, a]
type = varset
triggerall = !ishelper
trigger1 = palno = 7
trigger2 = palno = 8
trigger3 = palno = 9
trigger4 = palno = 10
trigger5 = palno = 11
trigger6 = palno = 12
v = 1
value = 1

[state a]
type = varadd
triggerall = !ishelper
triggerall = palno = 12
trigger1 = roundstate = 2
v = 54
value = 1
IgnoreHitPause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State a]
type = varset
triggerall = !ishelper
triggerall = palno = 12
trigger1 = roundstate != 2
trigger2 = roundstate = 2 && fvar(32) != 1
trigger3 = roundstate = 2 && fvar(32)!= 0 && var(54)>=6700
v = 54
value = ((roundstate=2&&fvar(32)!=1)*5800)
IgnoreHitPause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[state 1]
type = varset
triggerall = !ishelper
trigger1 = palno=12&&fvar(38)=2&&stateno!=22050
fv = 18
value = 0
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999
[state 1]
type = varset
triggerall = !ishelper
trigger1 = palno=12&&(stateno=22100||enemy,numprojid(96968484321)>=1||RoundState!=2)
fv = 19
value = (stateno!=22100)*RoundState=2
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999
[state 1]
type = varset
triggerall = !ishelper
trigger1 = palno=12&&numtarget&&target,ishelper=0
fv = 20
value = (RoundState<=2)
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999
[State 1]
type = varset
triggerall = !ishelper
triggerall = palno = 12
trigger1 = RoundState = 2 && (GameTime%50) = 1
trigger2 = RoundState != 2
fv = 22
value = 0+((RoundState = 2)*enemy,life)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999
[State 1]
type = varset
triggerall = !ishelper
triggerall = palno = 12 && var(54) < 5700
trigger1 = RoundState = 2 && (GameTime%55) = 1
trigger1 = fvar(22) != 0 && enemy,life >= fvar(22)
trigger2 = fvar(22) != 0 && enemy,life < fvar(22)
trigger3 = RoundState != 2
fv = 23
value = IfElse((RoundState = 2),IfElse((fvar(22) != 0 && enemy,life < fvar(22)),0,1),0)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999
[state 1]
type = varadd
triggerall = !ishelper
trigger1 = palno = 12 && roundstate = 2 && fvar(23) = 1 && var(54) < 5700
fv = 24
value = 1+((enemy,life>=enemy,lifemax&&enemy,power>=enemy,powermax)*80)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999
[State 1]
type = varset
triggerall = !ishelper
triggerall = palno = 12
trigger1 = roundstate != 2 || fvar(23) = 0 || numtarget || var(54) >= 5700
fv = 24
value = 0
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999
[state -2]
type = varset
triggerall = !ishelper
trigger1 = palno = 12 && RoundState <= 2 && anim = 0 && ctrl = 0 && var(54) <= 40
trigger1 =  enemynear,movetype=A&&(enemynear,numproj>=1||enemynear,numhelper>=1)||enemynear,anim!=0&&p2bodydist X <= 60||enemynear,vel x != 0
trigger2 = palno = 12 && RoundState>=3
fv = 25
value = (RoundState<=2)
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999
[state -1]
type = varset
triggerall = !ishelper
triggerall =palno=12
trigger1 = var(29) >= 1
trigger2 = roundstate != 2
trigger3 = life>=lifemax
fv = 26
value = 0
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999
[state -1]
type = varset
triggerall = !ishelper
trigger1 =palno=12&&(fvar(28)!=[0,2])
fv = 28
value = 0
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999
[state -1]
type = varset
triggerall = !ishelper
trigger1 =palno=12&&fvar(28)!=0&&(fvar(24)>=2150&&var(54)>=2150||fvar(25)=1||fvar(29)!=0&&RoundState<=2&&var(54)<=40&&random<=100)
fv = 28
value = 0
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999
[state -1]
type = varset
triggerall = !ishelper
trigger1 =palno=12&&roundstate>=3&&(drawgame||lose||win)
fv = 29
value = (!win)
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999
[State 1]
type = varset
triggerall = !ishelper && palno = 12
trigger1 = roundno = 1 && roundstate < 2
trigger2 = roundstate >= 2 && var(3) != gametime
fv = 32
value = 1-(roundstate>=2&& var(3)!=gametime)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999
[State 1]
type = varset
triggerall = !ishelper && palno = 12
trigger1 = numexplod(2211325)
fv = 32
value = 0
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999
[State 1]
type = varset
triggerall = !ishelper
trigger1 = palno = 12 && (GameTime%20) = 1
fv = 35
value = power
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999
[State 1]
type = varset
triggerall = !ishelper
trigger1 = palno=12&&(helper(288888),stateno=288889)&&enemy,numhelper>=2&&enemy,movetype=A
fv = 36
value = enemy,stateno
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999
[State -2]
type = varset
triggerall = !ishelper
trigger1 = var(29) >= 1
var(39) = 3-(palno=12)
[State -2]
type = varset
triggerall = !ishelper
trigger1 = var(29) <= 1
var(39) = 1
[state a]
type = varadd
triggerall = !ishelper
trigger1 = 1
v = 29
value = -1
[state a]
type = varset
triggerall = !ishelper
trigger1 = palno != 12 && roundstate != 2
v = 29
value = 0
[state a]
type = varadd
triggerall = !ishelper
trigger1 = 1
v = 44
value = -1
[state a]
type = varset
triggerall = !ishelper
trigger1 = palno != 12 && roundstate != 2
v = 44
value = 0
[state -2, a]
type = varset
triggerall = !ishelper
trigger1 = var(10) = 0
trigger1 = facing = 1
v = 10
value = 1
[state -2, a]
type = varset
triggerall = !ishelper
trigger1 = var(10) = 0
trigger1 = facing = -1
v = 10
value = 2
[State -2, 4]
type = varadd
triggerall = !ishelper
trigger1 = 1
v = 15
value = -1
[state a]
type = varset
triggerall = !ishelper
trigger1 = movetype = H
v = 13
value = 0
[State 180, 1]
type = VarRandom
triggerall = !ishelper
trigger1 = 1
v = 6
range = 0,2
[State 1]
type = varrandom
triggerall = !ishelper
trigger1 = 1
range = -55,55
v = 50
[State 1]
type = varrandom
triggerall = !ishelper
trigger1 = 1
range = 0,-60
v = 51
[State 1]
type = varrandom
triggerall = !ishelper
trigger1 = 1
range = -40,-130
v = 53
[State 1]
type = varrandom
triggerall = !ishelper
trigger1 = 1
range = -75,75
v = 52
[State -2]
type = Varset
triggerall = !ishelper
triggerall = !ishelper
trigger1 = stateno != 22077
var(40) = 0
[State -2]
Type = VarSet
trigger1 = 1
var(35) = 0
IgnoreHitPause = 1
[State -2]
Type = VarSet
triggerall = !ishelper
trigger1 = Random <= 300
var(35) = 1
IgnoreHitPause = 1
[State -2]
Type = VarSet
triggerall = !ishelper
trigger1 = Random <= 300
var(35) = 2
IgnoreHitPause = 1
[State -2]
Type = VarSet
triggerall = !ishelper
trigger1 = Random <= 300
var(35) = 3
IgnoreHitPause = 1
[State -1]
type = varset
triggerall = !ishelper
trigger1 = roundstate = 0
var(21) = 1
[State -1]
type = varset
triggerall = !ishelper
trigger1 = roundstate = 0
var(22) = 1
[State -1]
type = varset
triggerall = !ishelper
trigger1 = var(21) <= 1
var(22) = 3
[State -1]
type = varset
triggerall = !ishelper
trigger1 = var(21) >= 150
var(22) = 2
[State -1]
type = varadd
triggerall = !ishelper
trigger1 = 1
trigger1 = var(22) = 3
var(21) = 5
[State -1]
type = varadd
triggerall = !ishelper
trigger1 = 1
trigger1 = var(22) = 2
var(21) = -5
[state a]
type = varset
triggerall = !ishelper
trigger1 = command = "holdup"
v = 56
value = 2
[state a]
type = varset
triggerall = !ishelper
trigger1 = command = "holddown"
v = 56
value = 3
[state a]
type = varset
triggerall = !ishelper
trigger1 = command != "holddown"
trigger1 = command != "holdup"
v = 56
value = 0
[state -2]
type = varset
triggerall = !ishelper
trigger1 = 1
fv = 33
value = (projhit22183=1)
[State -3, 5]
type = varset
trigger1 = stateno = 10
trigger1 = time = 0
trigger2 = stateno = 100
v = 15
value = 20
[State -3, 5]
type = varset
trigger1 = stateno = 52
trigger1 = time = 0
v = 15
value = 0
[State -3, 5]
type = varset
trigger1 = stateno = 40
trigger1 = command != "holdup"
v = 16
value = 1
[State -3, 5]
type = varset
trigger1 = stateno = 40
trigger1 = command = "holdup"
v = 16
value = 0
[State -3]
type = varset
trigger1 = 1
var(3) =gametime
[State -3, 5]
type = velset
trigger1 = stateno = 50
trigger1 = anim = 42
trigger1 = time = 1
trigger1 = var(15) >= 1
x = 5
;y = -9
[State -3, 5]
type = velset
trigger1 = stateno = 50
trigger1 = anim = 43
trigger1 = time = 1
trigger1 = var(15) >= 1
x = -5
;y = -9
[State -3, 5]
type = veladd
trigger1 = stateno = 50
trigger1 = time = 1
trigger1 = var(16) = 1
y = 3
[State ]
type = varset
triggerall = !ishelper
trigger1 = roundstate = 0
v = 43
value = 0
ignorehitpause = 1
[State -2]
type = varset
triggerall = !ishelper
trigger1 = roundstate = 0
v = 42
value = 0
ignorehitpause = 1
[State -2]
type = varset
triggerall = !ishelper
triggerall = palno = 12
triggerall = name = "Dark Heaven"
triggerall = var(1) = 1
triggerall = roundstate != 0
trigger1 = var(42) > 1000 || var(42) < 0
v = 42
value = 1000
ignorehitpause = 1
[State -2]
type = varset
triggerall = !ishelper
triggerall = palno = 12
triggerall = name = "Dark Heaven"
triggerall = var(1) = 1
trigger1 = var(41) - enemy,life >= 1
trigger1 = projhit = 1 ,< 5
v = 42
value = 0
ignorehitpause = 1
[State -2]
type = varadd
triggerall = !ishelper
triggerall = palno = 12
triggerall = name = "Dark Heaven"
triggerall = var(1) = 1
triggerall = var(42) != 1000
trigger1 = roundstate = 2
v = 42
value = 1+((var(29)>=1)*random%7)
ignorehitpause = 1
[State -2]
type = VarSet
triggerall = !ishelper
trigger1 = name != "Dark Heaven"
trigger2 = palno != 12
trigger3 = var(1) != 1
trigger4 = roundstate = 0
v = 45
value = 0
ignorehitpause = 1
[State -2]
type = VarSet
triggerall = !ishelper
triggerall = name = "Dark Heaven"
triggerall = palno = 12
triggerall = var(1) = 1
triggerall = roundstate != 0
trigger1 = var(45) >= powermax
v = 45
value = powermax
ignorehitpause = 1
[State -2]
type = varset
triggerall = !ishelper
triggerall = palno = 12
triggerall = name = "Dark Heaven"
triggerall = var(1) = 1
trigger1 = 1
v = 41
value = Enemy, Life
ignorehitpause = 1
[State ]
type = varset
triggerall = name = "Dark Heaven"
triggerall = palno = 12 && var(1) = 1
triggerall = enemy,life > enemy, life*0.01
trigger1 = !Ishelper
trigger1 = palno=12
trigger1 = !win&&!winko
trigger2 = Ishelper
trigger2 = root,palno=12
trigger2 = !root,win&&!root,winko
trigger3 = enemy,life > life
var(17) = 1
[State ]
type = varset
trigger1 = name != "Dark Heaven"
trigger2 = palno != 12 || var(1) != 1
trigger4 = enemy,life <= enemy,life*0.01
trigger5 = enemy,life < life
var(17) = 0
[state -2, a]
type = varadd
triggerall = !ishelper
trigger1 = 1
persistent = 0
ignorehitpause = 1
v = 4
value = -1
[State ]
type = varset
trigger1 = !ishelper
trigger1 = stateno = 96250
trigger1 = time = 0
fv = 5
value = 0
[State ]
type = varadd
trigger1 = !ishelper
trigger1 = stateno = 96250
trigger1 = gametime%2 = 0
fv = 5
value = 0.1

[state -2, a]
type = pause
trigger1 = var(4) >= 1
trigger1 = gametime % 2
persistent = 0
ignorehitpause = 1
time = 1

[State 210, Width]
type = Width
trigger1 = 1
edge = 5,0

;[State -2]
;type = pause
;triggerall = palno = 12
;trigger1 = roundstate != 2
;time = 0
;movetime = 0
;ignorehitpause = 1
;[State -2]
;type = superpause
;triggerall = palno = 12
;trigger1 = roundstate != 2
;anim = -1
;time = 0
;movetime = 0
;darken = 0
;ignorehitpause = 1

[State 0]
type = AssertSpecial
triggerall = palno = 12 && var(1) = 1
triggerall = !ishelper
triggerall = !loseko
triggerall = !lose
triggerall = !drawgame
triggerall = roundstate = 4
triggerall = enemy,life <= life
trigger1 = alive && enemy, alive = 0
trigger1 = stateno != 5150
trigger1 = ctrl = 0
trigger1 = stateno = 0
flag = roundnotover
ignorehitpause = 1

[State -2]
type = AssertSpecial
triggerall = name = "Dark Heaven"
triggerall = palno = 12 && var(1) = 1
triggerall = enemy,alive
triggerall = roundstate > 2 && roundstate < 4
triggerall = enemy,life > enemy, life*0.01
trigger1 = !Ishelper
trigger1 = palno=12
trigger1 = !win&&!winko
trigger2 = Ishelper
trigger2 = root,palno=12
trigger2 = !root,win&&!root,winko
trigger3 = enemy,life > life
flag = noko
flag2 = nokosnd
flag3 = RoundNotOver
flag4 = TimerFreeze
flag5 = UnGuardable
flag6 = nomusic
ignorehitpause = 1
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
;[State 3888]
;type = AssertSpecial
;triggerall = life = 0 && time < 999999999999999999999999999999999999999999999999
;triggerall = name = "Dark Heaven"
;trigger1 = 1
;flag = noko
;flag2 = Invisible
;flag3 = RoundNotOver
;flag4 = TimerFreeze
;flag5 = UnGuardable
;ignorehitpause = 1
;pausemovetime = 99999999
;supermovetime = 99999999
;[State -2]
;type = AssertSpecial
;triggerall = name = "Dark Heaven"
;triggerall = palno = 12 && var(1) = 1
;triggerall = ctrl = 0
;triggerall = roundstate = 2
;trigger1 = !Ishelper
;flag = RoundNotOver
;ignorehitpause = 1
;pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
;supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State -3]
type = ChangeState
triggerall = name = "Dark Heaven"
triggerall = palno = 12 && var(1) = 1
triggerall = life = 0
triggerall = enemy,alive
triggerall = !alive
triggerall = roundstate > 2 && roundstate < 4
triggerall = enemy,life > enemy, life*0.01
triggerall = enemy,life > life
trigger1 = !ishelper
trigger1 = stateno != 5150
value = 5150
ignorehitpause = 1
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State -3]
type = ChangeAnim
triggerall = name = "Dark Heaven"
triggerall = palno = 12 && var(1) = 1
triggerall = life = 0
triggerall = enemy,alive
triggerall = !alive
triggerall = roundstate > 2 && roundstate < 4
triggerall = enemy,life > enemy, life*0.01
triggerall = enemy,life > life
trigger1 = !ishelper
trigger1 = stateno = 5150
value = 5150
ignorehitpause = 1
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999

[State -3, Landing Sound]
type = PlaySnd
triggerall = Time = 1
trigger1 = stateno = 52
trigger2 = stateno = 107
trigger3 = stateno = 103
value = 40, 0
[State -3, 2]
type = PlaySnd
triggerall = time = 1
trigger1 = stateno = 40
trigger1 = var(15) <= 0
value = 40, 1
[State -3, 2]
type = PlaySnd
triggerall = time = 1
trigger1 = stateno = 40
trigger1 = var(15) > 1
value = 40, 2
[State -3, Landing Sound]
type = PlaySnd
triggerall = Time = 1
trigger1 = stateno = 105
value = 105, 0
[State -2]
type = PlaySnd
trigger1 = projhit22182 = 1 || projhit22183 = 1
value = 2300,2

[State -3, 3]
type = stopSnd
trigger1 = stateno != 100
channel = 1
[State -2, 1]
type = stopSnd
trigger1 = stateno != 100
channel = 1
[state a]
type = stopsnd
trigger1 = movetype = H
channel = 3
[state a]
type = stopsnd
trigger1 = stateno != 1055
channel = 5
[State -2, 3]
type = stopSnd
trigger1 = MoveType = H
channel = 2
[state a]
type = stopsnd
trigger1 = MoveType = H
channel = 1

[state a]
type = removeexplod
trigger1 = MoveType = H
id = 185
[State 1]
type = removeexplod
trigger1 = MoveType = H
ID = 1470
[State -2 ,a]
type = removeexplod
trigger1 = MoveType = H
ID = 4000
[state -2 ,a]
type = removeexplod
trigger1 = MoveType = H
id = 4200
[state a]
type = removeexplod
trigger1 = MoveType = H
id = 1655
[state a]
type = removeexplod
trigger1 = MoveType = H
id = 1860
[state a]
type = removeexplod
trigger1 = movetype = H
id = 2200
[State 3020, 1]
type = RemoveExplod
trigger1 = anim != 0 || stateno = 10051
trigger2 = var(29) >= 1
ID = 22138
[State 3020, 1]
type = RemoveExplod
trigger1 = anim != 0 || stateno = 10051
trigger2 = var(29) >= 1
ID = 22139
[State 3020, 1]
type = RemoveExplod
trigger1 = anim != 0 || stateno = 10051
trigger2 = var(29) <= 1
ID = 22140
[State 3020, 1]
type = RemoveExplod
trigger1 = anim != 0 || stateno = 10051
trigger2 = var(29) <= 1
ID = 22141
[State 1]
type = removeexplod
trigger1 = MoveType = H
ID = 2405
[State 1]
type = removeexplod
trigger1 = stateno != 0
ID = 22063
[State 1]
type = removeexplod
trigger1 = MoveType = H
ID = 1000
[State 1]
type = removeexplod
trigger1 = anim != 0
ID = 22123
[State 1]
type = removeexplod
trigger1 = anim != 0 || stateno = 10051
ID = 110004
[State 1]
type = removeexplod
trigger1 = anim != 0 || stateno = 10051
ID = 120004
[State 1]
type = removeexplod
trigger1 = anim != 0 || stateno = 10051
ID = 130004
[State 1]
type = removeexplod
trigger1 = stateno != 196
ID = 100008

[State -1]
type = explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = !numexplod(110004);(gametime%68) = 1
trans = add
anim = 100004
id = 110004
postype = p1
pos = -5,-90
ownpal = 1
scale = 0.5,0.5
sprpriority = 50
supermove = 1
bindtime = 1
[State -1]
type = explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = !numexplod(120004);(gametime%68) = 1
trans = add
anim = 100004
id = 120004
postype = p1
pos = -5,-90
ownpal = 1
scale = 0.7,0.7
sprpriority = 50
supermove = 1
bindtime = 1
[State -1]
type = explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = !numexplod(130004);(gametime%68) = 1
trans = add
anim = 100004
id = 130004
postype = p1
pos = -5,-90
ownpal = 1
scale = 0.3,0.3
sprpriority = 50
supermove = 1
bindtime = 1
[State a]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%8) = 1
anim = 22131
sprpriority = 10
postype = p1
pos = var(50),var(51)
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 1
vel = 0,-3
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
trigger1 = time >= 15
trigger1 = numexplod(22138) <= 0
;trigger1 = (GameTime%15) = 1
anim = 22138
id = 22138
sprpriority = 0
postype = p1
pos = -38,-32
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
[State -1]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
trigger1 = time >= 15
trigger1 = numexplod(22139) <= 0
;trigger1 = (GameTime%15) = 1
anim = 22139
id = 22139
sprpriority = -1
postype = p1
pos = -38,-32
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
[State -1]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%5) = 1
anim = 22126
sprpriority = 0
postype = p1
pos = -5,-90
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%5) = 1
;trigger1 = time = 0
anim = 22125;22063
sprpriority = 0
postype = p1
pos = 0,0
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%20) = 1
anim = 22123
id = 22123
sprpriority = 99
postype = p1
pos = 0,-85
bindtime = -1 
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%35) = 1
anim = 22123
id = 22123
sprpriority = 99
postype = p1
pos = 20,-60
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%30) = 1
anim = 22123
id = 22123
sprpriority = 99
postype = p1
pos = -20,-40
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%40) = 1
anim = 22122
id = 22123
sprpriority = 99
postype = p1
pos = -10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%46) = 1
anim = 22122
id = 22123
sprpriority = 99
postype = p1
pos = -10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%49) = 1
anim = 22122
id = 22123
sprpriority = 99
postype = p1
pos = 0,-30
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%46) = 1
anim = 22124
id = 22123
sprpriority = 99
postype = p1
pos = 10,-10
bindtime = -1 
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%38) = 1
anim = 22124
id = 22123
sprpriority = 99
postype = p1
pos = 10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%42) = 1
anim = 22124
id = 22123
sprpriority = 99
postype = p1
pos = 0,-30
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = !numexplod(110004);(gametime%68) = 1
trans = sub
anim = 100004
id = 110004
postype = p1
pos = -5,-90
ownpal = 1
scale = 0.5,0.5
sprpriority = 50
supermove = 1
bindtime = 1
[State -1]
type = explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = !numexplod(120004);(gametime%68) = 1
trans = sub
anim = 100004
id = 120004
postype = p1
pos = -5,-90
ownpal = 1
scale = 0.7,0.7
sprpriority = 50
supermove = 1
bindtime = 1
[State -1]
type = explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = !numexplod(130004);(gametime%68) = 1
trans = sub
anim = 100004
id = 130004
postype = p1
pos = -5,-90
ownpal = 1
scale = 0.3,0.3
sprpriority = 50
supermove = 1
bindtime = 1
[State a]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%8) = 1
anim = 22131
trans = sub
sprpriority = 10
postype = p1
pos = var(50),var(51)
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 1
vel = 0,-3
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
trigger1 = time >= 15
trigger1 = numexplod(22140) <= 0
;trigger1 = (GameTime%15) = 1
anim = 22138
trans = sub
id = 22140
sprpriority = 0
postype = p1
pos = -38,-32
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
[State -1]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
trigger1 = time >= 15
trigger1 = numexplod(22141) <= 0
;trigger1 = (GameTime%15) = 1
anim = 22139
trans = sub
id = 22141
sprpriority = -1
postype = p1
pos = -38,-32
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
[State -1]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%5) = 1
anim = 22126
trans = sub
sprpriority = 0
postype = p1
pos = -5,-90
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%5) = 1
;trigger1 = time = 0
anim = 22125;22063
trans = sub
sprpriority = 0
postype = p1
pos = 0,0
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%20) = 1
anim = 22123
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = 0,-85
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%35) = 1
anim = 22123
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = 20,-60
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%30) = 1
anim = 22123
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = -20,-40
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%40) = 1
anim = 22122
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = -10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%46) = 1
anim = 22122
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = -10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%49) = 1
anim = 22122
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = 0,-30
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%46) = 1
anim = 22124
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = 10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%38) = 1
anim = 22124
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = 10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -1]
type = Explod
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%42) = 1
anim = 22124
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = 0,-30
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -1]
type = Explod
triggerall = alive = 1 && !ishelper
triggerall = statetype != C
triggerall = MoveType != H
triggerall = stateno != [190,192]
triggerall = stateno != 22050
triggerall = stateno != [170,171]
trigger1 = (GameTime%30) = 1
anim = 8200
id = 8200
sprpriority = 1
postype = p1
pos = 0,-50
bindtime = -1
supermove = 1
under = 1
ownpal = 1
[State 1000, 5]
type = Explod
trigger1 = Projhit3459 = 1 || Projhit35904 = 1 || Projhit22519 = 1
anim = 22109 + var(35)
sprpriority = 6
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999
[State 1000, 5]
type = Explod
trigger1 = ProjHit20000 = 1 || projhit22182 = 1 || projhit22183 = 1
anim = 22109 + var(35)
sprpriority = 100
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999
[State 1000, 5]
type = Explod
trigger1 = ProjHit22079 = 1
anim = 22109 + var(35)
sprpriority = 100
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999
[State 1000, 5]
type = Explod
trigger1 = ProjGuarded22079 = 1
anim = 22113
sprpriority = 100
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999
[State 1000, 5]
type = Explod
trigger1 = !ishelper&&palno=12&&roundstate>=2
trigger1 = fvar(32)!=1
trigger1 = !numexplod(2211325)
anim = 0
id=2211325
removetime = -1
sprpriority = 100
postype = left
pos = 0,10000
bindtime = 1
ignorehitpause =1
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State a]
type = Afterimage
triggerall = stateno != [190,192]
trigger1 = roundstate != 0 && !ishelper
trigger1 = TIME = 0
trans = add
PalContrast =  250, 250 -((var(42)>=1000)*150), 250 -((var(42)>=1000)*250)
PalBright = 0,0,0
time    =  -1
length  = 30
TimeGap = 1
FrameGap = 1
;[State a]
;type = EnvColor
;trigger1 = projhit1050 = 1
;persistent = 0
;ignorehitpause = 1
;time = 1
;value = 255,255,255
;under = 1
;[State 1000, 9]
;type = Envcolor
;trigger1 = projHit22079 = 1
;ignorehitpause = 1
;value = 255, 255, 255
;time = 1
;under = 5
;supermove = 1
;[State -2]
;type = EnvColor
;trigger1 = projhit35900 = 1
;persistent = 0
;ignorehitpause = 1
;time = 2
;value = 255,255,255
;under = 1
;invertall = 1
[State a]
type = PalFX
trigger1 = !ishelper
trigger1 = stateno != [190,192]
trigger1 = roundstate != 0
time = 2
add = var(21)-((var(45)=1000)*50),var(21)-((var(45)=1000)*50),var(21)-((var(45)=1000)*50)
ignorehitpause = 1
[State a]
type = PalFX
trigger1 = !ishelper
trigger1 = stateno != [190,192]
trigger1 = roundstate != 0
trigger1 = var(21) <= 40
time = 2
add = var(21)-40+((var(45)=1000)*50),var(21)-40+((var(45)=1000)*50),var(21)-40+((var(45)=1000)*50)
ignorehitpause = 1
color = 0
[State a]
type = PalFX
trigger1 = !ishelper
triggerall = palno != 12
triggerall = var(54) >= 5700 || fvar(24)>=2150&&var(54)>=2150
trigger1 = (GameTime%2) = 1
time = 1
add = 255-((fvar(24)>=2150)*100),100,100+((fvar(24)>=2150)*100)
ignorehitpause = 1
;[State -2]
;type = Trans
;trigger1 = palno != 12 && !ishelper && fvar(32) != 1
;trans = sub
;alpha = 50,230
[State -1]
type = palfx
trigger1 = !ishelper
trigger1 = palno != 12 && var(29) >= 1
time = 1
add = 60,60,60
color = 1
ignorehitpause = 1
[State 1]
type = AllPalfx
triggerall = var(29) <= 1
trigger1 = !ishelper
trigger1 = stateno = 2205 && time = 210
trigger2 = !ishelper
trigger2 = stateno = 2505 && time = 200
sinadd = 255, 255, 255, 100
time = 40
supermove = 1
pausemovetime = 99999999
supermovetime = 99999999
[State -2]
type = helper
triggerall = numhelper(65522) = 0
trigger1 = stateno = 2205 && var(29) >= 1
trigger1 = time = 200
trigger2 = stateno = 2505 && var(29) >= 1
trigger2 = time = 190
id = 65522
persistent = 1
name = "Secret Site"
pos = 0,0
postype = P1
stateno = 65522
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -2]
type = helper
triggerall = numhelper(21474836) = 0
trigger1 = palno != 12 && var(1) != 1
id = 21474836
persistent = 1
name = "Dark Heaven"
pos = 0,0
postype = P1
stateno = 21474836
helpertype = normal
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -2]
type = helper
triggerall = numhelper(21474836) = 0
trigger1 = palno = 12 && var(1) = 1
id = 21474836
persistent = 1
name = "Dark Heaven"
pos = 0,0
postype = P1
stateno = 21474836
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -1]
type = Projectile
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%2) = 1
attr = S, SA
projanim = 3459
projhitanim = -1
projid = 3459
projpriority = 999999999
projsprpriority = 1
;projedgebound = 220
projremove = 1
projremovetime = 4
postype = p1
offset = 0,0
velocity = 0
animtype  = Light
damage    = 0,0
getpower = 0,0
givepower = 0,0
guardflag =
hitflag = MAFD
pausetime = 2,8
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = -1;s7011
guardsound = -1
ground.type = low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2
air.velocity = -2,-1

[State -2]
type = PosSet
triggerall = RoundState = 2
trigger1 = stateno = [0,12]
trigger1 = floor(Pos Y) < -20
y = 0
[State -1]
type = CtrlSet
trigger1 = !ishelper && stateno = (104005 || 104006 || 103999 || 104000 || 104001 || 104004) && ctrl = 1
value = 0
[State 1]
type = powerset
triggerall = !ishelper
triggerall = palno = 12
trigger1 = 1
value = var(45)
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999
[state ]
type = varadd
triggerall = !ishelper
triggerall = roundstate = 2 && var(1)=1
trigger1 = (gametime%4) = 1
v = 45
value =4+((life<lifemax/4)*(powermax/500))
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999
[State 1]
type = poweradd
triggerall = !ishelper
triggerall = roundstate = 2 && var(1)!=1
trigger1 = (GameTime%4) = 1
value =2+((life<lifemax/4)*(powermax/1000))
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999
;[state a]
;type = powerset
;triggerall = !ishelper
;triggerall = palno = 12
;trigger1 = var(54) >= 5700 || fvar(24)>=2150&&var(54)>=2150
;value = (Const(data.power))
;ignorehitpause = 1
;SuperMoveTime = 9999999
;PauseMoveTime = 9999999
;[state -1]
;type = powerset
;triggerall = !ishelper
;trigger1 = palno=12&&!(stateno=2300||stateno =2400||stateno=22075||stateno=2999||stateno=3250||stateno=2200)&&fvar(35)-power>=1
;value = fvar(35)-power
;ignorehitpause = 1
;supermovetime = 99999999
;pausemovetime = 99999999
;[State -2]
;type = PowerSet
;triggerall = palno = 12 && var(1) = 1
;trigger1 = 1
;value = PowerMax
;ignorehitpause = 1
;supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
;pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

;[State -2]
;type = LifeSet
;triggerall = palno = 12 && var(1) = 1
;trigger1 = win
;trigger2 = lose
;value = 1-(lose=1)
;kill = 0
;ignorehitpause = 1
;supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
;pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State -2]
type = LifeSet
triggerall = palno = 12 && var(1) = 1
triggerall = roundstate != 2
trigger1 = !win
trigger1 = !lose
trigger1 = !winko
trigger1 = !loseko
value = LifeMax
kill = 0
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State -2]
type = LifeSet
triggerall = palno = 12 && var(1) = 1
trigger1 = drawgame
value = LifeMax
kill = 0
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State -2]
type = NotHitBy
triggerall = palno = 12 && var(1) = 1
trigger1 = roundstate != 2
trigger2 = var(58) != gametime+214748
value = SCA,AA,AT,AP
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State -2]
type = StateTypeSet
triggerall = var(1) = 1
trigger1 = stateno = [40,52]
MoveType = I
[State -2]
type = SelfState
triggerall = palno = 12 && !ishelper && alive
triggerall = var(58) != gametime+214748 && movetype = H
trigger1 = 1
value = 214748
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State -2]
type = SelfState
triggerall = !ishelper && palno = 12 && alive
triggerall = var(58) != gametime+214748
trigger1 = movetype = H || (stateno = [5000,5150]) || (anim = [5000,5150]) || stateno = 104010
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State -2]
type = NotHitBy
triggerall = var(1) = 1
triggerall = stateno = [40,52]
trigger1 = time = 0
value = SCA,AA,AT,AP
Time = 25
;[State -2]
;Type = LifeSet
;triggerall = palno = 12 && alive
;trigger1 = var(29) >= 1
;trigger2 = fvar(32) != 1
;trigger3 = roundstate < 2
;trigger4 = var(30)=0&&fvar(26)<=36&&life<=1
;trigger5 = var(30)!=0&&fvar(26)<=88&&fvar(28)=0&&life<=1
;trigger6 = var(30)!=0&&fvar(28)=0&&roundstate>=3
;Value = lifemax
;IgnoreHitPause = 1
;[State -2]
;Type = LifeSet
;triggerall = var(1) = 1 && palno != 12 && alive
;trigger1 = var(29) >= 1
;Value = fvar(39)
;IgnoreHitPause = 1
[State -2]
type = attackMulSet
trigger1 = 1
value = 1+((var(29)>=1)*(2-(palno=12)))
ignorehitpause = 1
[State -2]
type = defenceMulSet
trigger1 = var(1) != 1
value = 1.2
ignorehitpause = 1
[State -2]
type = AssertSpecial
trigger1 = var(1) = 1 || var(1) != 1 && var(29) >= 1
flag = NoStandGuard
flag2 = NoCrouchGuard
flag3 = NoairGuard
[State -2]
type = assertspecial
trigger1 = palno = 12 && !ishelper && fvar(32) != 1
flag = timerfreeze
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999
[State -2]
type = PlayerPush
triggerall = palno = 12
trigger1 = var(29) >= 1
value = 0
[State 1]
type = HitOverride
triggerall = !ishelper
triggerall = alive && var(1) = 1
triggerall = statetype != A
trigger1 = 1
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 10051
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State 1]
type = HitOverride
triggerall = !ishelper
triggerall = alive && var(1) = 1
triggerall = var(29) <= 1
triggerall = statetype = A
trigger1 = 1
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 38853
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State 1]
type = HitOverride
triggerall = !ishelper
triggerall = alive && var(1) = 1
triggerall = var(29) <= 1
triggerall = stateno = 40 || stateno = 52
trigger1 = 1
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 38852
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State 1]
type = HitOverride
triggerall = !ishelper
triggerall = alive && var(1) = 1
triggerall = var(29) >= 1
triggerall = stateno = 40 || stateno = 52
trigger1 = 1
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 18000
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State 1]
type = HitOverride
triggerall = !ishelper
triggerall = alive && var(1) = 1
triggerall = var(29) >= 1
triggerall = statetype = A
trigger1 = 1
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 18000
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

[State -1]
type = helper
triggerall = palno=12&&(stateno=22050&&time<150)&&!ishelper&&fvar(32)!=0&&fvar(38)!=0
trigger1 = numhelper(169992)=0&&enemy,numprojid(169994)>=1
id = 169992
persistent = 0
;name = "Dark Heaven"
pos = 0,0
postype = P1
stateno = 169992
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999
[State -2]
type = helper
triggerall = palno = 12
trigger1 = numhelper(288888)=0
id = 288888
persistent = 0
name = "Heaven's Fields"
pos = 0,0
postype = P1
stateno = 288888
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1]
type = ReversalDef
triggerall = palno = 12 && var(1)
trigger1 = stateno = 22050
reversal.attr = SCA,AA,AT,AP
hitflag = MAFPDL
priority = 7
pausetime = 0,0
sparkno = s22133
hitsound = s2562,31
p2facing = 1
p2stateno = 169995
[state 1]
type = targetstate
trigger1 = stateno = 22050
trigger1 = palno=12&&fvar(18)!=0&&fvar(38)=2
trigger1 = enemy,alive&&time<150
value = 169995
[State 1]
type = ChangeState
triggerall = var(1) = 1
trigger1 = !alive && stateno = [5000,5050]
value = 10380
[state a]
type = targetstate
trigger1 = enemy,alive = 0 && enemy,statetype = S
value = 10380
[state a]
type = targetstate
trigger1 = stateno = 22050 && enemy,alive = 0
value = 104010
[state 1]
type = targetstate
triggerall = palno = 12
trigger1 = (target,stateno != [49000,49100]) && stateno = 22050 && time >= 150
value = 49000
[State 1]
type = Targetstate
trigger1 = helper(2401),stateno=2410&&helper(2401),animtime = 0
value = 2416

[State 1]
type = targetLifeAdd
triggerall = !ishelper
trigger1 = stateno = 22050
trigger1 = palno=12&&(gametime%(1+((time<150)*7)))=1
value = -9999999999999
absolute = 1
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999
[State 1]
type = targetLifeAdd
triggerall = !ishelper
triggerall = palno = 12
trigger1 = stateno = 22050 || stateno = 2205 && time >= 20
value = -99999999999
absolute = 1
[state a]
type = targetlifeadd
triggerall = !ishelper
trigger1 = projhit22079 >= 1
value = Ceil(-0.003 * enemy,Const(data.life))
absolute = 1
[State 22121,1]
type = targetlifeadd
triggerall = !ishelper
trigger1 = projhit35902 >= 1
value = (Ceil(-0.005 * enemy,Const(data.life))) * var(39)
ignorehitpause = 1
absolute = 1
[State -2]
type = targetLifeAdd
triggerall = !ishelper
triggerall = palno = 12
trigger1 = enemy,life <= (Ceil(0.3 * enemy,Const(data.life)))
value = -99999999999
ignorehitpause = 1
absolute = 1
[State -2]
type = targetpowerAdd
triggerall = !ishelper
triggerall = palno = 12
trigger1 = enemy,life <= (Ceil(0.3 * enemy,Const(data.life)))
value = -(Ceil(1 * enemy,Const(data.power)))
ignorehitpause = 1
[State 1]
type = Targetlifeadd
triggerall = !ishelper
trigger1 = helper(2401),stateno=2410&&helper(2401),animtime = 0
value = Ceil(-0.35 * enemy,Const(data.life)) - 1
ignorehitpause = 1
absolute = 1

[State -2]
type = screenbound
trigger1 = ishelper
value = 0
movecamera = 0
[State ]
type = NotHitby
triggerall = palno = 12
trigger1 = ishelper
value = SCA,AA,AT,AP
time = -1
ignorehitpause = 1
[State -2]
type = SelfState
triggerall = ishelper
trigger1 = ishelper(22101)
trigger1 = stateno != (22101)
trigger2 = ishelper(1065)
trigger2 = stateno != (1065)
trigger3 = ishelper(2320)
trigger3 = stateno != (2320)
trigger4 = ishelper(2401)
trigger4 = stateno != (2401)
trigger4 = stateno != (2410)
trigger5 = ishelper(1400)
trigger5 = stateno != (1412)
trigger6 = ishelper(11509)
trigger6 = stateno != (11509)
trigger7 = ishelper(11500)
trigger7 = stateno != 11502
trigger7 = stateno != 12503
trigger7 = stateno != 11508
trigger7 = stateno != 11599
trigger7 = stateno != 11130
trigger7 = stateno != 11131
trigger8 = ishelper(169992)
trigger8 = stateno != (169992)
trigger9 = ishelper(288888)
trigger9 = stateno != 288888
trigger9 = stateno != 288889
trigger9 = stateno != 2888890
trigger9 = stateno != 2888891
trigger9 = stateno != (288889-(power>=powermax*0.5&&root,fvar(28)=0))
trigger9 = stateno != (288890+(root,stateno=2205))
trigger10 = ishelper(11100)
trigger10 = stateno != 11100
trigger10 = stateno != 11125
trigger11 = ishelper(11122)
trigger11 = stateno != 11122
trigger11 = stateno != 11125
trigger12 = ishelper(2100)
trigger12 = stateno != 22220
trigger12 = stateno != 22221
trigger12 = stateno != 22229
trigger13 = ishelper(65528)
trigger13 = stateno != 65528
trigger14 = ishelper(65534)
trigger14 = stateno != 65534
trigger15 = ishelper(65530)
trigger15 = stateno != 65530
trigger16 = ishelper(11101)
trigger16 = stateno != 11100
trigger16 = stateno != 11125
trigger17 = ishelper(11123)
trigger17 = stateno != 11122
trigger17 = stateno != 11125
trigger18 = ishelper(65531)
trigger18 = stateno != 65531
trigger19 = ishelper(65532)
trigger19 = stateno != 65532
trigger20 = ishelper(65533)
trigger20 = stateno != 65533
trigger21 = ishelper(1306)
trigger21 = stateno != 1306
trigger22 = ishelper(65562)
trigger22 = stateno != 65562
trigger23 = ishelper(65563)
trigger23 = stateno != 65563
trigger24 = ishelper(65522)
trigger24 = stateno != 65522
trigger25 = ishelper(1100)
trigger25 = stateno != 1101
trigger26 = ishelper(1231)
trigger26 = stateno != 1231
value= 214748
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(2100)
trigger1 = stateno != 22220
trigger1 = stateno != 22221
trigger1 = stateno != 22229
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1065)
trigger1 = stateno != 1065
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(22101)
trigger1 = stateno != 22101
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(2320)
trigger1 = stateno != 2320
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(2401)
trigger1 = stateno != 2401
trigger1 = stateno != 2410
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(11500)
trigger1 = stateno != 11502
trigger1 = stateno != 12503
trigger1 = stateno != 11508
trigger1 = stateno != 11599
trigger1 = stateno != [11130,11131]
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(11509)
trigger1 = stateno != 11509
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(22121)
trigger1 = stateno != 22121
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1400)
trigger1 = stateno != 1412
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(169992)
trigger1 = stateno != 169992
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(288888)
trigger1 = stateno != 288888
trigger1 = stateno != 288889
trigger1 = stateno != 2888890
trigger1 = stateno != 2888891
trigger1 = stateno!=(288889-(power>=powermax*0.5&&root,fvar(28)=0))
trigger1 = stateno!=(288890+(root,stateno=2205))
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(11100)
trigger1 = stateno != 11100
trigger1 = stateno != 11125
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(11101)
trigger1 = stateno != 11100
trigger1 = stateno != 11125
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(11122)
trigger1 = stateno != 11122
trigger1 = stateno != 11125
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(11123)
trigger1 = stateno != 11122
trigger1 = stateno != 11125
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(65528)
trigger1 = stateno != 65528
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(65534)
trigger1 = stateno != 65534
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(65530)
trigger1 = stateno != 65530
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(65531)
trigger1 = stateno != 65531
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(65532)
trigger1 = stateno != 65532
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(65533)
trigger1 = stateno != 65533
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1306)
trigger1 = stateno != 1306
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(65562)
trigger1 = stateno != 65562
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(65563)
trigger1 = stateno != 65563
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(65522)
trigger1 = stateno != 65522
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1100)
trigger1 = stateno != 1101
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State ]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1231)
trigger1 = stateno != 1231
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999



;***************************************************************************
;===========================================================================
;---------------------------------------------------------------------------
[Statedef -3]
;---------------------------------------------------------------------------
;===========================================================================
;***************************************************************************

[State -2]
type = varset
trigger1 = 1
v = 58
value = gametime+214748
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
[State -2]
type = DestroySelf
triggerall = ishelper
trigger1 = var(58) != gametime+214748
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

[State 0, PlayerPush]
type = PlayerPush
triggerall = name = "Dark Heaven"
trigger1 = palno = 12
trigger1 = !ishelper
value = 0
ignorehitpause = 1














;-------------- Generated by Fighter Factory -------------

;--------------------- Variable List ----------------------

; Var(1) - StateDef -2, 11125
; Var(2) - StateDef 180, 169995, 13121
; Var(3) - StateDef -2, 169995, 13121
; Var(4) - StateDef -2
; Var(5) - StateDef 1101, 22115, 1450, 1800, 2400, 2200
; Var(6) - StateDef -2
; Var(7) - StateDef 1450
; Var(10) - StateDef -2, 288890
; Var(11) - StateDef 288890
; Var(13) - StateDef -2, 1450
; Var(15) - StateDef -2
; Var(16) - StateDef -2
; Var(17) - StateDef -2
; Var(18) - StateDef 1450
; Var(19) - StateDef 2301, 2302, 2310, 22050, 22100
; Var(20) - StateDef 2400
; Var(21) - StateDef -2
; Var(22) - StateDef -2
; Var(25) - StateDef 65522
; Var(29) - StateDef -2, 3250
; Var(30) - StateDef -2
; Var(35) - StateDef -2
; Var(39) - StateDef -2
; Var(40) - StateDef -2, 22077
; Var(41) - StateDef -2
; Var(42) - StateDef -2
; Var(43) - StateDef -2
; Var(44) - StateDef -2
; Var(48) - StateDef 1306
; Var(49) - StateDef 1306
; Var(50) - StateDef -2
; Var(51) - StateDef -2
; Var(52) - StateDef -2
; Var(53) - StateDef -2
; Var(54) - StateDef -2
; Var(56) - StateDef -2, 22101, 65528
; Var(58) - StateDef -3, 214748

;--------------------- Float Variable List ----------------------

; fVar(5) - StateDef -2
; fVar(18) - StateDef -2, 22050
; fVar(19) - StateDef -2
; fVar(20) - StateDef -2
; fVar(21) - StateDef 22115, 22117
; fVar(22) - StateDef -2
; fVar(23) - StateDef -2
; fVar(24) - StateDef -2
; fVar(25) - StateDef -2
; fVar(26) - StateDef -2, 10051, 38853, 38852
; fVar(28) - StateDef -2
; fVar(29) - StateDef -2
; fVar(32) - StateDef -2
; fVar(33) - StateDef -2
; fVar(35) - StateDef -2
; fVar(36) - StateDef -2
; fVar(37) - StateDef -2
; fVar(38) - StateDef -2
; fVar(39) - StateDef 3250
