
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;LGMO3rd Standing Hard Punch w/ Projectile [SPECIAL STATE]
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[Statedef 211]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 50
ctrl = 0
velset = 0,0
anim = 212

[State 211]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[State 211]
type = PlaySnd
trigger1 = animelem = 6
value = 2562, 20

[state 211]
type = Explod
trigger1 = animelem = 7
anim = 900
id = 900
postype = p1
sprpriority = 2147483647
postype = p1
pos = 60,-70
removetime = 24
bindtime = 1
ontop = 1
ownpal = 0
scale = 0.5,0.5
supermovetime = 2147483647
pausemovetime = 2147483647

[state 211]
type = Explod
trigger1 = animelem = 7
anim = 900
id = 900
postype = p1
sprpriority = 2147483647
postype = p1
pos = 40,-70
removetime = 24
bindtime = 1
ontop = 1
ownpal = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 211]
type = Explod
trigger1 = time >= 29
trigger1 = time <= 39
id = 22131
anim = 22131
ownpal = 0
sprpriority = 5
pos = 50,-70
random = 80,40
vel = 2-random%3,1-random%3
accel = 0.1,0
scale = 0.3,0.3
supermove = 9999999999
pausemovetime = 9999999999
ignorehitpause=1

[State 211]
type = Explod
trigger1 = time >= 29
trigger1 = time <= 39
id = 22131
anim = 22131
ownpal = 0
sprpriority = 5
pos = 50,-70
random = 80,40
vel = 2-random%3,1-random%3
accel = 0.1,0
scale = 0.1,0.1
supermove = 9999999999
pausemovetime = 9999999999
ignorehitpause = 1

[State 211]
type = Veladd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 80 || projguarded35600 >= 1 && FrontEdgeDist <= 80
x = -6.4

[State 211]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 19

[State 211]
type = Projectile
trigger1 = AnimElem = 8
attr = S, NA
projanim = 22136
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.1 * enemy,Const(data.life)) ,Ceil(0.01 * enemy,Const(data.life)) * var(39)
getpower = 50,50
givepower = 0,0
guardflag = H
hitflag = MAF
pausetime = 2,0
sparkno = s22109 + var(35)
sparkxy = 40, -69
hitsound   = s2562,19
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -10.5
air.velocity = -2.5,-4
envshake.time = 7
envshake.ampl = 7

[State 211]
type = Helper
trigger1 = Time = 10
name = "supia"
stateno = 9150
ID = 3100
pos = 120,-70
keyctrl = 0
postype = p1
supermovetime = 99999999
pausemovetime = 99999999
IgnoreHitPause = 1
Persistent = 1

[State 211]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;LGMO3rd [HELPER STATES]
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[Statedef 9150]

[state 9150]
type = StateTypeSet
trigger1 = ishelper(3100)
statetype = A
movetype = I
physics = N
persistent = 0
ignorehitpause = 1
sprpriority = 2

[state 9150]
type = VelSet
trigger1 = ishelper(3100)
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = VelSet
trigger1 = ishelper(3100)
trigger1 = animelem = 34
x = 50
y = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = changeanim
trigger1 = ishelper(3100)
value = 3100
persistent = 0
ignorehitpause = 1

[state 9150]
type = ctrlset
trigger1 = ishelper(3100)
value = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = hitoverride
trigger1 = ishelper(3100)
time = 1
attr = SCA,AA,AT,AP
slot = 1
stateno = 9150
ignorehitpause = 1

[state 9150]
type = playsnd
triggerall = ishelper(3100)
trigger1 = time = 0
value = 2562,32
volume = 255

[state 9150]
type = nothitby
trigger1 = ishelper(3100)
value = SCA
time = -1
ignorehitpause = 1

[state 9150]
type = Projectile
triggerall = ishelper(3100)
trigger1 = time >= 34
attr = A,AA
animtype  = hard
damage = 70+random%20,1+random%20
getpower = 20,20
guardflag = ;M
hitflag = MAFPD
projanim = 3101
projid = 3100
projremove = 1
projremovetime = 15
projpriority = 2147483647
projsprpriority = 2147483647
postype = p1
offset = 0,0
numhits = 1
pausetime = 2,4
hitsound   = s2551,1;s225,1
sparkno = -1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -2,-10
air.juggle = 8
air.velocity = -2,-10
fall = 1
air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 8
palfx.time = 60
palfx.add = 0,0,0
palfx.mul = 50,50,50
palfx.sinadd = 100,100,100,30
palfx.color = 0
palfx.invertall = 1
p2stateno = 14200
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = Explod
triggerall = ishelper(3100)
trigger1 = time = 34
anim = 3102
id = 3102
sprpriority = 3
postype = right
Pos = -180,126
bindtime = -1
supermove = 0
ownpal = 0
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1
trans = add

[State 9150]
type = Explod
triggerall = ishelper(3100)
trigger1 = root,projcontacttime(3100) = 1
anim = 2551
id = 2551
sprpriority = 3
postype = p2
pos = 0,5+ceil(-enemy, pos Y)
bindtime = 1
supermove = 0
scale = 1,1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647
under = 0

[State 9150]
type = Explod
triggerall = ishelper(3100)
trigger1 = root,projcontacttime(3100) = 1
anim = 22108
id = 22108
sprpriority = 6
postype = p2
pos = 0,-100+ceil(-enemy, pos Y)
bindtime = 1
supermove = 0
ignorehitpause =1
supermovetime = 2147483647
pausemovetime = 2147483647
under = 0

[State 9150]
type = Explod
triggerall = ishelper(3100)
trigger1 = root,projcontacttime(3100) = 1
anim = 2558
id = 2558
sprpriority = 99999
postype = p2
pos = -20,0+ceil(-enemy, pos Y)
bindtime = 1
supermove = 0
scale = 0.8,0.8
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647
under = 0

[State 9150]
type = Explod
triggerall = ishelper(3100)
trigger1 = root,projcontacttime(3100) = 1
anim = 2559
id = 2559
sprpriority = 99999
postype = p2
pos = 20,0+ceil(-enemy, pos Y)
bindtime = 1
supermove = 0
scale = 0.8,0.8
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647
under = 0

[State 9150]
type = Explod
triggerall = ishelper(3100)
trigger1 = root,projcontacttime(3100) = 1
anim = 2562
id = 2562
sprpriority = 2
postype = p2
pos = -20,0+ceil(-enemy, pos Y)
bindtime = 1
supermove = 0
scale = 0.8,1.2
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647
under = 0

[State 9150]
type = Explod
triggerall = ishelper(3100)
trigger1 = root,projcontacttime(3100) = 1
anim = 2562
id = 2563
sprpriority = 2
postype = p2
pos = 20,0+ceil(-enemy, pos Y)
bindtime = 1
supermove = 0
scale = 0.8,1.2
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647
under = 0

[state 9150]
type = destroyself
triggerall = ishelper(3100)
trigger1 = animtime = 0

[state 9150]
type = DestroySelf
triggerall = ishelper(3100)
trigger1 = root,projcontacttime(3100) = 1
trigger2 = time > 60

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;LGMO3rd Dash [HELPER STATE]
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[State 9150]
type = StateTypeSet
trigger1 = ishelper(1920)
statetype = S
movetype = I
physics = N
persistent = 0
ignorehitpause = 1

[State 9150]
type = VelSet
trigger1 = ishelper(1920)
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[State 9150]
type = changeanim
trigger1 = ishelper(1920)
value = 1920
persistent = 0
ignorehitpause = 1

[State 9150]
type = ctrlset
trigger1 = ishelper(1920)
value = 0
persistent = 0
ignorehitpause = 1

[State 9150]
type = BindToroot
trigger1 = ishelper(1920)
ignorehitpause = 1

[State 9150]
type = posset
trigger1 = ishelper(1920)
x = enemynear,pos x
y = enemynear,pos y
ignorehitpause = 1

[State 9150]
type = hitoverride
trigger1 = ishelper(1920)
time = 1
attr = SCA,AA,AT,AP
slot = 1
stateno = 9150
ignorehitpause = 1

[State 9150]
type = nothitby
trigger1 = ishelper(1920)
value = SCA
time = -1
ignorehitpause = 1

[State 9150]
type = Projectile
triggerall = ishelper(1920)
trigger1 =AnimElem=1||AnimElem=2||AnimElem=3||AnimElem=4||AnimElem=5||AnimElem=6||AnimElem=7
attr = A, NA
projanim = 22152
projid = 35902
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 1
projremovetime = 1
postype = p1
offset = 0,0
animtype  = hard
damage = 10+random%20,10+random%20
getpower = 20,20
givepower = 0,0
guardflag = M
hitflag = MAFPD
pausetime = 7,0
sparkno =  s22109 + var(35)
sparkxy = (enemy,const(size.mid.pos.x))+(random%20)-(random%40),(enemy,const(size.mid.pos.y))+(random%40)-(random%60)
hitsound   = s2562,19
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 4
ground.hittime  = 4
ground.velocity = 0,-4
air.velocity = 0,-4
envshake.time = 4
envshake.ampl = 4
yaccel = 0.4
fall = 1
fall.recover = 0
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = destroyself
triggerall = ishelper(1920)
trigger1 = animtime = 0
ignorehitpause = 1

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;LGMO3rd Skull Pillar [HELPER STATE]
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[state 9150]
type = StateTypeSet
trigger1 = ishelper(1410)
statetype = A
movetype = I
physics = N
persistent = 0
ignorehitpause = 1

[state 9150]
type = VelSet
trigger1 = ishelper(1410)
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = changeanim
trigger1 = ishelper(1410)
value = 1412
persistent = 0
ignorehitpause = 1

[state 9150]
type = ctrlset
trigger1 = ishelper(1410)
value = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = posset
triggerall = ishelper(1410)
trigger1 = time = 0
trigger1 = root,var(5) = 4
x = enemy,pos x 

[state 9150]
type = PosSet
trigger1 = ishelper(1410)
y = 0
ignorehitpause = 1

[state 9150]
type = hitoverride
trigger1 = ishelper(1410)
time = 1
attr = SCA,AA,AT,AP
slot = 1
stateno = 150
ignorehitpause = 1

[state 9150]
type = playsnd
triggerall = ishelper(1410)
trigger1 = animelem = 12
value = 2551,1
volume = 255

[state 99150]
type = playsnd
triggerall = ishelper(1410)
trigger1 = animelem = 12
value = 2562,27

[state 99150]
type = playsnd
triggerall = ishelper(1410)
trigger1 = animelem = 12
value = 2551,0

[state 9150]
type = nothitby
trigger1 = ishelper(1410)
value = SCA
time = -1
ignorehitpause = 1

[State 9150]
type = Explod
triggerall = ishelper(1410)
trigger1 = time = 15
anim = 2551
id = 25510
sprpriority = 3
postype = p1
pos = 0,-10
bindtime = 1
supermove = 0
scale = 1,1
ownpal = 0
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1

[State 9150]
type = Explod
triggerall = ishelper(1410)
trigger1 = time = 19
anim = 22102
id = 221020
sprpriority = 3
postype = p1
pos = 0,0
bindtime = 1
removetime = 5
supermove = 0
scale = 1.15,1.15
ownpal = 0
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1

[State 9150]
type = Explod
triggerall = ishelper(1410)
trigger1 = time = 19
anim = 22102
id = 2210201
sprpriority = 3
postype = p1
pos = 0,0
bindtime = 1
removetime = 15
supermove = 0
scale = 0.95,0.95
ownpal = 0
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1

[State 9150]
type = Explod
triggerall = ishelper(1410)
trigger1 = time = 19
anim = 22102
id = 2210202
sprpriority = 3
postype = p1
pos = 0,0
bindtime = 1
removetime = 20
supermove = 0
scale = 0.75,0.75
ownpal = 0
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1

[State 9150]
type = Explod
triggerall = ishelper(1410)
trigger1 = anim = 1410 && time = 19
anim = 22102
id = 2210203
sprpriority = 2
postype = p1
pos = 0,0
bindtime = 1
removetime = 25
supermove = 0
scale = 0.45,0.45
ownpal = 0
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1

[State 9150]
type = Explod
triggerall = ishelper(1410)
trigger1 = time = 19
anim = 22108
ID = 221080
sprpriority = 6
postype = p1
pos = 0,-130
bindtime = 1
supermove = 0
ownpal = 0
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1

[State 9150]
type = Explod
triggerall = ishelper(1410)
trigger1 = time = 15
anim = 2558
id = 25580
sprpriority = 99999
postype = p1
pos = 0,0
bindtime = 1
supermove = 0
ownpal = 0
scale = 0.8,0.8
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1

[State 9150]
type = Explod
triggerall = ishelper(1410)
trigger1 = time = 15
anim = 2559
id = 25590
sprpriority = 99999
postype = p1
pos = 0,0
bindtime = 1
supermove = 0
ownpal = 0
scale = 0.8,0.8
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1

[State 9150]
type = Explod
triggerall = ishelper(1410)
trigger1 = time = 19
anim = 2560
id = 25600
sprpriority = -10
postype = p1
pos = 0,15;0
bindtime = 1
supermove = 0
scale = 1,1
ownpal = 0
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1

[State 99150]
type = Explod
triggerall = ishelper(1410)
triggerall = AnimElemtime(15) >= 0
trigger1 = (GameTime%(2+((root,palno=12)*2))) = 1
anim = 22131
sprpriority = 10
postype = p1
pos = root,var(50),root,var(51)
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 1
vel = 0,-3
SuperMoveTime = 9999
PauseMoveTime = 9999

[state 9150]
type = EnvShake
triggerall = ishelper(1410)
trigger1 = animelem = 14
time = 20
ampl = -15
freq = 95
phase = 95

[state 9150]
type = Projectile
triggerall = ishelper(1410)
trigger1 = animelem = 14
attr = S,SP
animtype  = hard
damage = 70+random%20,1+random%20
getpower = 20,20
guardflag = M
projanim = 22150
projremove = 0
projremovetime = 30
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
postype = p1
offset = 0,0
numhits = 1
pausetime = 2,4
hitsound   = s225,1
sparkno = -1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -2,-10
air.juggle = 8
air.velocity = -2,-10
fall = 1
air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 8
p2stateno = 14200
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = destroyself
triggerall = ishelper(1410)
trigger1 = animtime = 0

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd SPIN HOLD [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[State 9150]
type = StateTypeSet
trigger1 = ishelper(1720)
statetype = S
movetype = I
physics = N
persistent = 0
ignorehitpause = 1

[State 9150]
type = VelSet
trigger1 = ishelper(1720)
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[State 9150]
type = changeanim
trigger1 = ishelper(1720)
value = 8037
persistent = 0
ignorehitpause = 1

[State 9150]
type = ctrlset
trigger1 = ishelper(1720)
value = 0
persistent = 0
ignorehitpause = 1

[State 9150]
type = NotHitBy 
trigger1 = ishelper(1720)
value = SCA
ignorehitpause = 1

[State 9150]
type = AssertSpecial
trigger1 = ishelper(1720)
flag = noshadow

[State 9150]
type = trans
trigger1 = ishelper(1720)
trans = add
ignorehitpause = 1

[State 9150]
type = AngleDraw
trigger1 = ishelper(1720)
scale = 1.0,1.0

[State 9150]
type = AngleAdd
trigger1 = ishelper(1720)
value = -7

[State 9150]
type = varset
triggerall = ishelper(1720)
trigger1 = enemy,pos x=[-320,320]
trigger1 = enemy,pos y=[-480,60]
trigger1 = enemy,pos x-pos x>=0
trigger2 = enemy,pos x!=[-320,320]
trigger2 = enemy,pos y!=[-480,60]
trigger2 = enemynear,pos x-pos x>=0
v = 0
value = 0
ignorehitpause = 1

[State 9150]
type = velset
triggerall = ishelper(1720)
trigger1 = var(0)=0
x = (P2Dist X)/10
y = (P2Dist Y+(enemynear(0),const(size.mid.pos.y)))/10

[State 9150]
type = Turn
triggerall = ishelper(1720)
triggerall = enemy,pos x=[-320,320]
triggerall = enemy,pos y=[-480,60]
trigger1 = enemy,pos x-pos x>=0
trigger1 = facing=-1
trigger2 = enemy,pos x-pos x<0
trigger2 = facing=1
ignorehitpause = 1

[State 9150]
type = AngleDraw
triggerall = ishelper(1720)
trigger1 = time >= 0
value = gametime * 1.5 * (1 + random%100) * 0.1
scale = (ifelse((gametime%120<=59),((gametime%60 * 0.01)  / 0.6),(1 - (gametime%60*0.01)  / 0.6))) * 1.5,1.5

[State 9150]
type = VarRandom
trigger1 = ishelper(1720)
v = 48
range = 0,360

[State 9150]
type = Explod
triggerall = ishelper(1720)
trigger1 = time < 140
anim = 221312
pos = Ceil(100*cos(pi*var(48)/180)),Ceil(100*sin(pi*var(48)/180))
vel = -10*cos(pi*var(48)/180)+vel X,-10*sin(pi*var(48)/180)+vel Y
removetime = 10
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = Explod
triggerall = ishelper(1720)
trigger1 = time < 150
trigger1 = GameTime%5 = 0
anim = 10910
ontop = 1
ownpal = 1
scale = 0.5,0.5
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = Explod
triggerall = ishelper(1720)
triggerall = !numexplod(26010)
trigger1 = time < 150
anim = 26010
id = 26010
sprpriority = 5
ownpal = 0
bindtime = -1
removetime = -1
trans = add
scale = 0.7,0.7
pausemovetime = 2000000000
supermovetime = 2000000000

[State 9150]
type = RemoveExplod
triggerall = ishelper(1720)
trigger1 = time > 150
ID = 26010
ignorehitpause = 1

[State 9150]
type = Projectile
triggerall = ishelper(1720)
triggerall = palno = 12
trigger1 = time < 150
projanim = 22190
projid = 22183
projremove = 1
projremovetime = 1
projmisstime = 10
projhits = 1
getpower = 100
ownpal = 0
attr = S, SP
animtype = Hard
damage = 20+random%20,10+random%20
hitflag = MAFPHD
guardflag = M
hitsound = s1450,0
guardsound = s1450,0
pausetime = 10,10
sparkno = -1;s22138
guard.sparkno = -1;s22184
ground.type = high
ground.hittime = 21
ground.slidetime = 21
;air.juggle = 8
;air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 3
;fall = 1
palfx.time = 60
palfx.add = 64,64,128
palfx.mul = 256,256,256
palfx.sinadd = 150,150,150,5
palfx.color = 0
palfx.invertall = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = Projectile
triggerall = ishelper(1720)
triggerall = palno != 12
trigger1 = time < 150
projanim = 22190
projid = 22183
projremove = 1
projremovetime = 1
projmisstime = 10
projhits = 1
getpower = 100
ownpal = 0
attr = S, SP
animtype = Hard
damage = 20+random%20,5
hitflag = MAFPHD
guardflag = M
hitsound = s1450,0
guardsound = s1450,0
pausetime = 10,10
sparkno = -1;s22138
guard.sparkno = -1;s22184
ground.type = high
ground.hittime = 21
ground.slidetime = 21
;air.juggle = 8
;air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 3
;fall = 1
p2stateno = 1234
palfx.time = 60
palfx.add = 64,64,128
palfx.mul = 256,256,256
palfx.sinadd = 150,150,150,5
palfx.color = 0
palfx.invertall = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = HitOverride
trigger1 = ishelper(1720)
time = 1
attr = SCA,AA,AT,AP
slot = 0
stateno = 9150
ignorehitpause = 1

[State 9150]
type = DestroySelf
triggerall = ishelper(1720)
trigger1 = time > 150

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd PILLAR-RUSH [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[State 9150]
type = StateTypeSet
trigger1 = ishelper(18102)
statetype = S
movetype = I
physics = N
persistent = 0
ignorehitpause = 1

[State 9150]
type = VelSet
trigger1 = ishelper(18102)
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[State 9150]
type = changeanim
trigger1 = ishelper(18102)
value = 18101
persistent = 0
ignorehitpause = 1

[State 9150]
type = ctrlset
trigger1 = ishelper(18102)
value = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = hitoverride
trigger1 = ishelper(18102)
time = 1
attr = SCA,AA,AT,AP
slot = 1
stateno = 9150
ignorehitpause = 1

[State 9150]
type = trans
trigger1 = ishelper(18102)
trans = add
ignorehitpause = 1

[State 9150]
type = NotHitBy 
trigger1 = ishelper(18102)
value = SCA
ignorehitpause = 1

[State 9150]
type = AngleDraw
trigger1 = ishelper(18102)
scale = 1.0,1.0

[State 9150]
type = AngleAdd
trigger1 = ishelper(18102)
value = -7

[state 9150]
type = AssertSpecial
trigger1 = ishelper(18102)
flag = noshadow

[State 9150]
type = VarRandom
triggerall = ishelper(18102)
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
v = 48
range = 0,5

[State 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 0
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S,SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = 0,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 0
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = 120,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 0
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = -120,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 1
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = 60,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 1
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = -60,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
sparkno = s22109 + var(35)
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 1
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = -160,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 2
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = 140,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 2
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = -100,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 2
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = 40,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 3
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = 100,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 3
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = -80,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 3
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = 10,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 4
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = 20,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 4
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = -80,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 4
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = 160,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
sparkno = s22109 + var(35)
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 5
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = -10,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 5
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = 100,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 5
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 18102
projhitanim = -1
projid = 18102
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 15
projscale = 1,1
postype = p1
offset = 60,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 0
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S,SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = 0,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 0
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = 120,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 0
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = -120,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 1
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = 60,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 1
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = -60,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
sparkno = s22109 + var(35)
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 1
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = -160,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 2
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = 140,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 2
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = -100,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 2
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = 40,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 3
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = 100,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 3
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = -80,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 3
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = 10,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 4
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = 20,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 4
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = -80,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 4
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = 160,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
sparkno = s22109 + var(35)
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 5
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = -10,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 5
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = 100,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Projectile
triggerall = ishelper(18102)
triggerall = var(48) = 5
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
attr = S, SP
animtype  = hard
damage = 68+random%20,1
getpower = 61,61
guardflag = M
projanim = 3490
projhitanim = -1
projid = 3490
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 21
projscale = .5,.5
postype = p1
offset = 60,150
velocity = 0
numhits = 1
pausetime = 16,16
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,(ceil(p2bodydist Y)-170)
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = playsnd
triggerall = ishelper(18102)
trigger1 = time = 36 || time = 52 || time = 72 || time = 92 || time = 112 || time = 132 || time = 152
value = 801,1

[state 9150]
type = destroyself
triggerall = ishelper(18102)
trigger1 = time = 178

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ELEC-BALL [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[state 9150]
type = StateTypeSet
trigger1 = ishelper(12310)
statetype = S
movetype = I
physics = N
persistent = 0
ignorehitpause = 1

[state 9150]
type = VelSet
trigger1 = ishelper(12310)
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = changeanim
trigger1 = ishelper(12310)
value = 12310
persistent = 0
ignorehitpause = 1

[state 9150]
type = ctrlset
trigger1 = ishelper(12310)
value = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = HitOverride
trigger1 = ishelper(12310)
time = 1
attr = SCA,AA,AT,AP
slot = 0
stateno = 9150
ignorehitpause = 1

[state 9150]
type = assertspecial
trigger1 = ishelper(12310)
flag = noshadow

[state 9150]
type = turn
triggerall = ishelper(12310)
triggerall = enemy,pos x=[-320,320]
triggerall = enemy,pos y=[-480,60]
trigger1 = enemy,pos x-pos x>=0
trigger1 = facing=-1
trigger2 = enemy,pos x-pos x<0
trigger2 = facing=1
ignorehitpause = 1

[state 9150]
type = velset
triggerall = ishelper(12310)
trigger1 = time>=30&&(p2bodydist X<0||p2bodydist X>0)
x = ifelse(p2bodydist X<0,-4,4)

[state 9150]
type = velset
triggerall = ishelper(12310)
trigger1 = time>=30&&(p2bodydist Y<50||p2bodydist Y>50)
y = ifelse(p2bodydist Y<50,-1.0,1.0)

[state 9150]
type = angledraw
trigger1 = ishelper(12310)
scale= 1,1

[state 9150]
type = AngleAdd
trigger1 = ishelper(12310)
value = 14

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

[state 9150]
type = Projectile
triggerall = ishelper(12310)
trigger1 = ishelper
trigger1 = GameTime%2 = 0
attr = A,NA
damage = 1+random%5,1
guardflag = M
hitflag = MAFPDL
projanim = 22180
projid = 22180
projremove = 0
projremovetime = 1;2
projhits = 1
postype = p1
pausetime = 0,0
hitsound   = s225,1
sparkno = s10161 + random%2
guard.sparkno = s22113
guardsound = s120,0
animtype = hard
sparkxy = 5, -5
getpower = 0
givepower = -1
ground.type = high
ground.hittime = 20
ground.slidetime = 20
ground.velocity = -4.5
air.juggle = 2
air.velocity = -4.5,-4.8
air.fall = 1
p2stateno = 9000
pausemovetime = 2147483647
supermovetime = 2147483647

[State 9150]
type = Explod
triggerall = ishelper(12310)
trigger1 = numexplod(11110) = 0
anim = 11110
id = 11110
sprpriority = 2147483647
postype = p1
pos = 0,0
vel = 0,0
trans = add
bindtime = -1
supermove = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 9150]
type = ModifyExplod
triggerall = ishelper(12310)
trigger1 = 1
id = 11110
scale= 0.1+0.1*(gametime%9),0.1+0.1*(gametime%9)

[state 9150]
type = removeexplod
triggerall = ishelper(12310)
trigger1 = time>=70
id = 11110

[state 9150]
type = NotHitBy 
trigger1 = ishelper(12310)
value = SCA
ignorehitpause = 1

[state 9150]
type = destroyself
triggerall = ishelper(12310)
trigger1 = time>=75


;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd PILLAR RUSH [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[State 9150]
type = StateTypeSet
trigger1 = ishelper(22171)
statetype = A
movetype = I
physics = N
persistent = 0
ignorehitpause = 1

[State 9150]
type = VelSet
trigger1 = ishelper(22171)
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[State 9150]
type = changeanim
trigger1 = ishelper(22171)
value = 1412
persistent = 0
ignorehitpause = 1

[State 9150]
type = ctrlset
trigger1 = ishelper(22171)
value = 0
persistent = 0
ignorehitpause = 1

[State 9150]
type = posset
trigger1 = ishelper(22171)
trigger1 = time = 0
trigger1 = root,var(6) = 4
x = enemy,pos x 

[State 9150]
type = PosSet
trigger1 = ishelper(22171)
y = 0
ignorehitpause = 1

[State 9150]
type = hitoverride
trigger1 = ishelper(22171)
time = 1
attr = SCA,AA,AT,AP
slot = 0
stateno = 9150
ignorehitpause = 1

[state 9150]
type = playsnd
triggerall = ishelper(22171)
trigger1 = animelem = 3
value = 190,1

[state 9150]
type = playsnd
triggerall = ishelper(22171)
trigger1 = animelem = 3
value = 2562,27

[state 9150]
type = playsnd
triggerall = ishelper(22171)
trigger1 = animelem = 3
value = 2551,0

[State 9150]
type = Explod
triggerall = ishelper(22171)
trigger1 = animelem = 3
anim = 2552
id = 1415
sprpriority = 3
postype = p1
pos = 0,25
bindtime = 1
supermove = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 9150]
type = Explod
triggerall = ishelper(22171)
trigger1 = animelem = 5
anim = 22102
id = 1415
sprpriority = 3
postype = p1
pos = 0,-30
bindtime = 1
removetime = 5
supermove = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 9150]
type = Explod
triggerall = ishelper(22171)
trigger1 = animelem = 3
anim = 22108
sprpriority = 6
postype = p1
pos = 0,-100
bindtime = 1
supermove = 0
ignorehitpause =1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 9150]
type = Explod
triggerall = ishelper(22171)
trigger1 = animelem = 5
anim = 22102
id = 1415
sprpriority = 3
postype = p1
pos = 0,-10
bindtime = 1
removetime = 15
supermove = 0
scale = 0.8,0.8
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 9150]
type = Explod
triggerall = ishelper(22171)
trigger1 = animelem = 5
anim = 22102
id = 1415
sprpriority = 3
postype = p1
pos = 0,0
bindtime = 1
removetime = 20
supermove = 0
scale = 0.6,0.6
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 9150]
type = Explod
triggerall = ishelper(22171)
trigger1 = animelem = 5
anim = 22102
id = 1415
sprpriority = 2
postype = p1
pos = 0,0
bindtime = 1
removetime = 25
supermove = 0
scale = 0.3,0.3
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 9150]
type = EnvShake
triggerall = ishelper(22171)
trigger1 = animelem = 3
time = 20
ampl = -18
freq = 95
phase = 95

[State 9150]
type = Projectile
triggerall = ishelper(22171)
projid = 359001
projanim = 22137
projpriority = 999999999
projsprpriority = 999999999
projhitanim = -1
projremove = 0
projremovetime = 1
projhits = 1
trigger1 = movecontact = 0
attr = S, HA
animtype  = hard
damage    = 1, 0
getpower = 61,61
guardflag = H
hitflag = MAFD
pausetime = 2,4
sparkno = -1;s22109 + root,var(35)
sparkxy = -999,-999
guardsound = s121,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = 0,-3.0
air.velocity = 0,-3.0
fall = 1
air.fall = 1
fall.recover = 0
yaccel = .5

[state 9150]
type = varset
triggerall = ishelper(22171)
trigger1 = animtime = 0
v = 6
value = 0

[state 9150]
type = destroyself
triggerall = ishelper(22171)
trigger1 = animtime = 0

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ORB-CANNON [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[state 9150]
type = StateTypeSet
trigger1 = ishelper(3111)
statetype = A
movetype = I
physics = N
persistent = 0
ignorehitpause = 1
sprpriority = 99

[state 9150]
type = VelSet
trigger1 = ishelper(3111)
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = VelSet
trigger1 = ishelper(3111)
trigger1 = animelem = 34
x = 50
y = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = changeanim
trigger1 = ishelper(3111)
value = 3100
persistent = 0
ignorehitpause = 1

[state 9150]
type = ctrlset
trigger1 = ishelper(3111)
value = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = hitoverride
trigger1 = ishelper(3111)
time = 1
attr = SCA,AA,AT,AP
slot = 1
stateno = 150
ignorehitpause = 1

[state 9150]
type = playsnd
triggerall = ishelper(3111)
trigger1 = time = 0
value = 10000,61
volume = 255
channel = 2

[state 9150]
type = nothitby
trigger1 = ishelper(3111)
value = SCA
time = -1
ignorehitpause = 1

[state 9150]
type = Projectile
triggerall = ishelper(3111)
trigger1 = time >= 34
attr = S,SP
animtype  = hard
damage = 70+random%20,1+random%20
getpower = 20,20
guardflag = M
projanim = 3101
projid = 3111
projremove = 1
projremovetime = 15
projpriority = 2147483647
projsprpriority = 2147483647
postype = p1
offset = 0,0
numhits = 1
pausetime = 2,4
hitsound   = s225,1
sparkno = s10160
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -2,0
air.juggle = 8
air.velocity = -2,0
envshake.time = 4
envshake.freq = 180
envshake.ampl = 8
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Explod
triggerall = ishelper(3111)
trigger1 = time = 34
anim = 3102
id = 3102
sprpriority = 3
postype = right
Pos = -180,116
bindtime = -1
supermove = 0
ownpal = 0
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1
trans = add

[state 9150]
type = destroyself
triggerall = ishelper(3111)
trigger1 = animtime = 0

[state 9150]
type = DestroySelf
triggerall = ishelper(3111)
trigger1 = root,projcontacttime(3111) = 1
trigger2 = time > 65

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ORB-CANNON [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[state 9150]
type = StateTypeSet
trigger1 = ishelper(3112)
statetype = A
movetype = I
physics = N
persistent = 0
ignorehitpause = 1
sprpriority = 99

[state 9150]
type = VelSet
trigger1 = ishelper(3112)
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = VelSet
trigger1 = ishelper(3112)
trigger1 = animelem = 34
x = 50
y = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = changeanim
trigger1 = ishelper(3112)
value = 3100
persistent = 0
ignorehitpause = 1

[state 9150]
type = ctrlset
trigger1 = ishelper(3112)
value = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = hitoverride
trigger1 = ishelper(3112)
time = 1
attr = SCA,AA,AT,AP
slot = 1
stateno = 150
ignorehitpause = 1

[state 9150]
type = playsnd
triggerall = ishelper(3112)
trigger1 = time = 0
value = 10000,61
volume = 255
channel = 2

[state 9150]
type = nothitby
trigger1 = ishelper(3112)
value = SCA
time = -1
ignorehitpause = 1

[state 9150]
type = Projectile
triggerall = ishelper(3112)
trigger1 = time >= 34
attr = S,SP
animtype  = hard
damage = 70+random%20,1+random%20
getpower = 20,20
guardflag = M
projanim = 3101
projid = 3112
projremove = 1
projremovetime = 15
projpriority = 2147483647
projsprpriority = 2147483647
postype = p1
offset = 0,0
numhits = 1
pausetime = 2,4
hitsound   = s225,1
sparkno = s10160
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -2,0
air.juggle = 8
air.velocity = -2,0
envshake.time = 4
envshake.freq = 180
envshake.ampl = 8
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Explod
triggerall = ishelper(3112)
trigger1 = time = 34
anim = 3102
id = 3102
sprpriority = 3
postype = right
Pos = -180,116
bindtime = -1
supermove = 0
ownpal = 0
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1
trans = add

[state 9150]
type = destroyself
triggerall = ishelper(3112)
trigger1 = animtime = 0

[state 9150]
type = DestroySelf
triggerall = ishelper(3112)
trigger1 = root,projcontacttime(3112) = 1
trigger2 = time > 65

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ORB-CANNON [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[state 9150]
type = StateTypeSet
trigger1 = ishelper(3113)
statetype = A
movetype = I
physics = N
persistent = 0
ignorehitpause = 1
sprpriority = 99

[state 9150]
type = VelSet
trigger1 = ishelper(3113)
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = VelSet
trigger1 = ishelper(3113)
trigger1 = animelem = 34
x = 50
y = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = changeanim
trigger1 = ishelper(3113)
value = 3100
persistent = 0
ignorehitpause = 1

[state 9150]
type = ctrlset
trigger1 = ishelper(3113)
value = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = hitoverride
trigger1 = ishelper(3113)
time = 1
attr = SCA,AA,AT,AP
slot = 1
stateno = 150
ignorehitpause = 1

[state 9150]
type = playsnd
triggerall = ishelper(3113)
trigger1 = time = 0
value = 10000,61
volume = 255
channel = 2

[state 9150]
type = nothitby
trigger1 = ishelper(3113)
value = SCA
time = -1
ignorehitpause = 1

[state 9150]
type = Projectile
triggerall = ishelper(3113)
trigger1 = time >= 34
attr = S,SP
animtype  = hard
damage = 70+random%20,1+random%20
getpower = 20,20
guardflag = M
projanim = 3101
projid = 3113
projremove = 1
projremovetime = 15
projpriority = 2147483647
projsprpriority = 2147483647
postype = p1
offset = 0,0
numhits = 1
pausetime = 2,4
hitsound   = s225,1
sparkno = s10160
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -2,0
air.juggle = 8
air.velocity = -2,0
envshake.time = 4
envshake.freq = 180
envshake.ampl = 8
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Explod
triggerall = ishelper(3113)
trigger1 = time = 34
anim = 3102
id = 3102
sprpriority = 3
postype = right
Pos = -180,-36
bindtime = -1
supermove = 0
ownpal = 0
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1
trans = add

[state 9150]
type = destroyself
triggerall = ishelper(3113)
trigger1 = animtime = 0

[state 9150]
type = DestroySelf
triggerall = ishelper(3113)
trigger1 = root,projcontacttime(3113) = 1
trigger2 = time > 65

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ORB-CANNON [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[state 9150]
type = StateTypeSet
trigger1 = ishelper(3114)
statetype = A
movetype = I
physics = N
persistent = 0
ignorehitpause = 1
sprpriority = 99

[state 9150]
type = VelSet
trigger1 = ishelper(3114)
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = VelSet
trigger1 = ishelper(3114)
trigger1 = animelem = 34
x = 50
y = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = changeanim
trigger1 = ishelper(3114)
value = 3100
persistent = 0
ignorehitpause = 1

[state 9150]
type = ctrlset
trigger1 = ishelper(3114)
value = 0
persistent = 0
ignorehitpause = 1

[state 9150]
type = hitoverride
trigger1 = ishelper(3114)
time = 1
attr = SCA,AA,AT,AP
slot = 1
stateno = 150
ignorehitpause = 1

[state 9150]
type = playsnd
triggerall = ishelper(3114)
trigger1 = time = 0
value = 10000,61
volume = 255
channel = 2

[state 9150]
type = nothitby
trigger1 = ishelper(3114)
value = SCA
time = -1
ignorehitpause = 1

[state 9150]
type = Projectile
triggerall = ishelper(3114)
trigger1 = time >= 34
attr = S,SP
animtype  = hard
damage = 70+random%20,1+random%20
getpower = 20,20
guardflag = M
projanim = 3101
projid = 3114
projremove = 1
projremovetime = 15
projpriority = 2147483647
projsprpriority = 2147483647
postype = p1
offset = 0,0
numhits = 1
pausetime = 2,4
hitsound   = s225,1
sparkno = s10160
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -2,0
air.juggle = 8
air.velocity = -2,0
envshake.time = 4
envshake.freq = 180
envshake.ampl = 8
supermovetime = 2147483647
pausemovetime = 2147483647

[state 9150]
type = Explod
triggerall = ishelper(3114)
trigger1 = time = 34
anim = 3102
id = 3102
sprpriority = 3
postype = right;p1
Pos = -180,196
bindtime = -1
supermove = 0
ownpal = 0
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
persistent = 1
ignorehitpause = 1
trans = add

[state 9150]
type = destroyself
triggerall = ishelper(3114)
trigger1 = animtime = 0

[state 9150]
type = DestroySelf
triggerall = ishelper(3114)
trigger1 = root,projcontacttime(3114) = 1
trigger2 = time > 65

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd TAMA [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 9151]

[state 9151]
type = ScreenBound
trigger1 = ishelper(150)
trigger2 = ishelper(151)
value = 0
movecamera = 0,0
ignorehitpause = 1

[state 9151]
type = PlayerPush
trigger1 = ishelper(150)
trigger2 = ishelper(151)
value = 0
ignorehitpause = 1

[state 9151]
type = changeanim
trigger1 = ishelper(150)
trigger2 = ishelper(151)
value = 40000
ignorehitpause = 1

[state 9151]
type = BindToParent
trigger1 = ishelper(150)
pos = sin(gametime*0.01)*cos(gametime*0.05)*75,cos((gametime*0.015) - (Pi/4))*sin((gametime*0.05) - (Pi/1))*70 - 70

[state 9151]
type = BindToParent
trigger1 = ishelper(151)
pos = sin(gametime*0.01)*cos(gametime*0.05)*-75 + -10,cos((gametime*0.015) - (Pi/4))*sin((gametime*0.05) + (Pi/1))*-70 + -70

[state 9151]
Type = PalFX
trigger1 = ishelper(150)
trigger2 = ishelper(151)
time = 1
Mul = 128,128,128

[state 9151]
type = nothitby
trigger1 = ishelper(150)
trigger2 = ishelper(151)
value = SCA
ignorehitpause = 1

[state 9151]
type = Explod
triggerall = gametime%4 = 0
trigger1 = ishelper(150)
anim = 1217
id = 10024
sprpriority = 0
ownpal = 0
trans = add
scale = 0.15,0.15
pausemovetime = 2000000000
supermovetime = 2000000000

[state 9151]
type = Explod
triggerall = gametime%4 = 0
trigger1 = ishelper(151)
anim = 1217
id = 10024
sprpriority = 0
ownpal = 0
trans = add
scale = 0.15,0.15
pausemovetime = 2000000000
supermovetime = 2000000000

[state 9151]
type = RemoveExplod
triggerall = !root,alive
trigger1 = ishelper(150)
trigger2 = ishelper(151)
ID = 10024

[state 9151]
type = varset
triggerall = var(8) > 20
trigger1 = ishelper(150)
trigger2 = ishelper(151)
var(8) = 0

[state 9151]
type = varset
triggerall = var(8) = 0
trigger1 = ishelper(150)
trigger2 = ishelper(151)
var(7) = 56

[state 9151]
type = varadd
trigger1 = ishelper(150)
trigger2 = ishelper(151)
var(7) = 10

[state 9151]
type = varset
triggerall = var(8) = 0
trigger1 = ishelper(150)
trigger2 = ishelper(151)
fvar(0) = 0

[state 9151]
type = varadd
trigger1 = ishelper(150)
trigger2 = ishelper(151)
fvar(0) = 0.006

[state 9151]
type = varadd
trigger1 = ishelper(150)
trigger2 = ishelper(151)
var(8) = 1

[state 9151]
type = AssertSpecial
trigger1 = ishelper(150)
trigger2 = ishelper(151)
flag = invisible

[state 9151]
type = ScreenBound
trigger1 = ishelper(150)
trigger2 = ishelper(151)
value = 0
movecamera = 0,0
ignorehitpause = 1

[state 9151]
type = PlayerPush
trigger1 = ishelper(150)
trigger2 = ishelper(151)
value = 0
ignorehitpause = 1

[state 9151]
type = changeanim
trigger1 = ishelper(150)
trigger2 = ishelper(151)
value = 40000
ignorehitpause = 1

[state 9151]
type = BindToParent
trigger1 = ishelper(150)
pos = sin(gametime*0.01)*cos(gametime*0.05)*75,cos((gametime*0.015) - (Pi/4))*sin((gametime*0.05) - (Pi/1))*70 - 70

[state 9151]
type = BindToParent
trigger1 = ishelper(151)
pos = sin(gametime*0.01)*cos(gametime*0.05)*-75 + -10,cos((gametime*0.015) - (Pi/4))*sin((gametime*0.05) + (Pi/1))*-70 + -70

[state 9151]
Type = PalFX
trigger1 = ishelper(150)
trigger2 = ishelper(151)
time = 1
Mul = 128,128,128

[state 9151]
type = nothitby
trigger1 = ishelper(150)
trigger2 = ishelper(151)
value = SCA
ignorehitpause = 1

[state 9151]
type = Explod
triggerall = gametime%4 = 0
trigger1 = ishelper(150)
anim = 1217
id = 10024
sprpriority = 0
ownpal = 0
trans = add
scale = 0.15,0.15
pausemovetime = 2000000000
supermovetime = 2000000000

[state 9151]
type = Explod
triggerall = gametime%4 = 0
trigger1 = ishelper(151)
anim = 1217
id = 10024
sprpriority = 0
ownpal = 0
trans = add
scale = 0.15,0.15
pausemovetime = 2000000000
supermovetime = 2000000000

[state 9151]
type = RemoveExplod
triggerall = !root,alive
trigger1 = ishelper(150)
trigger2 = ishelper(151)
ID = 10024

[state 9151]
type = varset
triggerall = var(8) > 20
trigger1 = ishelper(150)
trigger2 = ishelper(151)
var(8) = 0

[state 9151]
type = varset
triggerall = var(8) = 0
trigger1 = ishelper(150)
trigger2 = ishelper(151)
var(7) = 56

[state 9151]
type = varadd
trigger1 = ishelper(150)
trigger2 = ishelper(151)
var(7) = 10

[state 9151]
type = varset
triggerall = var(8) = 0
trigger1 = ishelper(150)
trigger2 = ishelper(151)
fvar(0) = 0

[state 9151]
type = varadd
trigger1 = ishelper(150)
trigger2 = ishelper(151)
fvar(0) = 0.006

[state 9151]
type = varadd
trigger1 = ishelper(150)
trigger2 = ishelper(151)
var(8) = 1

[state 9151]
type = AssertSpecial
trigger1 = ishelper(150)
trigger2 = ishelper(151)
flag = invisible

[state 9151]
type = destroyself
trigger1 = root,var(17) != 1

;---------------------------------------------------------------------------
[Statedef 1234]
type    = A
movetype= H
physics = N
anim = 5050
velset = -4,-0.5

[State 1234]
type = NotHitBy
trigger1 = 1
value = S,SP

[State 1234]
type = SelfState
trigger1 = time > 10
value = 5050

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd Standing Hard Kick w/ Projectile [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 241]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 60
ctrl = 0
velset = 0,0
anim = 240
sprpriority = 2

[State 241]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

;-------------------------
;-------------------------
[State 1]
type = Projectile
triggerall = palno = 12
trigger1 = time = 1
projanim = 95755
projid = 95755
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 0.4,0.4
projremanim = -1
projsprpriority = 8
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = 20,-25
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 2]
type = Projectile
triggerall = palno = 12
trigger1 = time = 3
projanim = 95755
projid = 95755
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 0.4,0.4
projremanim = -1
projsprpriority = 8
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = 60,-63
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 3]
type = Projectile
triggerall = palno = 12
trigger1 = time = 5
projanim = 95755
projid = 95755
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 0.4,0.4
projremanim = -1
projsprpriority = 8
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = 65,-116
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 4]
type = Projectile
triggerall = palno = 12
trigger1 = time = 7
projanim = 95755
projid = 95755
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 0.4,0.4
projremanim = -1
projsprpriority = 8
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = 24,-155
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 5]
type = Projectile
triggerall = palno = 12
trigger1 = time = 9
projanim = 95755
projid = 95755
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 0.4,0.4
projremanim = -1
projsprpriority = 8
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = -32,-155
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 6]
type = Projectile
triggerall = palno = 12
trigger1 = time = 11
projanim = 95755
projid = 95755
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 0.4,0.4
projremanim = -1
projsprpriority = 8
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = -80,-130
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 7]
type = Projectile
triggerall = palno = 12
trigger1 = time = 13
projanim = 95755
projid = 95755
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 0.4,0.4
projremanim = -1
projsprpriority = 8
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = -98,-80
velocity = 0,0
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 8]
type = Projectile
triggerall = palno = 12
trigger1 = time = 15
projanim = 95755
projid = 95755
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 0.4,0.4
projremanim = -1
projsprpriority = 8
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = -77,-30
velocity = 0,0
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

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

;-------------------------
;-------------------------
[State 1]
type = Projectile
triggerall = palno = 12
trigger1 = time = 1
projanim = 95756
projid = 95756
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 1,1
projremanim = -1
projsprpriority = 7
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = 20,-25
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 2]
type = Projectile
triggerall = palno = 12
trigger1 = time = 3
projanim = 95756
projid = 95756
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 1,1
projremanim = -1
projsprpriority = 7
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = 60,-63
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 3]
type = Projectile
triggerall = palno = 12
trigger1 = time = 5
projanim = 95756
projid = 95756
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 1,1
projremanim = -1
projsprpriority = 7
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = 65,-116
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 4]
type = Projectile
triggerall = palno = 12
trigger1 = time = 7
projanim = 95756
projid = 95756
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 1,1
projremanim = -1
projsprpriority = 7
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = 24,-155
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 5]
type = Projectile
triggerall = palno = 12
trigger1 = time = 9
projanim = 95756
projid = 95756
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 1,1
projremanim = -1
projsprpriority = 7
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = -32,-155
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 6]
type = Projectile
triggerall = palno = 12
trigger1 = time = 11
projanim = 95756
projid = 95756
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 1,1
projremanim = -1
projsprpriority = 7
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = -80,-130
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 7]
type = Projectile
triggerall = palno = 12
trigger1 = time = 13
projanim = 95756
projid = 95756
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 1,1
projremanim = -1
projsprpriority = 7
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = -98,-80
velocity = 0,0
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

[State 8]
type = Projectile
triggerall = palno = 12
trigger1 = time = 15
projanim = 95756
projid = 95756
projremove = 0
projpriority = 1
projhitanim = -1
projscale = 1,1
projremanim = -1
projsprpriority = 7
projshadow = 0,0,0
projremovetime = 25
projheightbound = -10000,10000
ownpal = 0
offset = -77,-30
velocity = 0,0
sparkno = -1
velocity = 0,0
attr = S, SP
animtype = Hard
damage = 0,0
hitflag = MAFPD
guardflag = M
hitsound = -1
guardsound = -1
pausetime = 0,0
sparkxy = -1

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

[State 241]
type = PlaySnd
trigger1 = animelem = 4
value = 2562, 11

[State 241]
type = Explod
trigger1 = animelem = 2
anim = 241
id = 241
sprpriority = 5
postype = p1
pos = 0,0
bindtime = 1
supermove = 1
ignorehitpause = 0
under = 0
ownpal = 1
SuperMoveTime = 999
PauseMoveTime = 999

[State 241]
type = Veladd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 80 || projguarded35600 >= 1 && FrontEdgeDist <= 80
x = -5.4

[State 241]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 2

[State 241]
type = Projectile
trigger1 = AnimElem = 3 || AnimElem = 4 || AnimElem = 5
attr = S, NA
projanim = 22137
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.035 * enemy,Const(data.life)) ,Ceil(0.008 * enemy,Const(data.life)) * var(39)
getpower = 25,25
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,1
sparkno = s22109 + var(35)
sparkxy = 50, -85
hitsound   = s2562,10
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -2.5,-4
air.velocity = -2.5,-4
fall = 1
fall.recover = 0
nochainID = 1200

[state 241]
type = posadd
trigger1 = animelem = 3
x = 4

[State 241]
type = Helper
trigger1 = Time = 10
name = "supia"
stateno = 11110
ID = 11110
pos = 60,-100
keyctrl = 0
postype = p1
supermovetime = 99999999
pausemovetime = 99999999
IgnoreHitPause = 1
Persistent = 0

[State 241]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd Projectile [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11110]
type    = S
movetype= I
physics = N
anim = 11101
velset = 0,0
ctrl = 0
sprpriority = 2

[State 11110]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause = 1

[State 11110]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 11100
ignorehitpause = 1

[State 11100]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11110]
type = trans
trigger1 = 1
trans = add
ignorehitpause = 1

[State 11110]
type = AngleDraw
trigger1 = 1
scale = 1.0,1.0

[State 11110]
type = AngleAdd
trigger1 = 1
value = -7

[State 11110]
type = varset
trigger1 = enemy,pos x=[-320,320]
trigger1 = enemy,pos y=[-480,60]
trigger1 = enemy,pos x-pos x<0
trigger2 = enemy,pos x!=[-320,320]
trigger2 = enemy,pos y!=[-480,60]
trigger2 = enemynear,pos x-pos x<0
v = 0
value = 1
ignorehitpause = 1

[State 11110]
type = varset
trigger1 = enemy,pos x=[-320,320]
trigger1 = enemy,pos y=[-480,60]
trigger1 = enemy,pos x-pos x>=0
trigger2 = enemy,pos x!=[-320,320]
trigger2 = enemy,pos y!=[-480,60]
trigger2 = enemynear,pos x-pos x>=0
v = 0
value = 0
ignorehitpause = 1

[State 11110]
Type = Turn
Trigger1 = facing = -1
ignorehitpause = 1

[State 11110]
type = VelSet
trigger1 = var(0)=0
x = time%40 * 0.1

[State 11110]
type = VelSet
trigger1 = var(0) =1
x = -time%40 * 0.1

[State 11110]
type = VelSet
trigger1 = p2bodydist Y <= 0
y = Sin((-gameTime*3)*Pi/180) - 0.5

[State 11110]
type = VelSet
trigger1 = p2bodydist Y > 0
y = -Sin((gameTime*3)*Pi/180) + 0.5

[State 11100]
type = Projectile
trigger1 = 1
attr = S, HP
projanim = 11205
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 1
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
animtype  = diagup
damage    = 0,0
getpower = 0,0
givepower = 0,0
guardflag = 
hitflag = MAFPD
pausetime = 0,0
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.5

[state 11100]
type = posset
trigger1 = !ishelper
y = 0

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

[state 11110]
type = changestate
trigger1 = MoveContact = 1
value = 11125

[state 11110]
type = changestate
trigger1 = time >= 80
trigger2 = p2bodydist X<20&&p2bodydist X>-20
trigger2 = p2bodydist Y<20&&p2bodydist Y>-20
value = 11125

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd Projectile [END STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11125]
type    = A
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 22162

[state 11125]
type = playsnd
trigger1 = time = 0
value = 4000,20
volume = 255

[state 11125]
type = nothitby
trigger1 = 1
value = SCA

[State 11125]
type = Explod
trigger1 = 1
anim = 2110
sprpriority = 5
postype = p1
pos = 0,0
random = 30,30
vel = -7+ (random%14),-7 + (random%14)
facing = -1
trans = add
scale = 0.25,0.25
ignorehitpause = 1

[State 11125]
type = Explod
trigger1 = 1
anim = 22131
postype = p1
pos = 0,0
vel = -7+ (random%14),-7 + (random%14)
facing = -1
id = 22131
scale = 0.25,0.25
ignorehitpause = 1

[State 11125]
type = Explod
trigger1 = 1
anim = 22131
postype = p1
pos = 0,0
vel = -6+ (random%12),-6 + (random%12)
facing = -1
id = 22131
scale = 0.25,0.25
ignorehitpause = 1

[State 11125]
type = Explod
trigger1 = 1
anim = 22131
postype = p1
pos = 0,0
vel = -5+ (random%10),-5 + (random%10)
facing = -1
id = 22131
scale = 0.25,0.25
ignorehitpause = 1

[State 11125]
type = Explod
trigger1 = time = 0
anim = 221591
sprpriority = -7
postype = p1
pos = 0,0
ignorehitpause = 1
scale = .5,.5

[State 11125]
type = Projectile
trigger1 = time = 0
attr = S, NA
projanim = 22179
projhitanim = -1
projid = 35902
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 1
projremovetime = 10
postype = p1
offset = 0,0
velocity = 0
animtype  = diagup
damage    = Ceil(0.08 * enemy,Const(data.life)) ,Ceil(0.025 * enemy,Const(data.life)) * var(39)
getpower = 10,5
givepower = 0,0
guardflag = M
hitflag = MAFPD
pausetime = 0,4
sparkno = -1
sparkxy = 0,0
hitsound   = s225,1
guard.sparkno = -1
guardsound = s120,0
ground.type = hard
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.5
fall = 1
fall.recover = 0
juggle = 15

[state 11125]
type = destroyself
trigger1 = animtime = 0
ignorehitpause = 1

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;LGMO3rd Dash [SPECIAL STATE]
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[statedef 1900]
type = S
movetype = A
physics = N
anim = 1900
ctrl = 0
juggle = 7
poweradd= 0
velset = 0,0
sprpriority = 2

[State 1900]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[state 1900]
type = PlaySnd
trigger1 = animelem = 1
value = s2562,30

[state 1900]
type = Explod
trigger1 = animelem = 10
anim = 1901
sprpriority = 1
postype = p1
pos = 0,0
bindtime = -1
ontop = 1
ownpal = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 1900]
type = trans
triggerall = palno = 12
trigger1 = time <= 20
trans = addalpha
alpha = 250-time*18,time*18

[state 1900]
type = ChangeState
trigger1 = AnimTime = 0
value = 1905

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;LGMO3rd Dash [SPECIAL STATE]
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[statedef 1905]
type = S
movetype = A
physics = N
anim = 1905
ctrl = 0
juggle = 7
velset = 80,0
sprpriority = 2

[State 1905]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[state 1905]
type = NotHitBy
trigger1  = 1
value = SCA

[state 1905]
type = Explod
trigger1 = animelemtime(1) = 3
anim = 8026
id = 8026
sprpriority = 0
postype = p1
pos = -130,0
vel = 0,0
accel = 0,0
bindtime = 47
ontop = 1
facing = 1
scale = 1.5,1.5
removetime = 47
supermovetime = 2147483647
pausemovetime = 2147483647

[state 1905]
type = pause
trigger1 = projhit1906 = 1 || projguarded1906 = 1
time = 2

[state 1905]
type = Projectile
trigger1 = AnimElem = 1
attr = C,HA
projanim = 1906
projid = 1906
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 1
projremovetime = 10
postype = p1
offset = 0,0
velocity = 50
numhits = 1
animtype  = hard
damage = 1+random%20,10+random%20
getpower = 25,25
givepower = 0,0
guardflag = H
hitflag = MAFPD
pausetime = 2,1
sparkno = -1
sparkxy = -5, -85
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.5,-8
air.velocity = -0.5,-8
yaccel = .5
envshake.time = 7
envshake.ampl = 7
fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 1905]
type = helper
triggerall = name ="Gold Orochi"
trigger1 = projcontact1906 = 1
trigger1 = numhelper(1920) = 0
id = 1920
name = "lash"
sprpriority = 2
pos = 0,0
postype = p2
stateno = 9150
juggle = 12
helpertype = player
keyctrl = 0 
ownpal = 0
supermovetime = 2147483647
pausemovetime = 2147483647

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

[state 1905]
type = ChangeState
trigger1 = animtime = 0
value = 1910

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;LGMO3rd Dash [SPECIAL STATE]
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[statedef 1910]
type = S
movetype = A
physics = N
anim = 1910
ctrl = 0
juggle = 8
velset = 0,0
sprpriority = 2

[State 1910]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[state 1910]
type = trans
trigger1 = time <= 30
trans = addalpha
alpha = time*8,250-time*8

[state 1910]
type = Explod
trigger1 = time = 0
anim = 1911
sprpriority = 1
postype = p1
pos = 0,0
bindtime = -1
ontop = 1
ownpal = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 1910]
type = ChangeState
trigger1 = animTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;LGMO3rd Dodge [SPECIAL STATE]
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[Statedef 700]
poweradd= 0
ctrl = 0
anim = 700
velset = 0,0
ctrl = 0
sprpriority = 2

[State 700]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[state 700]
type = playerpush
trigger1 = 1
value = 0

[state 700]
type = posset
trigger1 = time = 0
y = 0

[state 700]
type = PlaySnd
trigger1 = time = 0
value = 190,1

[state 700]
type = velset
trigger1 = Time = 0
x = 0

[state 700]
type = velset
trigger1 = animelem = 2
x = 8

[state 700]
type = velset
trigger1 = animelem = 4
x = 0

[State 700]
type = Explod
trigger1 = time = 0
anim = 19101
id = 19101
sprpriority = 5
postype = p1
pos = 0,0
bindtime = 1
supermove = 0
ignorehitpause = 0
under = 0

[state 700]
type = AfterImage
trigger1 = time = 0
time = 15
trans = add1
timegap = 2
framegap = 2
length = 6
palbright = 12,12,12
palcontrast = 255,255,255
palpostbright = 0,0,0
paladd = 0,0,0
palmul = 1,1,1

[state 700] 
type = turn 
triggerall = animelem = 4
trigger1 = p2dist x< 0 
value = 1

[state 700]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;LGMO3rd Dodge [SPECIAL STATE]
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[Statedef 701]
poweradd= 0
ctrl = 0
anim = 701
sprpriority = 2
velset = 0,0

[State 701]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[state 701]
type = posset
trigger1 = time = 0
y = 0

[state 701]
type = playerpush
trigger1 = 1
value = 0

[State 701]
type = PlaySnd
trigger1 = time = 0
value = 190,1

[State 701]
type = velset
trigger1 = animelem = 2
x = -9

[State 701]
type = velset
trigger1 = animelem = 5
x = 0

[State 701]
type = Explod
trigger1 = time = 0
anim = 19101
id = 19102
sprpriority = 5
postype = p1
pos = 0,0
bindtime = 1
supermove = 0
ignorehitpause = 0
under = 0

[State 701]
type = AfterImage
trigger1 = time = 0
time = 15
trans = add1
timegap = 2
framegap = 2
length = 6
palbright = 0,0,0
palcontrast = 255,255,255
palpostbright = 0,0,0
paladd = 0,0,0
palmul = 1,1,1

[State 701]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;LGMO3rd STAND GEAR [SPECIAL STATE]
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[statedef 291]
type    = S
movetype= A
physics = N
juggle  = 8
velset = 0,0
anim = 290
ctrl = 0

[State 291]
type = Playsnd
trigger1 = time = 13
value = 2562, 27
volume = 255
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 291]
type = Explod
triggerall = time >= 0
trigger1 = (GameTime%8) = 1
anim = 10007
sprpriority = 10
postype = p1
pos = 180,-80
bindtime = 1
under = 0
random = 300,100
persistent = 1
ignorehitpause = 1
scale = 0.5,0.5
supermovetime = 2147483647
pausemovetime = 2147483647

[State 291]
type = Explod
triggerall = time >= 10
trigger1 = (GameTime%3) = 1
anim = 10010
ID = 10010
sprpriority = 10
postype = p1
pos = 180,-70
bindtime = 1
under = 0
random = 300,50
persistent = 1
ignorehitpause = 1
scale = 0.75,0.75
supermovetime = 2147483647
pausemovetime = 2147483647

[State 291]
type = Explod
trigger1 = time = 13
anim = 2113
id = 11110
sprpriority = 2
postype = p1
pos = 35,-75
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = 0.5,0.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 291]
type = Explod
trigger1 = time = 15
anim = 2113
id = 11110
sprpriority = 2
postype = p1
pos = 125,-125
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = 0.5,0.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 291]
type = Explod
trigger1 = time = 17
anim = 2113
id = 11110
sprpriority = 2
postype = p1
pos = 180,-40
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = 0.5,0.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 291]
type = Explod
trigger1 = time = 19
anim = 2113
id = 11110
sprpriority = 2
postype = p1
pos = 270,-90
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = 0.5,0.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 291]
type = Explod
trigger1 = time = 13
anim = 2112
id = 111102
sprpriority = 3
postype = p1
pos = 35,-75
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = 0.5,0.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 291]
type = Explod
trigger1 = time = 15
anim = 2112
id = 111102
sprpriority = 3
postype = p1
pos = 125,-125
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = 0.5,0.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 291]
type = Explod
trigger1 = time = 17
anim = 2112
id = 111102
sprpriority = 3
postype = p1
pos = 180,-40
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = 0.5,0.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 291]
type = Explod
trigger1 = time = 19
anim = 2112
id = 111102
sprpriority = 3
postype = p1
pos = 270,-90
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = 0.5,0.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 291]
type = Projectile
trigger1 = time = 13
projID = 4302
projanim = 4302
projremove = 0
projpriority = 1
projscale = 0.25,0.25
projsprpriority = 4
projshadow = 0,0,0
projremovetime = 24
numhits = 1
getpower = 40
ownpal = 0
offset = 35,-75
velocity = 0, 0
attr = S, SP
animtype = UP
damage = 20+random%30,10+random%30
guardflag = M
hitflag = MAFD
pausetime = 2,4
hitsound = S225,1
guardsound = S120,0
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,0
ground.type = high
ground.hittime = 20
ground.slidetime = 20
ground.velocity = -4.5,-4.8
air.juggle = 2
air.velocity = -4.5,-4.8
fall = 1
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 291]
type = Projectile
trigger1 = time = 15
projID = 4302
projanim = 4302
projremove = 0
projpriority = 1
projscale = 0.25,0.25
projsprpriority = 4
projshadow = 0,0,0
projremovetime = 24
numhits = 1
getpower = 40
ownpal = 0
offset = 125,-125
velocity = 0, 0
attr = S, SP
animtype = UP
damage = 20+random%30,10+random%30
guardflag = M
hitflag = MAFD
pausetime = 2,4
hitsound = S225,1
guardsound = S120,0
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,0
ground.type = high
ground.hittime = 20
ground.slidetime = 20
ground.velocity = -4.5,-4.8
air.juggle = 2
air.velocity = -4.5,-4.8
fall = 1
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 291]
type = Projectile
trigger1 = time = 17
projID = 4302
projanim = 4302
projremove = 0
projpriority = 1
projscale = 0.25,0.25
projsprpriority = 4
projshadow = 0,0,0
projremovetime = 24
numhits = 1
getpower = 40
ownpal = 0
offset = 180,-40
velocity = 0, 0
attr = S, SP
animtype = UP
damage = 20+random%30,10+random%30
guardflag = M
hitflag = MAFD
pausetime = 2,4
hitsound = S225,1
guardsound = S120,0
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,0
ground.type = high
ground.hittime = 20
ground.slidetime = 20
ground.velocity = -4.5,-4.8
air.juggle = 2
air.velocity = -4.5,-4.8
fall = 1
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 291]
type = Projectile
trigger1 = time = 19
projID = 4302
projanim = 4302
projremove = 0
projpriority = 1
projscale = 0.25,0.25
projsprpriority = 4
projshadow = 0,0,0
projremovetime = 24
numhits = 1
getpower = 20
ownpal = 0
offset = 270,-90
velocity = 0, 0
attr = S, SP
animtype = UP
damage = 20+random%30,10+random%30
guardflag = M
hitflag = MAFD
pausetime = 2,4
hitsound = S225,1
guardsound = S120,0
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,0
ground.type = high
ground.hittime = 20
ground.slidetime = 20
ground.velocity = -4.5,-4.8
air.juggle = 2
air.velocity = -4.5,-4.8
fall = 1
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 291]
type = Changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;LGMO3rd AIR GEAR [SPECIAL STATE]
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[statedef 691]
type=A
physics=N
movetype=A
juggle  = 8
velset = 0,0
anim = 690
ctrl = 0

[State 690, VarSet]
type = VarAdd
trigger1 = !time
v = 46
value = 1
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 691]
type = Playsnd
trigger1 = time = 13
value = 2562,27
volume = 255
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 691]
type = Explod
triggerall = time >= 0
trigger1 = (GameTime%8) = 1
anim = 10007
sprpriority = 10
postype = p1
pos = 180,-80
bindtime = 1
under = 0
random = 300,100
persistent = 1
ignorehitpause = 1
scale = 0.5,0.5
supermovetime = 2147483647
pausemovetime = 2147483647

[State 691]
type = Explod
triggerall = time >= 10
trigger1 = (GameTime%3) = 1
anim = 10010
ID = 10010
sprpriority = 10
postype = p1
pos = 160,-70
bindtime = 1
under = 0
random = 300,50
persistent = 1
ignorehitpause = 1
scale = 0.75,0.75
supermovetime = 2147483647
pausemovetime = 2147483647

[State 691]
type = Explod
trigger1 = time = 13
anim = 2113
id = 11110
sprpriority = 2
postype = p1
pos = 35,-75
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = 0.5,0.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 691]
type = Explod
trigger1 = time = 15
anim = 2113
id = 11110
sprpriority = 2
postype = p1
pos = 125,-125
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = 0.5,0.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 691]
type = Explod
trigger1 = time = 17
anim = 2113
id = 11110
sprpriority = 2
postype = p1
pos = 180,-40
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = 0.5,0.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 691]
type = Explod
trigger1 = time = 19
anim = 2113
id = 11110
sprpriority = 2
postype = p1
pos = 270,-90
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = 0.5,0.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 691]
type = Explod
trigger1 = time = 13
anim = 2112
id = 111102
sprpriority = 3
postype = p1
pos = 35,-75
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = .5,.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 691]
type = Explod
trigger1 = time = 15
anim = 2112
id = 111102
sprpriority = 3
postype = p1
pos = 125,-125
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
supermovetime = 2147483647
pausemovetime = 2147483647
scale = .5,.5

[State 691]
type = Explod
trigger1 = time = 17
anim = 2112
id = 111102
sprpriority = 3
postype = p1
pos = 180,-40
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = .5,.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 691]
type = Explod
trigger1 = time = 19
anim = 2112
id = 111102
sprpriority = 3
postype = p1
pos = 270,-90
vel = 0,0
trans = add
bindtime = 1
removetime = 26
supermove = 1
scale = .5,.5
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 691]
type = Projectile
trigger1 = time = 13
projID = 4302
projanim = 4302
projremove = 0
projpriority = 1
projscale = 0.25,0.25
projsprpriority = 4
projshadow = 0,0,0
projremovetime = 24
numhits = 1
getpower = 40
ownpal = 0
offset = 35,-75
velocity = 0, 0
attr = S, SP
animtype = UP
damage = 20+random%30,10+random%30
guardflag = M
hitflag = MAFD
pausetime = 2,4
hitsound = S225,1
guardsound = S120,0
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,0
ground.type = high
ground.hittime = 20
ground.slidetime = 20
ground.velocity = -4.5,-4.8
air.juggle = 2
air.velocity = -4.5,-4.8
fall = 1
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 691]
type = Projectile
trigger1 = time = 15
projID = 4302
projanim = 4302
projremove = 0
projpriority = 1
projscale = 0.25,0.25
projsprpriority = 4
projshadow = 0,0,0
projremovetime = 24
numhits = 1
getpower = 40
ownpal = 0
offset = 125,-125
velocity = 0, 0
attr = S, SP
animtype = UP
damage = 20+random%30,10+random%30
guardflag = M
hitflag = MAFD
pausetime = 2,4
hitsound = S225,1
guardsound = S120,0
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,0
ground.type = high
ground.hittime = 20
ground.slidetime = 20
ground.velocity = -4.5,-4.8
air.juggle = 2
air.velocity = -4.5,-4.8
fall = 1
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 691]
type = Projectile
trigger1 = time = 17
projID = 4302
projanim = 4302
projremove = 0
projpriority = 1
projscale = 0.25,0.25
projsprpriority = 4
projshadow = 0,0,0
projremovetime = 24
numhits = 1
getpower = 40
ownpal = 0
offset = 180,-40
velocity = 0, 0
attr = S, SP
animtype = UP
damage = 20+random%30,10+random%30
guardflag = M
hitflag = MAFD
pausetime = 2,4
hitsound = S225,1
guardsound = S120,0
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,0
ground.type = high
ground.hittime = 20
ground.slidetime = 20
ground.velocity = -4.5,-4.8
air.juggle = 2
air.velocity = -4.5,-4.8
fall = 1
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 691]
type = Projectile
trigger1 = time = 19
projID = 4302
projanim = 4302
projremove = 0
projpriority = 1
projscale = 0.25,0.25
projsprpriority = 4
projshadow = 0,0,0
projremovetime = 24
numhits = 1
getpower = 20
ownpal = 0
offset = 270,-90
velocity = 0, 0
attr = S, SP
animtype = UP
damage = 20+random%30,10+random%30
guardflag = M
hitflag = MAFD
pausetime = 2,4
hitsound = S225,1
guardsound = S120,0
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 0,0
ground.type = high
ground.hittime = 20
ground.slidetime = 20
ground.velocity = -4.5,-4.8
air.juggle = 2
air.velocity = -4.5,-4.8
fall = 1
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 691]
type = Changestate
trigger1 = animtime = 0
value = 50
ctrl = 1
ignorehitpause = 1
persistent = 1
pausemovetime = 2147483647
supermovetime = 2147483647

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;LGMO3rd Skull Pillar [SPECIAL STATE]
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[statedef 1451]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 20
ctrl = 0
velset = 0,0
anim = 1451
sprpriority = 2

[State 1451]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[state 1451]
type = varset
triggerall = time = 0
triggerall = prevstateno != 1451
trigger1 = command = "x"
v = 5
value = 0

[state 1451]
type = varset
triggerall = time = 0
triggerall = prevstateno != 1451
trigger1 = command = "a"
v = 5
value = 1

[state 1451]
type = varset
triggerall = time = 0
triggerall = prevstateno != 1451
trigger1 = command = "y"
v = 5
value = 2

[state 1451]
type = varset
triggerall = time = 0
triggerall = prevstateno != 1451
trigger1 = command = "b"
v = 5
value = 3

[state 1451]
type = varset
trigger1 = time = 0
trigger1 = command = "z"
trigger1 = prevstateno != 1451
v = 5
value = 4

[state 1451]
type = varset
trigger1 = time != 0
trigger1 = command = "x"
v = 5
value = 0

[state 1451]
type = varset
triggerall = time != 0
trigger1 = command = "a"
v = 5
value = 1

[state 1451]
type = varset
triggerall = time != 0
trigger1 = command = "y"
v = 5
value = 2

[state 1451]
type = varset
triggerall = time != 0
trigger1 = command = "b"
v = 5
value = 3

[state 1451]
type = varset
triggerall = time != 0
trigger1 = command = "z"
v = 5
value = 4

[state 1451]
type = varset
trigger1 = time = 0
trigger1 = prevstateno != 1451
v = 18
value = 8

[state 1451]
type = varadd
trigger1 = time = 0
trigger1 = prevstateno = 1451
v = 18
value = -1

[state 1451]
type = varadd
trigger1 = time = 0
value = var(5)*50

[state 1451]
type = varset
trigger1 = prevstateno != 1451
v = 13
value = 0

[state 1451]
type = varset
trigger1 = prevstateno = 1451
v = 13
value = 1

[State 1451]
type = varrandom
trigger1 = 1
range = -55,55
v = 50

[State 1451]
type = varrandom
trigger1 = 1
range = 0,-60
v = 51

[state 1451]
type = varset
trigger1 = time = 0
v = 7
value = 0

[state 1451]
type = varset
triggerall = var(30) != 1
trigger1 = time != 0
trigger1 = (command = "x")||(command = "a")||(command = "y")||(command = "b")||(command = "z")
v = 7
value = 1

[State 1451]
type = Explod
trigger1 = animelemtime(1) = 0
anim = 2561
id = 2561
sprpriority = 9999
postype = p1
pos = -1,-118
bindtime = -1
supermove = 1
ignorehitpause = 1
under = 0
ownpal = 0
scale = 0.8,0.8

[state 1451]
type = helper
triggerall = name ="Gold Orochi"
trigger1 = Animelem = 1
id = 1410
persistent = 0
name = "hasira"
pos = 70*var(5)+40,0
postype = p1
stateno = 9150
helpertype = player
keyctrl = 0
ownpal = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 1451]
type = playsnd
trigger1 = animelem = 1
value = 2562,21
volume = 255

[state 1451]
type = changestate
triggerall = var(18) >= 0
trigger1 = (var(7) = 1)&&(time >=(17-((palno=12)*12))+((var(30)=1)*(38-((palno=12)*35))))
value = 1451

[state 1451]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd HOLD [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 802]
type    = S
movetype= A
physics = S
juggle  = 8
velset = 0,0
ctrl = 0
anim = 800
sprpriority = 2

[State 802]
type = Projectile
trigger1 = AnimElem = 1
trigger1 = p2stateno != 150 && 151 && 152 && 153 && 130 && 131 && 140
attr = S, NA
projanim = 22148
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 3
postype = p1
offset = 0,0
velocity = 0
numhits = 0
givepower = 0,0
hitflag = M
sparkno = -1
guard.sparkno = -1
guardsound = -1
p1facing = ifelse (command = "holdback", -1, 1) 
p2facing = 1  
p1stateno = 803
p2stateno = 807
fall = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 802]
type = ChangeState
trigger1 = AnimTime = 0
value = 215
ctrl = 0

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd HOLD [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 803]
type    = S
movetype= A
physics = N
juggle  = 8
velset = 0,0
ctrl = 0
anim = 806
sprpriority = 2

[State 803]
type = PlaySnd
trigger1 = time = 3
value = 800,0

[State 803]
type = PlaySnd
trigger1 = AnimElem = 2
value = 801,0

[State 803]
type = PlaySnd
trigger1 = animelemtime(6) = 6 || animelemtime(6) = 10 || animelemtime(6) = 20 || animelemtime(6) = 29
value = 2550, 0
volume = 0

[State 803]
type = PlaySnd
trigger1 = animelemtime(6) = 6 || animelemtime(6) = 10 || animelemtime(6) = 20 || animelemtime(6) = 29
value = 2562,9
volume = 250

[State 803]
type = EnvColor
trigger1 = animelemtime(6) = 6 || animelemtime(6) = 10 || animelemtime(6) = 20 || animelemtime(6) = 29
persistent = 1
ignorehitpause = 1
time = 2
value = 255,255,255
under = 1

[State 803]
type = EnvShake
trigger1 = animelemtime(6) = 6 || animelemtime(6) = 10 || animelemtime(6) = 20 || animelemtime(6) = 29
time = 12
ampl = 12
freq = 95
phase = 95

[State 803]
type = Hitadd
trigger1 = animelemtime(6) = 6 || animelemtime(6) = 10 || animelemtime(6) = 20 || animelemtime(6) = 29
value = 1

[State 803]
type = EnvColor
trigger1 = animelem = 5
persistent = 0
ignorehitpause = 1
time = 2
value = 255,255,255
under = 1

[State 803]
type = Explod
trigger1 = animelem = 6 || animelemtime(6) = 29
anim = 95755
sprpriority = 3
postype = p1
velset = 0,0
pos = 90,-135
bindtime = 1
supermove = 1
under = 0
ownpal = 1
scale = 0.5,0.5
supermovetime = 2147483647
pausemovetime = 2147483647

[State 803]
type = Explod
trigger1 = animelemtime(6) = 10
anim = 95755
sprpriority = 3
postype = p1
velset = 0,0
pos = 110,-100
bindtime = 1
supermove = 1
under = 0
ownpal = 1
scale = 0.5,0.5
supermovetime = 2147483647
pausemovetime = 2147483647

[State 803]
type = Explod
trigger1 = animelemtime(6) = 20
anim = 95755
sprpriority = 3
postype = p1
velset = 0,0
pos = 60,-80
bindtime = 1
supermove = 1
under = 0
ownpal = 1
scale = 0.5,0.5
supermovetime = 2147483647
pausemovetime = 2147483647

[State 803]
type = Explod
trigger1 = animelem = 6
anim = 22108
sprpriority = 2147483647
postype = p1
velset = 0,0
pos = 85,-110
bindtime = 1
supermove = 0
under = 0
ownpal = 1
scale = 0.75,0.75
supermovetime = 2147483647
pausemovetime = 2147483647

[State 803]
type = Explod
trigger1 = animelemtime(6) = 10
anim = 22108
sprpriority = 2147483647
postype = p1
velset = 0,0
pos = 110,-100
bindtime = 1
supermove = 0
under = 0
ownpal = 1
scale = 0.75,0.75
supermovetime = 2147483647
pausemovetime = 2147483647

[State 803]
type = Explod
trigger1 = animelemtime(6) = 20
anim = 22108
sprpriority = 2147483647
postype = p1
velset = 0,0
pos = 60,-80
bindtime = 1
supermove = 0
under = 0
ownpal = 1
scale = 0.75,0.75
supermovetime = 2147483647
pausemovetime = 2147483647

[State 803]
type = Explod
trigger1 = animelemtime(6) = 29
anim = 22108
sprpriority = 2147483647
postype = p1
velset = 0,0
pos = 90,-135
bindtime = 1
supermove = 0
under = 0
ownpal = 1
scale = 0.75,0.75
supermovetime = 2147483647
pausemovetime = 2147483647

[State 803]
type = Explod
trigger1 = animelem = 2
anim = 941
sprpriority = 2147483647
postype = p1
velset = 0,0
pos = 70,-150
bindtime = 1
supermove = 0
under = 0
ownpal = 1
ontop = 1
removetime = 80
scale = 0.75,0.75
supermovetime = 2147483647
pausemovetime = 2147483647

[State 803]
type = Explod
trigger1 = animelem = 2
anim = 943
sprpriority = 2147483647
postype = p1
velset = 0,0
pos = 85,-70
bindtime = 1
supermove = 0
under = 0
ownpal = 1
removetime = 80
scale = 0.75,0.75
supermovetime = 2147483647
pausemovetime = 2147483647

[State 803]
type = Explod
trigger1 = time = 90
anim = 942
sprpriority = 2147483647
postype = p1
velset = 0,0
pos = 70,-150
bindtime = 1
supermove = 0
under = 0
ownpal = 1
ontop = 1
removetime = 10
scale = 0.75,0.75
supermovetime = 2147483647
pausemovetime = 2147483647

[State 803]
type = Explod
trigger1 = time = 90
anim = 944
sprpriority = 2147483647
postype = p1
velset = 0,0
pos = 85,-70
bindtime = 1
supermove = 0
under = 0
ownpal = 1
ontop = 1
removetime = 10
scale = 0.75,0.75
supermovetime = 2147483647
pausemovetime = 2147483647

[State 803]
type = TargetBind
trigger1 = animelem = 1
pos = 62,0

[State 803]
type = targetstate
trigger1 = animelemtime(6) = 6
value = 808

[State 803]
type = TargetLifeAdd
trigger1 = animelemtime(6) = 6 || animelemtime(6) = 10 || animelemtime(6) = 20 || animelemtime(6) = 29
value = Ceil(-0.02 * enemy,Const(data.life))
absolute = 1

[State 803]
type = Width
trigger1 = 1
edge = 60,0

[state 803] 
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd HOLD [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 807]
type    = A
movetype= H
physics = N
velset = 0,0
sprpriority = 1

[State 807]
type = VarRangeSet
trigger1 = enemynear,name="Gold Orochi"&&enemynear,fvar(3)=1&&!ishelper&&name!="Gold Orochi"
value = 0

[State 807]
type = VarRangeSet
trigger1 = enemynear,name="Gold Orochi"&&enemynear,fvar(3)=1&&!ishelper&&name!="Gold Orochi"
fvalue = 0
IgnoreHitPause = 1

[State 807]
type = VarSet
trigger1 = enemynear,name="Gold Orochi"&&enemynear,fvar(3)=1&&!ishelper&&name!="Gold Orochi"
sysvar(1) = 0
IgnoreHitPause = 1

[State 807]
type = VarSet
trigger1 = enemynear,name="Gold Orochi"&&enemynear,fvar(3)=1&&!ishelper&&name!="Gold Orochi"
sysvar(2) = 0
IgnoreHitPause = 1

[State 807]
type = VarSet
trigger1 = enemynear,name="Gold Orochi"&&enemynear,fvar(3)=1&&!ishelper&&name!="Gold Orochi"
sysvar(3) = 0
IgnoreHitPause = 1

[State 807]
type = VarSet
trigger1 = enemynear,name="Gold Orochi"&&enemynear,fvar(3)=1&&!ishelper&&name!="Gold Orochi"
sysvar(4) = 0
IgnoreHitPause = 1

[State 807]
type = ChangeAnim2
Trigger1 = Time = 0
value = 807

[state 807]
type = velset
trigger1 = time = 20
x = -2
y = -3

[state 807]
type = veladd
trigger1 = vel x < 0
x = 0.1

[state 807]
type = veladd
trigger1 = vel y < 0
y = 0.1

[State 807]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd HOLD [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 808]
type    = A
movetype= H
physics = N
velset = 0,0
sprpriority = 1

[State 808]
type = VarRangeSet
trigger1 = enemynear,name="Gold Orochi"&&enemynear,fvar(3)=1&&!ishelper&&name!="Gold Orochi"
value = 0

[State 808]
type = VarRangeSet
trigger1 = enemynear,name="Gold Orochi"&&enemynear,fvar(3)=1&&!ishelper&&name!="Gold Orochi"
fvalue = 0
IgnoreHitPause = 1

[State 808]
type = VarSet
trigger1 = enemynear,name="Gold Orochi"&&enemynear,fvar(3)=1&&!ishelper&&name!="Gold Orochi"
sysvar(1) = 0
IgnoreHitPause = 1

[State 808]
type = VarSet
trigger1 = enemynear,name="Gold Orochi"&&enemynear,fvar(3)=1&&!ishelper&&name!="Gold Orochi"
sysvar(2) = 0
IgnoreHitPause = 1

[State 808]
type = VarSet
trigger1 = enemynear,name="Gold Orochi"&&enemynear,fvar(3)=1&&!ishelper&&name!="Gold Orochi"
sysvar(3) = 0
IgnoreHitPause = 1

[State 808]
type = VarSet
trigger1 = enemynear,name="Gold Orochi"&&enemynear,fvar(3)=1&&!ishelper&&name!="Gold Orochi"
sysvar(4) = 0
IgnoreHitPause = 1

[State 808]
type = ChangeAnim2
trigger1 = Time = 0
value = 808

[State 808]
type = ChangeAnim
trigger1 = Time = 30
value = 5050

[State 808]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[state 808]
type = velset
trigger1 = Time = 30
x = -1.5
y = -10

[State 808]
type = VelAdd
trigger1 = Time >= 30
y = .4

[State 808] 
type = lifeadd
triggerall = Vel Y > 0
trigger1 = Pos Y >= 0
value = -50
absolute = 0

[State 808] 
type = SelfState
triggerall = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100 

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd Gear Throw [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 1055]
type    = S
movetype= A
physics = N
juggle  = 8
poweradd= 80
velset = 0,0
anim = 1049
ctrl = 0

[State 1055]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[state 1055]
type = playsnd
trigger1 = animelem = 7
value = 1050,0

[state 1055]
type = posadd
trigger1 = animelem = 9
trigger2 = animelem = 10
trigger3 = animelem = 11
x = -8

[State 1055]
type = Explod
trigger1 = animelem = 6
anim = 946
id = 946
sprpriority = 3
postype = p1
velset = 0,0
pos = 30,-105
bindtime = 1
persistent = 0
ignorehitpause = 1
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 1055]
type = Explod
trigger1 = animelem = 7
anim = 947
id = 947
sprpriority = 3
postype = p1
velset = 0,0
pos = 45,-105
bindtime = 1
persistent = 0
ignorehitpause = 1
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 1055]
type = helper
trigger1 = Animelem = 8 || Animelem = 9
id = 1055
persistent = 1
name = "sennpuuki"
pos = 76,-96
postype = P1
stateno = 1065
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[state 1055]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd Gear Throw [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 1250]
type    = S
movetype= A
physics = N
juggle  = 8
poweradd= 150
velset = 0,0
anim = 1049
ctrl = 0

[State 1250]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[state 1250]
type = playsnd
trigger1 = animelem = 7
value = 1050,0

[state 1250]
type = posadd
trigger1 = animelem = 9
trigger2 = animelem = 10
trigger3 = animelem = 11
x = -8

[State 1250]
type = Explod
trigger1 = animelem = 6
anim = 946
id = 946
sprpriority = 3
postype = p1
velset = 0,0
pos = 30,-105
bindtime = 1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 1250]
type = Explod
trigger1 = animelem = 7
anim = 947
id = 947
sprpriority = 3
postype = p1
velset = 0,0
pos = 45,-105
bindtime = 1
persistent = 0
ignorehitpause = 1
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 1250]
type = helper
trigger1 = Animelem = 8
id = 1050
persistent = 0
name = "sennpuuki"
pos = 76,-96
postype = P1
stateno = 1065
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 1250]
type = helper
trigger1 = Animelem = 8
id = 1050
persistent = 0
name = "sennpuuki"
pos = -30,-146
postype = P1
stateno = 1065
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 1250]
type = helper
trigger1 = Animelem = 8
id = 1050
persistent = 0
name = "sennpuuki"
pos = -30,-46
postype = P1
stateno = 1065
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[state 1250]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd Gear Throw [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 1065]
type    = A
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 6,0
ctrl = 0
anim = 1065

[State 1065]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state 1065]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 1065
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 1065]
type = Explod
trigger1 = animelem = 2
anim = 945
id = 211
sprpriority = 5
postype = p1
velset = 0,0
pos = 0,0
bindtime = 1
ignorehitpause = 1
under = 0
ownpal = 1
scale = .5,.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 1065]
type = Projectile
trigger1 = AnimElem = 2
attr = S, NA
projanim = 1062
projremovetime = 16
projid = 1050
projpriority = 16
projsprpriority = 16
projedgebound = 220
air.juggle = 2
postype = p1
getpower = 30,30
offset = 0,0
velocity = 0
damage = Ceil(0.03 * enemy,Const(data.life)) * root,var(39),Ceil(0.007 * enemy,Const(data.life)) * root,var(39)
animtype = hard
guardflag = M
pausetime = 2,4
sparkno = s22109 + root,var(35)
guard.sparkno = s22113
sparkxy = 0,0
hitsound = S225,1
guardsound = S121,0
ground.type = high
ground.slidetime = 14
ground.hittime = 16
ground.velocity = -5,0
air.velocity = -4,-5
air.fall = 1
fall = 0
fall.recover = 0
ownpal = 1
p2stateno = 19000

[State 1065]
type = Explod
triggerall = time >= 0
trigger1 = (GameTime%4) = 1
anim = 221312
sprpriority = 10
postype = p1
pos = 0,0
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 1
vel = -5,-1 + (random%3)
PauseMoveTime = 9999

[state 1065]
type = destroyself
trigger1 = FrontEdgeDist <= -100
trigger2 = time >= 200

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ORBS [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11102]
type    = S
movetype= A
physics = N
juggle  = 8
poweradd= 0
velset = 0,0
anim = 1049
ctrl = 0

[State 11102]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[state 11102]
type = posadd
trigger1 = animelem = 9
trigger2 = animelem = 10
trigger3 = animelem = 11
x = -8

[state 11102]
type = Explod
trigger1 = time = 14
anim = 32300
sprpriority = 1
postype = p1
pos = 30,-103
bindtime = -1
supermove = 1
under = 0
removetime = 10
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11102]
type = Explod
trigger1 = time = 24
anim = 32350
sprpriority = 1
postype = p1
pos = 30,-103
bindtime = -1
supermove = 1
under = 0
removetime = 12
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11102]
type = Explod
trigger1 = time >= 14
trigger1 = time <= 27
id = 22131
anim = 221312
ownpal = 0
sprpriority = 5
pos = 50,-105
random = 80,40
vel = 2-random%3,1-random%3
accel = 0.1,0
scale = 0.3,0.3
supermove = 9999999999
pausemovetime = 9999999999
ignorehitpause=1

[state 11102]
type = playsnd
trigger1 = animelem = 7
value = 1050,0
volume= 255

[State 11102]
type = PlaySnd
trigger1 = time = 7
trigger2 = time = 9
trigger3 = time = 11
trigger4 = time = 13
trigger5 = time = 15
trigger6 = time = 17
value = s10000,15
volume = -255

[State 11102]
type = PlaySnd
trigger1 = time = 7
value = 10000,9
volume = -255

[State 11102]
type = PlaySnd
trigger1 = time = 7
value = 400,26
volume = -255

[State 11102]
type = helper
triggerall = !ishelper
trigger1 = Animelem = 8
id = 11100
persistent = 0
name = "koukyu"
pos =120,-130
postype = P1
stateno = 11100
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11102]
type = helper
triggerall = !ishelper
trigger1 = Animelem = 8
id = 11100
persistent = 0
name = "koukyu"
pos =120,-50
postype = P1
stateno = 11100
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11102]
type = helper
triggerall = !ishelper
trigger1 = Animelem = 8
id = 11100
persistent = 0
name = "koukyu"
pos = 40,-50
postype = P1
stateno = 11100
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11102]
type = helper
triggerall = !ishelper
trigger1 = Animelem = 8
id = 11100
persistent = 0
name = "koukyu"
pos = 40,-130
postype = P1
stateno = 11100
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 11102]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ORBS [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11100]
type    = S
movetype= I
physics = N
anim = 11101
velset = 0,0
ctrl = 0
sprpriority = 2

[State 11100]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause = 1

[State 11100]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AT,AP
stateno = 11100
ignorehitpause = 1

[State 11100]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11100]
type = trans
trigger1 = 1
trans = add
ignorehitpause = 1

[State 11100]
type = AngleDraw
trigger1 = 1
scale = 1.0,1.0

[State 11100]
type = AngleAdd
trigger1 = 1
value = -7

[State 11100]
type = varset
trigger1 = enemy,pos x=[-320,320]
trigger1 = enemy,pos y=[-480,60]
trigger1 = enemy,pos x-pos x<0
trigger2 = enemy,pos x!=[-320,320]
trigger2 = enemy,pos y!=[-480,60]
trigger2 = enemynear,pos x-pos x<0
v = 0
value = 1
ignorehitpause = 1

[State 11100]
type = varset
trigger1 = enemy,pos x=[-320,320]
trigger1 = enemy,pos y=[-480,60]
trigger1 = enemy,pos x-pos x>=0
trigger2 = enemy,pos x!=[-320,320]
trigger2 = enemy,pos y!=[-480,60]
trigger2 = enemynear,pos x-pos x>=0
v = 0
value = 0
ignorehitpause = 1

[State 11100]
Type = Turn
Trigger1 = facing = -1
ignorehitpause = 1

[State 11100]
type = VelSet
trigger1 = var(0)=0
x = time%40 * 0.2

[State 11100]
type = VelSet
trigger1 = var(0) =1
x = -time%40 * 0.2

[State 11100]
type = VelSet
trigger1 = p2bodydist Y <= 0
y = Sin((-gameTime*3)*Pi/180) - 1

[State 11100]
type = VelSet
trigger1 = p2bodydist Y > 0
y = -Sin((gameTime*3)*Pi/180) + 1 

[state 11100]
type = posset
trigger1 = !ishelper
y = 0

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

[state 11100]
type = changestate
trigger1 = projcontact = 1
value = 11125

[state 11100]
type = changestate
trigger1 = time >= 80
trigger2 = p2bodydist X<20&&p2bodydist X>-20
trigger2 = p2bodydist Y<20&&p2bodydist Y>-20
value = 11125

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ORBS [END STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11125]
type    = A
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 22162

[state 11125]
type = playsnd
trigger1 = time = 0
value = 4000,20
volume = 255

[state 11125]
type = nothitby
trigger1 = 1
value = SCA

[State 11125]
type = Explod
trigger1 = 1
anim = 2110
sprpriority = 5
postype = p1
pos = 0,0
random = 30,30
vel = -7+ (random%14),-7 + (random%14)
facing = -1
trans = add
scale = 0.25,0.25
ignorehitpause = 1

[State 11125]
type = Explod
trigger1 = 1
anim = 221312
postype = p1
pos = 0,0
vel = -7+ (random%14),-7 + (random%14)
facing = -1
id = 22131
scale = 0.25,0.25
ignorehitpause = 1

[State 11125]
type = Explod
trigger1 = 1
anim = 221312
postype = p1
pos = 0,0
vel = -6+ (random%12),-6 + (random%12)
facing = -1
id = 22131
scale = 0.25,0.25
ignorehitpause = 1

[State 11125]
type = Explod
trigger1 = 1
anim = 221312
postype = p1
pos = 0,0
vel = -5+ (random%10),-5 + (random%10)
facing = -1
id = 22131
scale = 0.25,0.25
ignorehitpause = 1

[State 11125]
type = Explod
trigger1 = time = 0
anim = 22159
sprpriority = -7
postype = p1
pos = 0,0
ignorehitpause = 1
scale = .5,.5

[State 11125]
type = Projectile
trigger1 = time = 0
attr = S, NA
projanim = 22179
projhitanim = -1
projid = 35902
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 1
projremovetime = 10
postype = p1
offset = 0,0
velocity = 0
animtype = diagup
damage = Ceil(0.08 * enemy,Const(data.life)) ,Ceil(0.025 * enemy,Const(data.life)) * var(39)
getpower = 10,5
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 0,4
sparkno = -1
sparkxy = 0,0
hitsound   = s225,1
guard.sparkno = -1
guardsound = s120,0
ground.type = hard
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.5
fall = 1
fall.recover = 0
juggle = 15

[state 11125]
type = destroyself
trigger1 = animtime = 0
ignorehitpause = 1

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ORB EXPLOSION [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11501]
type    = S
movetype= A
physics = S
juggle  = 7
poweradd= 80
ctrl = 0
velset = 0,0
anim = 1199
sprpriority = 2

[State 11501]
type = varrandom
trigger1 = 1
range = -40,-130
v = 52

[State 11501]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[state 11501]
type = Explod
trigger1 = time = 11
anim = 32300
sprpriority = 4
postype = p1
pos = 20,-100
bindtime = -1
supermove = 1
under = 0
removetime = 40
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11501]
type = Explod
trigger1 = time = 51
anim = 32350
sprpriority = 4
postype = p1
pos = 20,-100
bindtime = -1
supermove = 1
under = 0
removetime = 10
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11501]
type = Explod
triggerall = time >= 0
trigger1 = (GameTime%2) = 1
anim = 221312
sprpriority = 10
postype = p1
pos = 0,var(52)
bindtime = 1
under = 0
persistent = 1
ignorehitpause = 1
vel = 8,-2 + (random%5)
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11501]
type = PlaySnd
trigger1 = animelem = 4
value = 1200, 0

[State 11501]
type = helper
trigger1 = Animelem = 5||Animelem=6
id = 11502
persistent = 1
name = "hikari"
pos = 50,-95
postype = P1
stateno = 11502
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11501]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ORB EXPLOSION [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11502]
type = S
movetype = I
physics = N
anim = 221312
velset = 0,0
ctrl = 0
sprpriority = 2

[State 11502]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause = 1

[State 11502]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AT,AP
stateno = 11502
ignorehitpause = 1

[state 11502]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11502]
type = HitOverride
trigger1 = 1
time = -1
attr = SCA,AA,AT,AP
slot = 0
stateno = 11502
ignorehitpause = 1

[State 1]
type = Explod
trigger1 = animelem = 4
anim = 221312
sprpriority = 1
postype = p1
velset = 0,0
pos = 0,-5
bindtime = 1
ignorehitpause = 1
scale = 0.7,0.7
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1]
type = Explod
trigger1 = animelem = 1
anim = 221312
sprpriority = 1
postype = p1
velset = 0,0
pos = -15,0
bindtime = 1
ignorehitpause = 1
scale = 0.4,0.4
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1]
type = Explod
trigger1 = animelem = 3
anim = 221312
sprpriority = 1
postype = p1
velset = 0,0
pos = -5,0
bindtime = 1
ignorehitpause = 1
scale = 0.7,0.7
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1]
type = Explod
trigger1 = animelem = 2
anim = 221312
sprpriority = 1
postype = p1
velset = 0,0
pos = 0,5
bindtime = 1
ignorehitpause = 1
scale = 0.7,0.7
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 11502]
type = velset
trigger1 = p2bodydist X< 0
trigger1 = Time >= 10
x = -1-((ishelper(11501))*2)

[state 11502]
type = velset
trigger1 = p2bodydist X > 0
trigger1 = Time >= 10
x = 1+((ishelper(11501))*2)

[state 11502]
type = velset
trigger1 = p2bodydist Y < 50
trigger1 = Time >= 10
y = -0.2-((ishelper(11501))*0.6)

[state 11502]
type = velset
trigger1 = p2bodydist Y > 50
trigger1 = Time >= 10
y = 0.2+((ishelper(11501))*0.6)

[State 11502]
type = ChangeState
trigger1 = p2dist x = [-50,50]
trigger1 = p2dist y = [-80,80]
value = 11125

[State 11502]
type = DestroySelf
trigger1 = time >= 250+((ishelper(11501))*50)

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd SPIN HOLD [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 1700]
type     = S
movetype = A
physics  = S
juggle   = 3
poweradd = 0
velset   = 0,0
anim     = 1299
ctrl     = 0
sprpriority = 3

[State 1700]
type = varrandom
trigger1 = 1
range = -40,-130
v = 52

[State 1700]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[State 1700]
type = Explod
triggerall = time >= 0
trigger1 = (GameTime%2) = 1
anim = 221312
sprpriority = 10
postype = p1
pos = 0,var(52)
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 1
vel = 8,-2 + (random%5)
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1700]
type = Explod
triggerall = time >= 0
trigger1 = (GameTime%2) = 1
anim = 221312
sprpriority = 10
postype = p1
pos = 0,var(52)
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 1
trans = add
vel = 8,-2 + (random%5)
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1700]
type = PlaySnd
trigger1 = AnimElem = 1
value = 10000,9

[State 1700]
type = PlaySnd
trigger1 = AnimElem = 1
value =10000,9

[State 1700]
type = PlaySnd
trigger1 = AnimElem = 1
value = 10000,8

[State 1700]
type = Helper
triggerall = !ishelper
trigger1 = AnimElem = 1
stateno = 9150
id = 1720
helpertype = player
pos = 30,-85
size.xscale = 0.3
size.yscale = 0.3
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1700]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd PILLAR-RUSH [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[statedef 18100]
type    = S
movetype= A
physics = S
juggle  = 7
poweradd= 30
ctrl = 0
velset = 0,0
anim = 18100
sprpriority = 5

[State 18100]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[State 18100]
type = Explod
triggerall = time >= 0
trigger1 = (GameTime%8) = 1
anim = 10007
sprpriority = 10
postype = p1
pos = 180,-80
bindtime = 1
under = 0
random = 300,100
persistent = 1
ignorehitpause = 1
scale = 0.5,0.5
supermovetime = 2147483647
pausemovetime = 2147483647

[state 18100]
type = Explod
trigger1 = time = 20
anim = 919
sprpriority = -4
postype = p1
pos = 5,-140
bindtime = -1
supermove = 1
ontop = 1
ownpal = 0
removetime = 56
scale = 0.75,0.75
supermovetime = 2147483647
pausemovetime = 2147483647

[state 18100]
type = Explod
trigger1 = time = 76
anim = 920
sprpriority = -4
postype = p1
pos = 5,-140
bindtime = -1
supermove = 1
ontop = 1
ownpal = 0
removetime = 10
scale = 0.75,0.75
supermovetime = 2147483647
pausemovetime = 2147483647

[state 18100]
type = PlaySnd
trigger1 = animelem = 3
value = 2300,0

[state 18100]
type = helper
triggerall = name ="Gold Orochi"
triggerall = !ishelper
trigger1 = AnimElem = 6
id = 18102
persistent = 0
name = "monsyou"
pos = 70,-150
postype = P1
stateno = 9150
size.xscale = 0.7
size.yscale = 0.7
helpertype = player
keyctrl = 0
ownpal = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 18100]
type = NotHitBy 
trigger1 = animelem = 5,<=0
value = SCA

[state 18100]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd MIZUCHI FLAKE [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11670]
type    = S
movetype= A
physics = N
juggle  = 8
poweradd= 0
velset = 0,0
anim = 1199
ctrl = 0

[State 11670]
type = varrandom
trigger1 = 1
range = -40,-130
v = 52

[State 11670]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[State 11670]
type = playsnd
trigger1 = animelem = 1
value = 1300,0
volume = 255

[state 11670]
type = Explod
trigger1 = time = 11
anim = 32300
sprpriority = 1
postype = p1
pos = 20,-100
bindtime = -1
supermove = 1
under = 0
removetime = 34
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11670]
type = Explod
trigger1 = time = 45
anim = 32350
sprpriority = 1
postype = p1
pos = 20,-100
bindtime = -1
supermove = 1
under = 0
removetime = 12
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11670]
type = playsnd
trigger1 = animelem = 5
value = 1200,0

[State 11670]
type = Explod
triggerall = time >= 0
trigger1 = (GameTime%2) = 1
anim = 221312
sprpriority = 10
postype = p1
pos = 0,var(52)
bindtime = 1
under = 0
persistent = 1
ignorehitpause = 1
vel = 8,-2 + (random%5)
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11670]
type = helper
trigger1 = animelem = 5
id = 11680
persistent = 0
name = "moyou"
pos = 80,-80
postype = P1
stateno = 11680
size.xscale = .7
size.yscale = .7
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11670]
type = helper
trigger1 = animelem = 5
id = 116800
persistent = 0
name = "moyou"
pos = 80,-80
postype = P1
stateno = 116800
size.xscale = .7
size.yscale = .7
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11670]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd MIZUCHI FLAKE [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11680]
type    = S
movetype= A
physics = N
anim = 1205
velset = 0,0
ctrl = 0

[State 11680]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause = 1

[State 11680]
type = velset
trigger1 = animelemtime(12)
trigger1 = time >= 40
x = 4
ignorehitpause = 1

[state 11680]
type = PlaySnd
trigger1 = time = 1
value = 801, 0

[state 11680]
type = PlaySnd
trigger1 = time = 0
value = 240, 1

[state 11680]
type = AngleDraw
trigger1 = animelemtime(12)
trigger1 = time >= 40
scale = 1.0,1.0

[state 11680]
type = AngleAdd
trigger1 = animelemtime(12)
value = -13

[state 11680]
type = trans
trigger1 = 1
trans = add
ignorehitpause = 1

[state 11680]
type = turn
trigger1 = var(0) > 60
ignorehitpause = 1
persistent = 0

[state 11680]
type = varadd
trigger1 = ScreenPos X != [0,400]
var(0) = 1
ignorehitpause = 1

[state 11680]
type = angleadd
trigger1 = var(0) > 59
value = -13
ignorehitpause = 1

[state 11680]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[state 11680]
type = HitOverride
trigger1 = 1
time = -1
attr = SCA,AA,AT,AP
slot = 0
stateno = 11680
ignorehitpause = 1

[state 11680]
type = Projectile
trigger1 = animelemtime(12)
trigger1 = time >= 40
attr = S, NA
animtype  = hard
damage = ceil(0.002*enemy,const(data.life)),ceil(0.001*enemy,const(data.life))
getpower = 0
givepower = -1
guardflag = M
hitflag = MAF
projanim = 1211
projid = 1211
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
priority = 7, Hit
pausetime = 0,0
sparkno = -1
guard.sparkno = -1
sparkxy = -5,-5
hitsound = s2300,2
guardsound = s120,0
ground.type = high 
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = 0,-2
airguard.velocity = 0,0
air.type = Low
air.velocity = 0,-1
air.hittime = 5
fall = 1
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[state 11680]
type = changestate
trigger1 = time >= 300 
value = 11690

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd MIZUCHI FLAKE [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11690]
type    = S
movetype= I
physics = S
anim = 1206
velset = 0,0
ctrl = 0

[State 11690]
type = Explod
trigger1 = numexplod(10910)=0&&time=0
anim = 10910
id = 10910
sprpriority = 214748364
postype = p1
pos = 0,0
bindtime = -1
supermove = 0
under = 1
ontop = 1
scale = 0.5,0.5
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11690]
type = PlaySnd
trigger1 = time = 0
value = 2562,35
volume = 255

[State 11690]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause = 1

[State 11690]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11690]
type = HitOverride
trigger1 = 1
time = -1
attr = SCA,AA,AT,AP
slot = 0
stateno = 11680
ignorehitpause = 1

[State 11690]
type = velset
trigger1 = 1
x = 0

[State 11690]
type = destroyself
trigger1 = anim = 1206
trigger1 = time >= 15

[State 11690]
type = destroyself
trigger1 = time >= 15

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd MIZUCHI FLAKE [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 116800]
type    = S
movetype= A
physics = N
anim = 1213
velset = 0,0
ctrl = 0

[State 116800]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause = 1

[state 116800]
type = PlaySnd
trigger1 = time = 1
value = 801, 0

[state 116800]
type = trans
trigger1 = 1
trans = add
ignorehitpause = 1

[state 116800]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[state 116800]
type = HitOverride
trigger1 = 1
time = -1
attr = SCA,AA,AT,AP
slot = 0
stateno = 116800
ignorehitpause = 1

[state 116800]
type = veladd
trigger1 = time >= 65
y = -1

[state 116800]
type = changestate
trigger1 = time >= 40
value = 1168000

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd MIZUCHI FLAKE [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 1168000]
type    = S
movetype= A
physics = N
anim = 1205
velset = 0,0
ctrl = 0

[State 1168000]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause = 1

[State 1168000]
type = velset
trigger1 = time >= 40
y = 18
ignorehitpause = 1

[State 1168000]
type = posset
trigger1 = ishelper
trigger1 = time >= 40
x = enemy,pos x

[state 1168000]
type = posset
trigger1 = time = 0
y = -500

[state 1168000]
type = AngleDraw
trigger1 = animelemtime(12)
trigger1 = time >= 40
scale = 1.0,1.0

[state 1168000]
type = AngleAdd
trigger1 = animelemtime(12)
value = -13

[state 1168000]
type = trans
trigger1 = 1
trans = add
ignorehitpause = 1

[state 1168000]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[state 1168000]
type = HitOverride
trigger1 = 1
time = -1
attr = SCA,AA,AT,AP
slot = 0
stateno = 1168000
ignorehitpause = 1

[state 1168000]
type = velset
triggerall = animelemtime(12)
trigger1 = root,projcontact(1211) = 1
y = 1

[state 1168000]
type = Projectile
triggerall = ishelper
trigger1 = animelemtime(12)
trigger1 = time >= 40
attr = S, NA
animtype  = hard
damage = ceil(0.002*enemy,const(data.life)),ceil(0.001*enemy,const(data.life))
getpower = 0
givepower = -1
guardflag = M
hitflag = MAFD
projanim = 1211
projid = 1211
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
priority = 7, Hit
pausetime = 0,0
sparkno = -1
guard.sparkno = -1
sparkxy = -5,-5
hitsound = s2300,2
guardsound = s120,0
ground.type = high 
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = 0,-2
airguard.velocity = 0,0
air.type = Low
air.velocity = 0,-1
air.hittime = 5
fall = 1
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[state 1168000]
type = Projectile
triggerall = ishelper
trigger1 = animelemtime(12)
trigger1 = time >= 40
attr = S, NA
animtype  = hard
damage = 0,0
getpower = 0
givepower = -1
guardflag = M
hitflag = MAF
projanim = 1212
projid = 1212
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
priority = 7, Hit
pausetime = 0,0
sparkno = -1
guard.sparkno = -1
sparkxy = -5,-5
hitsound = s2300,2
guardsound = s120,0
ground.type = high 
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = 0,-2
airguard.velocity = 0,0
air.type = Low
air.velocity = 0,-1
air.hittime = 5
fall = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[state 1168000]
type = destroyself
trigger1 = time >= 300

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd THREE-FLAKE [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11700]
type    = S
movetype= A
physics = N
juggle  = 8
poweradd= 0
velset = 0,0
anim = 1201
ctrl = 0

[State 11700]
type = varrandom
trigger1 = 1
range = -40,-130
v = 52

[State 11700]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[State 11700]
type = playsnd
trigger1 = animelem = 5
value = 1200,0
volume = 255

[State 11700]
type = playsnd
trigger1 = animelem = 5
value = 801,1
volume = 255

[State 11700]
type = Explod
triggerall = time >= 0
trigger1 = (GameTime%2) = 1
anim = 221312
sprpriority = 10
postype = p1
pos = 0,var(52)
bindtime = 1
under = 0
persistent = 1
ignorehitpause = 1
vel = 8,-2 + (random%5)
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11700]
type = helper
trigger1 = animelem = 5
id = 11710
persistent = 0
name = "moyou"
pos = 0,0
postype = P1
stateno = 11710
size.xscale = 0.3
size.yscale = 0.3
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11700]
type = helper
trigger1 = animelem = 5
id = 11720
persistent = 0
name = "moyou"
pos = 4,-174
postype = P1
stateno = 11720
size.xscale = 0.3
size.yscale = 0.3
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11700]
type = helper
trigger1 = animelem = 5
id = 11730
persistent = 0
name = "moyou"
pos = 40,-80
postype = P1
stateno = 11730
size.xscale = 0.3
size.yscale = 0.3
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11700]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd THREE-FLAKE [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11710]
type    = S
movetype= A
physics = N
anim = 1216
velset = 3,-1.5
ctrl = 0

[state 11710]
type = trans
trigger1 = 1
trans = add
ignorehitpause = 1

[State 11710]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause = 1
ignorehitpause = 1

[state 11710]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[state 11710]
type = AngleDraw
trigger1 = 1
scale = 1.0,1.0

[state 11710]
type = AngleAdd
trigger1 = 1
value = -7

[state 11710]
type = HitOverride
trigger1 = 1
time = -1
attr = SCA,AA,AT,AP
slot = 0
stateno = 11710
ignorehitpause = 1

[state 11710]
type = changeanim
trigger1 = time >= 100
trigger1 = anim != 1217
value = 1206

[state 11710]
type = Projectile
trigger1 = time <= 180
trigger1 = GameTime%2 = 1
attr = S,NA
animtype  = hard
damage = 5,1
getpower = 0
givepower = -1
guardflag = M
hitflag = MAFPD
projanim = 1220
projid = 1220
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0,-6
priority = 7, Hit
pausetime = 0,20
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = -5,-5
hitsound = s222,0
guardsound = s120,0
ground.type = high 
ground.slidetime = 28
ground.hittime = 28 
ground.velocity = 0,20
air.velocity = -4,20
air.fall = 1
fall.recover = 0
yaccel = 0.4
fall = 1
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[state 11710]
type = destroyself
trigger1 = anim = 1206
trigger1 = time >= 100

[state 11710]
type = destroyself
trigger1 = anim = 1217
trigger1 = animtime = 0

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd THREE-FLAKE [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11720]
type    = S
movetype= A
physics = N
anim = 1216
velset = 3,1.5
ctrl = 0

[state 11720]
type = trans
trigger1 = 1
trans = add
ignorehitpause = 1

[State 11720]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause = 1
ignorehitpause = 1

[state 11720]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[state 11720]
type = AngleDraw
trigger1 = 1
scale = 1.0,1.0

[state 11720]
type = AngleAdd
trigger1 = 1
value = -7

[state 11720]
type = HitOverride
trigger1 = 1
time = -1
attr = SCA,AA,AT,AP
slot = 0
stateno = 11720
ignorehitpause = 1

[state 11720]
type = changeanim
trigger1 = time >= 100
trigger1 = anim != 1217
value = 1217

[state 11720]
type = Projectile
trigger1 = time <= 180
trigger1 = GameTime%2 = 1
attr = S,NA
animtype  = hard
damage = 5,1
getpower = 0
givepower = -1
guardflag = M
hitflag = MAFPD
projanim = 1220
projid = 1220
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0,-6
priority = 7, Hit
pausetime = 0,20
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = -5,-5
hitsound = s222,0
guardsound = s120,0
ground.type = High
ground.slidetime = 28
ground.hittime = 28 
ground.velocity = 0,-20
air.velocity = -4,-20
air.fall = 1
fall.recover = 0
yaccel = 0.4
fall = 1
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[state 11720]
type = destroyself
trigger1 = anim = 1217
trigger1 = animtime = 0

[state 11720]
type = destroyself
trigger1 = anim = 1206
trigger1 = time >= 100

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd THREE-FLAKE [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11730]
type    = S
movetype= A
physics = N
anim = 1216
velset = 3,0
ctrl = 0

[state 11730]
type = trans
trigger1 = 1
trans = add
ignorehitpause = 1

[State 11730]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause = 1
ignorehitpause = 1

[state 11730]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[state 11730]
type = AngleDraw
trigger1 = 1
scale = 1.0,1.0

[state 11730]
type = AngleAdd
trigger1 = 1
value = -7

[state 11730]
type = HitOverride
trigger1 = 1
time = -1
attr = SCA,AA,AT,AP
slot = 0
stateno = 11730
ignorehitpause = 1

[state 11730]
type = changeanim
trigger1 = time >= 100
trigger1 = anim != 1217
value = 1206

[state 11730]
type = Projectile
trigger1 = time <= 180
trigger1 = GameTime%2 = 1
attr = S,NA
animtype  = hard
damage = 5,1
getpower = 0
givepower = -1
guardflag = M
hitflag = MAFPD
projanim = 1220
projid = 1220
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0,-6
priority = 7, Hit
pausetime = 0,20
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = -5,-5
hitsound = s222,0
guardsound = s120,0
ground.type = high 
ground.slidetime = 28
ground.hittime = 28 
ground.velocity = 0,20
air.velocity = -4,20
air.fall = 1
fall.recover = 0
yaccel = 0.4
fall = 1
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[state 11730]
type = destroyself
trigger1 = anim = 1217
trigger1 = animtime = 0

[state 11730]
type = destroyself
trigger1 = anim = 1206
trigger1 = time >= 100

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ELEC-BALL [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[statedef 12300]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 0
ctrl = 0
velset = 0,0
anim = 1300
sprpriority = 2

[State 12300]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[state 12300]
type = PlaySnd
trigger1 = animelem=4
value = 1300,1
volume= 255

[state 12300]
type = PlaySnd
trigger1 = animelem=4||animelem=5
value = 10000,44
volume= 255

[state 12300]
type = EnvShake
trigger1 = animelem = 5
time = 10
ampl = -10
freq = 95
phase = 95

[state 12300]
type = Explod
trigger1 = animelem = 4
anim = 900
id = 900
sprpriority = 3
postype = p1
velset = 0,0
pos = 36,-76
bindtime = 1
persistent = 0
ignorehitpause = 1
ontop = 1
ownpal = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 12300]
type = helper
triggerall = name = "Gold Orochi"
triggerall = !ishelper
trigger1 = animelem = 5
id = 12310
persistent = 0
name = "ri"
pos = 50,-80
postype = P1
stateno = 9150
helpertype = player
keyctrl = 0
ownpal = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 12300]
type = helper
triggerall = name = "Gold Orochi"
triggerall = !ishelper
trigger1 = animelem = 5
id = 12310
persistent = 0
name = "ri"
pos = 110,-80
postype = P1
stateno = 9150
helpertype = player
keyctrl = 0
ownpal = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 12300]
type = helper
triggerall = name = "Gold Orochi"
triggerall = !ishelper
trigger1 = animelem = 5
id = 12310
persistent = 0
name = "ri"
pos = 80,-110
postype = P1
stateno = 9150
helpertype = player
keyctrl = 0
ownpal = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 12300]
type = helper
triggerall = name = "Gold Orochi"
triggerall = !ishelper
trigger1 = animelem = 5
id = 12310
persistent = 0
name = "ri"
pos = 80,-50
postype = P1
stateno = 9150
helpertype = player
keyctrl = 0
ownpal = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 12300]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 1550]
type    = S
movetype= I
physics = N
juggle  = 8
poweradd= 150
velset = 0,0
anim = 1049
ctrl = 0

[State 1550]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[state 1550]
type = playsnd
trigger1 = animelem = 7
value = 1050,0

[state 1550]
type = posadd
trigger1 = animelem = 9
trigger2 = animelem = 10
trigger3 = animelem = 11
x = -8

[state 1550]
type = Explod
trigger1 = time = 14
anim = 32300
sprpriority = 1
postype = p1
pos = 30,-103
bindtime = -1
supermove = 1
under = 0
removetime = 10
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1550]
type = Explod
trigger1 = time = 24
anim = 32350
sprpriority = 1
postype = p1
pos = 30,-103
bindtime = -1
supermove = 1
under = 0
removetime = 12
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1550]
type = helper
trigger1 = Animelem = 8
id = 1050
persistent = 0
name = "sennpuuki"
pos = 76,-96
postype = P1
stateno = 1065
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 1550]
type = helper
trigger1 = Animelemtime(8) = 3
id = 11100
persistent = 0
name = "koukyu"
pos = 124,-100
postype = P1
stateno = 11100
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 1550]
type = helper
trigger1 = Animelemtime(8) = 3
id = 11100
persistent = 0
name = "koukyu"
pos = 35,-100
postype = P1
stateno = 11100
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 1550]
type = helper
trigger1 = Animelemtime(8) = 3
id = 11100
persistent = 0
name = "koukyu"
pos = 80,-140
postype = P1
stateno = 11122
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 1550]
type = helper
trigger1 = Animelemtime(8) = 3
id = 111000
persistent = 0
name = "koukyu"
pos = 80,-60
postype = P1
stateno = 11122
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 1550]
type = helper
trigger1 = Animelem = 8
id = 11500
persistent = 0
name = "hikari"
pos = 50,-95
postype = P1
stateno = 115022
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 1550]
type = helper
trigger1 = Animelem = 8
id = 11500
persistent = 0
name = "hikari"
pos = 50,-95
postype = P1
stateno = 11599
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[state 1550]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11100]
type = S
movetype = A
physics = N
anim = 22106
velset = 0,0
ctrl = 0
sprpriority = 2

[State 11100]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11100]
type = NotHitBy
trigger1 = 1
value = SCA,NT,ST,HT,NA,SA,HA,NP,SP,HP,AA,AP,AT
time = 999999

[state 11100]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 11100
ignorehitpause = 1

[State 11100]
type = PlaySnd
trigger1 = (GameTime%25) = 1
value = 2562, 29
volume = -100

[state 11100]
type = velset
trigger1 = p2bodydist X< 0 && Time >= 20
x = -3.5;-(3.5+((root,palno=12&&root,var(29)>=1)*2.0))

[state 1]
type = velset
trigger1 = p2bodydist X > 0 && Time >= 20
x = 3.5;(3.5+((root,palno=12&&root,var(29)>=1)*2.0))

[state 11100]
type = velset
trigger1 = p2bodydist Y < 50 && Time >= 20
y = -1;-(1+((root,palno=12&&root,var(29)>=1)*2.0))

[state 11100]
type = velset
trigger1 = p2bodydist Y > 50 && Time >= 20
y = 1;(1+((root,palno=12&&root,var(29)>=1)*2.0))

[State 11100]
type = Projectile
trigger1 = 1
attr = S, HP
projanim = 11205
projhitanim = -1
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0,0
animtype  = diagup
damage    = 0,0
getpower = 0,0
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 0,0
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = -1
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.8

[state 11100]
type = posset
trigger1 = !ishelper
y = 0

[State 11100]
type = ChangeState
triggerall = ishelper
trigger1 = p2dist x = [-50,50]
trigger1 = p2dist y = [-80,80]
value = 11125

[State 11100]
type = ChangeState
trigger1 = time >= 200;((root,var(1) = 1)*30)+30 && ishelper
value = 11125

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11122]
type = S
movetype = A
physics = N
anim = 22106
velset = 0,0
ctrl = 0
sprpriority = 2

[State 11122]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11122]
type = NotHitBy
trigger1 = 1
value = SCA,NT,ST,HT,NA,SA,HA,NP,SP,HP,AA,AP,AT
time = 999999

[state 11122]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 11122

[state 11122]
type = velset
trigger1 = p2bodydist X< 0 && Time >= 20
x = -3.5;-(3.5+((root,palno=12&&root,var(29)>=1)*2.0))

[state 11122]
type = velset
trigger1 = p2bodydist X > 0 && Time >= 20
x = 3.5;(3.5+((root,palno=12&&root,var(29)>=1)*2.0))

[state 11122]
type = velset
trigger1 = p2bodydist Y < 50 && Time >= 20
y = -1;-(1+((root,palno=12&&root,var(29)>=1)*2.0))

[state 11122]
type = velset
trigger1 = p2bodydist Y > 50 && Time >= 20
y = 1;(1+((root,palno=12&&root,var(29)>=1)*2.0))

[State 11122]
type = Projectile
trigger1 = 1
attr = S, HP
projanim = 11205
projhitanim = -1
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0,0
animtype  = diagup
damage    = 0,0
getpower = 0,0
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 0,0
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = -1
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.8

[state 11122]
type = posset
trigger1 = !ishelper
y = 0

[State 11122]
type = ChangeState
triggerall = ishelper
trigger1 = p2dist x = [-50,50]
trigger1 = p2dist y = [-80,80]
value = 11125

[State 11122]
type = ChangeState
trigger1 = time >= 200;((root,var(1) = 1)*30)+30 && ishelper
value = 11125

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 115022]
type = S
movetype = A
physics = N
anim = 22107
velset = 0,0
ctrl = 0
sprpriority = 2

[State 11502]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11502]
type = NotHitBy
trigger1 = 1
value = SCA,NT,ST,HT,NA,SA,HA,NP,SP,HP,AA,AP,AT
time = 999999

[state 11502]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 11502
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 11502]
type = PlaySnd
trigger1 = (GameTime%20) = 1
value = 2562, 28
volume = -50

[State 11502]
type = Explod
trigger1 = animelem = 4
anim = 22107
sprpriority = 1
postype = p1
velset = 0,0
pos = 0,-5
bindtime = 1
ignorehitpause = 1
scale = 0.7,0.7
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11502]
type = Explod
trigger1 = animelem = 1
anim = 22107
sprpriority = 1
postype = p1
velset = 0,0
pos = -15,0
bindtime = 1
ignorehitpause = 1
scale = 0.4,0.4
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11502]
type = Explod
trigger1 = animelem = 3
anim = 22107
sprpriority = 1
postype = p1
velset = 0,0
pos = -5,0
bindtime = 1
ignorehitpause = 1
scale = 0.7,0.7
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11502]
type = Explod
trigger1 = animelem = 2
anim = 22107
sprpriority = 1
postype = p1
velset = 0,0
pos = 0,5
bindtime = 1
ignorehitpause = 1
scale = 0.7,0.7
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[state 11502]
type = velset
trigger1 = p2bodydist X< 0
trigger1 = Time >= 10
x = -1-((ishelper(11501))*2)

[state 11502]
type = velset
trigger1 = p2bodydist X > 0
trigger1 = Time >= 10
x = 1+((ishelper(11501))*2)

[state 11502]
type = velset
trigger1 = p2bodydist Y < 50
trigger1 = Time >= 10
y = -0.2-((ishelper(11501))*0.6)

[state 11502]
type = velset
trigger1 = p2bodydist Y > 50
trigger1 = Time >= 10
y = 0.2+((ishelper(11501))*0.6)

[State 11502]
type = ChangeState
trigger1 = p2dist x = [-50,50]
trigger1 = p2dist y = [-80,80]
value = 12503

[State 11502]
type = DestroySelf
trigger1 = time >= 180;((root,palno = 12)*80)+100+((ishelper(11501))*50)

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11599]
type = S
movetype = A
physics = N
anim = 22107
velset = 0,0
ctrl = 0
sprpriority = 2

[State 11599]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11599]
type = NotHitBy
trigger1 = 1
value = SCA,NT,ST,HT,NA,SA,HA,NP,SP,HP,AA,AP,AT
time = 999999

[state 11599]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 11599
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 11599]
type = PlaySnd
trigger1 = (GameTime%20) = 1
value = 2562, 28
volume = -50

[State 11599]
type = Explod
trigger1 = animelem = 4
anim = 22107
sprpriority = 1
postype = p1
velset = 0,0
pos = 0,-5
bindtime = 1
ignorehitpause = 1
scale = 0.7,0.7
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11599]
type = Explod
trigger1 = animelem = 1
anim = 22107
sprpriority = 1
postype = p1
velset = 0,0
pos = -15,0
bindtime = 1
ignorehitpause = 1
scale = 0.4,0.4
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11599]
type = Explod
trigger1 = animelem = 3
anim = 22107
sprpriority = 1
postype = p1
velset = 0,0
pos = -5,0
bindtime = 1
ignorehitpause = 1
scale = 0.7,0.7
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11599]
type = Explod
trigger1 = animelem = 2
anim = 22107
sprpriority = 1
postype = p1
velset = 0,0
pos = 0,5
bindtime = 1
ignorehitpause = 1
scale = 0.7,0.7
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[state 11599]
type = velset
trigger1 = p2bodydist X< 0 && Time >= 10
x = -1

[state 11599]
type = velset
trigger1 = p2bodydist X > 0 && Time >= 10
x = 1

[state 11599]
type = velset
trigger1 = p2bodydist Y < 50 && Time >= 10
y = -0.2

[state 11599]
type = velset
trigger1 = p2bodydist Y > 50 && Time >= 10
y = 0.2

[State 11599]
type = helper
trigger1 = (GameTime%20) = 1
id = 11500
persistent = 1
name = "koukyu"
pos = 0,0
postype = P1
stateno = 11130
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11599]
type = helper
trigger1 = (GameTime%30) = 1
id = 11500
persistent = 1
name = "koukyu"
pos = 0,0
postype = P1
stateno = 11131
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11599]
type = DestroySelf
trigger1 = time >= ((root,var(1) = 1)*60)+80

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11130]
type = S
movetype = A
physics = N
anim = 22127
velset = -2,-10
ctrl = 0
sprpriority = 2

[State 11130]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11130]
type = NotHitBy
trigger1 = 1
value = SCA,NT,ST,HT,NA,SA,HA,NP,SP,HP,AA,AP,AT
time = 999999

[state 11130]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 11130
ignorehitpause = 1

[State 11130]
type = Explod
triggerall = time >= 20
trigger1 = (GameTime%10) = 1
anim = 22164
sprpriority = 1
postype = p1
vel = -2,0
pos = -20,-20
bindtime = 1
ignorehitpause = 1
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11130]
type = Explod
triggerall = time >= 20
trigger1 = (GameTime%15) = 1
anim = 22164
sprpriority = 1
postype = p1
vel = -2,0
pos = -30,0
bindtime = 1
ignorehitpause = 1
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11130]
type = Explod
triggerall = time >= 20
trigger1 = (GameTime%20) = 1
anim = 22164
sprpriority = 1
postype = p1
vel = -2,0
pos = -45,20
bindtime = 1
ignorehitpause = 1
under = 0
ownpal = 1
Ppausemovetime = 99999999999
supermovetime = 99999999999

[State 11130]
type = veladd
trigger1 = time >= 10&&p2bodydist X< 0&&Vel X >= -6
x = -0.6

[State 11130]
type = veladd
trigger1 = time >= 10&&p2bodydist X > 0&&Vel X <= 6
x = 0.6

[State 11130]
type = veladd
trigger1 = 1
y = 0.5

[State 11130]
type = Projectile
trigger1 = 1
attr = S, HP
projanim = 22128
projhitanim = -1
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
animtype  = diagup
damage    = 0,0
getpower = 0,0
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 0,0
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = -1
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.8

[State 11130]
type = Projectile
trigger1 = p2dist x = [-40,40]
trigger1 = p2dist y = [-60,60]
attr = S, NA
projanim = 22179
projhitanim = -1
projid = 35902
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 0,0
velocity = 0
animtype  = diagup
damage    = Ceil(0.0025 * enemy,Const(data.life)) ,Ceil(0.005 * enemy,Const(data.life)) * var(39)
getpower = 20,20
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 0,4
sparkno = s22109 + root,var(35)
sparkxy = 0,0
hitsound   = s2556,0
guard.sparkno = s22113
guardsound = s120,0
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -2,-4
air.velocity = -2,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 9000
persistent = 0

[state 11130]
type = posset
trigger1 = !ishelper
y = 0

[State 11130]
type = DestroySelf
trigger1 = Movecontact = 1
trigger2 = projcontact = 1

[State 11130]
type = DestroySelf
trigger1 = time >= 70

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11131]
type = S
movetype = A
physics = N
anim = 22127
velset = -2,10
ctrl = 0
sprpriority = 2

[State 11131]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11131]
type = NotHitBy
trigger1 = 1
value = SCA,NT,ST,HT,NA,SA,HA,NP,SP,HP,AA,AP,AT
time = 999999

[state 11131]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 11131
ignorehitpause = 1

[State 11131]
type = Explod
triggerall = time >= 20
trigger1 = (GameTime%10) = 1
anim = 22164
sprpriority = 1
postype = p1
vel = -2,0
pos = -20,-20
bindtime = 1
ignorehitpause = 1
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11131]
type = Explod
triggerall = time >= 20
trigger1 = (GameTime%15) = 1
anim = 22164
sprpriority = 1
postype = p1
vel = -2,0
pos = -30,0
bindtime = 1
ignorehitpause = 1
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11131]
type = Explod
triggerall = time >= 20
trigger1 = (GameTime%20) = 1
anim = 22164
sprpriority = 1
postype = p1
vel = -2,0
pos = -45,20
bindtime = 1
ignorehitpause = 1
under = 0
ownpal = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11131]
type = veladd
trigger1 = time>=10&&p2bodydist X< 0&&Vel X >= -6
x = -0.6

[State 11131]
type = veladd
trigger1 = time>=10&&p2bodydist X > 0&&Vel X <= 6
x = 0.6

[State 11131]
type = veladd
trigger1 = 1
y = -0.5

[State 11131]
type = Projectile
trigger1 = 1
attr = S, HP
projanim = 22128
projhitanim = -1
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
animtype  = diagup
damage    = 0,0
getpower = 0,0
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 0,0
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = -1
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.8

[State 11131]
type = Projectile
trigger1 = p2dist x = [-40,40]
trigger1 = p2dist y = [-60,60]
attr = S, NA
projanim = 22179
projhitanim = -1
projid = 35902
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 10
postype = p1
offset = 0,0
velocity = 0
animtype  = diagup
damage    = Ceil(0.0025 * enemy,Const(data.life)) ,Ceil(0.005 * enemy,Const(data.life)) * var(39)
getpower = 20,20
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 0,4
sparkno = s22109 + root,var(35)
sparkxy = 0,0
hitsound   = s2556,0
guard.sparkno = s22113
guardsound = s120,0
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -2,-4
air.velocity = -2,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 9000
persistent = 0

[state 11131]
type = posset
trigger1 = !ishelper
y = 0

[State 11131]
type = DestroySelf
trigger1 = Movecontact = 1
trigger2 = projcontact = 1

[State 11131]
type = DestroySelf
trigger1 = time >= 70

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 12503]
type = S
movetype = A
physics = N
anim = 22159
velset = 0,0
ctrl = 0
sprpriority = 3

[State 12503]
type = helper
trigger1 = Animelem = 2
id = 11500
persistent = 0
name = "hikari"
pos = 20,20
postype = P1
stateno = 11508
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 12503]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 12503]
type = NotHitBy
trigger1 = 1
value = SCA,NT,ST,HT,NA,SA,HA,NP,SP,HP,AA,AP,AT
time = 999999

[state 12503]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 12503
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 12503]
type = Explod
trigger1 = animelem = 6
anim = 10161
id = 10161
sprpriority = 2
postype = p1
velset = 0,0
pos = 0,0
bindtime = -1
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 12503]
type = PlaySnd
trigger1 = AnimElem = 2
value = 2550, 0

[State 12503]
type = PlaySnd
trigger1 = AnimElem = 3
value = 2552, 0
volume = -50

[State 12503]
type = PlaySnd
trigger1 = AnimElem = 2
value = 2562, 33
volume = 220

[State 12503]
type = EnvShake
trigger1 = AnimElem = 2
time = 8
ampl = -8
freq = 95
phase = 95

[State 12503]
type = Projectile
trigger1 = AnimElem = 2
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22159
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.007 * enemy,Const(data.life)) * root,var(39),Ceil(0.007 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-2
air.velocity = -1,-2
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[State 1]
type = DestroySelf
trigger1 = AnimTime = 0

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11508]
type = S
movetype = A
physics = N
anim = 22160
velset = 0,0
ctrl = 0
sprpriority = 3

[State 11508]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11508]
type = NotHitBy
trigger1 = 1
value = SCA,NT,ST,HT,NA,SA,HA,NP,SP,HP,AA,AP,AT
time = 999999

[state 11508]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 11508
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 11508]
type = Explod
trigger1 = AnimElem = 2 || AnimElem = 4 || AnimElem = 6 || AnimElem = 8 || AnimElem = 10 || AnimElem = 12
trigger2 = AnimElem = 14 || AnimElem = 16 || AnimElem = 18
anim = 22161
sprpriority = 6
postype = p1
pos = 0,0
random = 60,60
removetime = 35
vel = -6 + (random%12),-6 + (random%12)
facing = -1
ownpal = 1
ontop = 1
pausemovetime = 9999999
supermovetime = 9999999

;------------------------------------------------------------------
;------------------------------------------------------------------
[State 11508]
type = Explod
trigger1 = animelem = 2
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = 0,0
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 4
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = 40,-40
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 6
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = 20,40
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 8
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = -40,-20
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 10
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = 10,-5
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 12
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = 60,-60
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 14
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = 70,40
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 16
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = -50,-30
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 18
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 30,0
pos = 0,0
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 8
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = 0,0
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 10
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = 40,-40
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 12
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = 20,40
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 14
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = -40,-20
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 16
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = 10,-5
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 18
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = 60,-60
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 20
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = 70,40
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 22
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = -50,-30
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Explod
trigger1 = animelem = 24
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = 30,0
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
scale = 0.5,0.5
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = Projectile
trigger1 = AnimElem = 3
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[State 11508]
type = Projectile
trigger1 = AnimElem = 5
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 40,-40
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[State 11508]
type = Projectile
trigger1 = AnimElem = 7
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 20,40
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[State 11508]
type = Projectile
trigger1 = AnimElem = 9
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = -40,-20
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[State 11508]
type = Projectile
trigger1 = AnimElem = 11
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 10,-5
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[State 11508]
type = Projectile
trigger1 = AnimElem = 13
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 60,-60
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[State 11508]
type = Projectile
trigger1 = AnimElem = 15
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 70,40
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[State 11508]
type = Projectile
trigger1 = AnimElem = 17
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = -50,-30
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[State 11508]
type = Projectile
trigger1 = AnimElem = 19
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 30,0
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000
;------------------------------------------------------------------
;------------------------------------------------------------------
[State 11508]
type = helper
trigger1 = Animelem = 18
id = 11509
persistent = 0
name = "hikari"
pos = 0,0
postype = P1
stateno = 11509
helpertype = normal
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11508]
type = PlaySnd
trigger1 = AnimElem = 2
value = 2550, 0

[State 11508]
type = PlaySnd
trigger1 = AnimElem = 2 || AnimElem = 4 || AnimElem = 6 || AnimElem = 8 || AnimElem = 10 || AnimElem = 12
trigger2 = AnimElem = 14 || AnimElem = 16 || AnimElem = 18
value = 2562, 9

[State 11508]
type = EnvShake
trigger1 = AnimElem = 2 || AnimElem = 4 || AnimElem = 6 || AnimElem = 8 || AnimElem = 10 || AnimElem = 12
trigger2 = AnimElem = 14 || AnimElem = 16 || AnimElem = 18
time = 5
ampl = -5
freq = 95
phase = 95

[State 11508]
type = DestroySelf
trigger1 = AnimTime = 0


;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 11509]
type = S
movetype = A
physics = N
anim = 22160
velset = 0,0
ctrl = 0
sprpriority = 3

[State 11509]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11509]
type = NotHitBy
trigger1 = 1
value = SCA,NT,ST,HT,NA,SA,HA,NP,SP,HP,AA,AP,AT
time = 999999

[state 11509]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 11509
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 11509]
type = Explod
trigger1 = AnimElem = 2 || AnimElem = 4 || AnimElem = 6 || AnimElem = 8 || AnimElem = 10 || AnimElem = 12
trigger2 = AnimElem = 14 || AnimElem = 16 || AnimElem = 18
anim = 22161
sprpriority = 6
postype = p1
pos = 0,0
random = 60,60
removetime = 35
vel = -6 + (random%12),-6 + (random%12)
facing = -1
ownpal = 1
ontop = 1
pausemovetime = 9999999
supermovetime = 9999999


[State 11509]
type = Explod
trigger1 = animelem = 2
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = -30,0
pos = 0,0
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 4
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = 50,-60
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 6
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = -40,30
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 8
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = 20,60
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 10
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = 70,-30
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 12
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = 0,0
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 14
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = 0,-80
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 16
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = -70,0
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 18
anim = 22159
id = 22159
sprpriority = 2
postype = p1
velset = 0,0
pos = 0,40
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 8
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = -30,0
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 10
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = 50,-60
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 12
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = -40,30
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 14
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = 20,60
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 16
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = 70,-30
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 18
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = 0,0
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 20
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = 0,-80
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 22
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = -70,0
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 11509]
type = Explod
trigger1 = animelem = 24
anim = 10160
id = 10160
sprpriority = 1
postype = p1
velset = 0,0
pos = 0,40
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[state 11509]
type = Projectile
trigger1 = AnimElem = 3
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = -30,0
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[state 11509]
type = Projectile
trigger1 = AnimElem = 5
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 50,-60
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[state 11509]
type = Projectile
trigger1 = AnimElem = 7
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = -40,30
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[state 11509]
type = Projectile
trigger1 = AnimElem = 9
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 20,60
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[state 11509]
type = Projectile
trigger1 = AnimElem = 11
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 70,-30
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[state 11509]
type = Projectile
trigger1 = AnimElem = 13
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[state 11509]
type = Projectile
trigger1 = AnimElem = 15
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 0,-80
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[state 11509]
type = Projectile
trigger1 = AnimElem = 17
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = -70,0
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[state 11509]
type = Projectile
trigger1 = AnimElem = 19
attr = S, NA
projanim = 11503
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 0,40
velocity = 0
animtype  = hard
damage    = Ceil(0.003 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 19000

[State 11509]
type = PlaySnd
trigger1 = AnimElem = 2 || AnimElem = 4 || AnimElem = 6 || AnimElem = 8 || AnimElem = 10 || AnimElem = 12
trigger2 = AnimElem = 14 || AnimElem = 16 || AnimElem = 18
value = 2562, 9

[State 11509]
type = PlaySnd
trigger1 = AnimElem = 3
value = 2562, 32

[State 11509]
type = EnvShake
trigger1 = AnimElem = 2 || AnimElem = 4 || AnimElem = 6 || AnimElem = 8 || AnimElem = 10 || AnimElem = 12
trigger2 = AnimElem = 14 || AnimElem = 16 || AnimElem = 18
time = 6
ampl = -6
freq = 95
phase = 95

[State 11509]
type = DestroySelf
trigger1 = AnimTime = 0

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 19000]
type    = S
movetype= H
physics = N
velset = 0,0

[state 19000]
type = destroyself
trigger1 = ishelper

[State 19000]
type = lifeset
triggerall = enemynear,name="Gold Orochi"&&enemynear,palno=12
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 19000]
type = powerset
triggerall = enemynear,name="Gold Orochi"&&enemynear,palno=12
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 19000]
type = lifeadd
triggerall = name != "Gold Orochi"
trigger1 = life <= (Ceil(0.05 * Const(data.life)))
value = -9999999
absolute = 1

[State 19000]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) != [3,5]
value = ifelse((GetHitVar(groundtype) = 1),5000,5010) + GetHitVar(animtype)

[State 19000]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) = [3,5]
value = 5030

[State 19000]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (GetHitVar(animtype) = [4,5]) && (SelfAnimExist(5047 + GetHitVar(animtype)))
value = 5047 + GetHitVar(animtype)

[State 19000]
type = ChangeAnim
trigger1 = Time > 0
value = anim

[State 19000]
type = StateTypeSet
trigger1 = Time = 0
trigger1 = GetHitVar(yvel) != 0 && GetHitVar(fall)
trigger2 = Pos Y != 0
value = a

[State 19000]
type = ChangeState
trigger1 = HitShakeOver
trigger1 = GetHitVar(yvel) = 0
value = 19001

[State 19000]
type = ChangeState
trigger1 = HitShakeOver
value = 19030

[State 19000]
type = ForceFeedback
trigger1 = anim = 5000
trigger2 = anim = 5010
persistent = 0
time = 6
waveform = square

[State 19000]
type = ForceFeedback
trigger1 = anim = 5001
trigger2 = anim = 5011
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 19000]
type = ForceFeedback
trigger1 = anim = 5012
trigger2 = anim = 5002
trigger3 = anim = 5030
persistent = 0
time = 15
waveform = sinesquare
ampl = 140

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 19001]
type    = S
movetype= H
physics = S

[State 19001]
type = HitVelSet
trigger1 = Time = 0
x = 1

[State 19001]
type = ChangeAnim
trigger1 = AnimTime = 0
value = 5005 + GetHitVar(animtype) + (GetHitVar(groundtype)=2)*10

[State 19001]
type = VelMul
trigger1 = Time >= GetHitVar(slidetime)
x = .6

[State 19001]
type = VelSet
trigger1 = HitOver
x = 0

[State 19001]
type = DefenceMulSet
trigger1 = HitOver
value = 1

[State 19001]
type = SelfState
trigger1 = HitOver
value = 0
ctrl = 1

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 19030]
type    = A
movetype= H
physics = N
ctrl = 0

[State 19030]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 19030]
type = HitVelSet
trigger1 = Time = 0
x = 1
y = 1

[State 19030]
type = SelfState
triggerall = !HitFall
trigger1 = HitOver
trigger2 = Vel Y > 0
trigger2 = Pos Y >= 10
value = 5040

[State 19030]
type = ChangeState
triggerall = HitFall
trigger1 = HitOver
trigger2 = Vel Y > 0
trigger2 = Pos Y >= 10
value = 19050

[State 19030]
type = ChangeState
trigger1 = AnimTime = 0
value = 19035

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 19035]
type    = A
movetype= H
physics = N

[State 19035]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = SelfAnimExist(5035)
trigger1 = Anim != [5051,5059]
trigger1 = Anim != 5090
value = 5035

[State 19035]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 19035]
type = SelfState
triggerall = !HitFall
trigger1 = HitOver
trigger2 = AnimTime = 0
trigger3 = Vel Y > 0
trigger3 = Pos Y >= 10
trigger4 = Time = 0
trigger4 = Anim != 5035
value = 5040

[State 19035]
type = ChangeState
triggerall = HitFall
trigger1 = HitOver
trigger2 = AnimTime = 0
trigger3 = Vel Y > 0
trigger3 = Pos Y >= 10
trigger4 = Time = 0
trigger4 = Anim != 5035.
value = 19050

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd COMBONATION ATTACK [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 19050]
type    = A
movetype= H
physics = N

[State 19050]
type = ChangeAnim
trigger1 = AnimTime = 0
trigger1 = Anim = 5035
trigger2 = Time = 0
trigger2 = Anim != 5035
trigger2 = (Anim != [5051, 5059]) && (Anim != [5061, 5069])
trigger2 = Anim != 5090
value = 5050

[State 19050]
type = ChangeAnim
trigger1 = anim = [5050,5059]
trigger1 = Vel Y >= ifelse(anim = 5050, 1, -2)
trigger1 = SelfAnimExist(anim+10)
value = anim+10
persistent = 0

[State 19050]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 19050]
type = SelfState
triggerall = Vel Y > 0
triggerall = Pos Y >= -20
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5200

[State 19050]
type = SelfState
triggerall = Vel Y > -1
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5210

[State 19050]
type = SelfState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= ifelse((anim = [5051,5059]) || (anim = [5061,5069]), 0, 25)
value = 5100

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ORB RUSH [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 1810]
type     = S
movetype = A
physics  = S
juggle   = 3
poweradd = 0
velset   = 0,0
anim     = 1309
ctrl     = 0
sprpriority = 3

[State 1810]
type = varrandom
trigger1 = 1
range = -40,-130
v = 52

[State 1810]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[State 1810]
type = Explod
trigger1 = time = 15
anim = 900
id = 900
sprpriority = 3
postype = p1
velset = 0,0
pos = 30,-85
bindtime = 1
persistent = 0
ignorehitpause = 1
ontop = 1
ownpal = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1810]
type = Explod
triggerall = time >= 0
trigger1 = (GameTime%2) = 1
anim = 221312
sprpriority = 10
postype = p1
pos = 0,var(52)
bindtime = 1
under = 0
persistent = 1
ignorehitpause = 1
vel = 8,-2 + (random%5)
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1810]
type = Explod
trigger1 = time = 30
anim = 2552
sprpriority = 1
postype = P1
pos = 90,30
removetime = 52
bindtime = 1
supermove = 0
ignorehitpause = 1
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
trans = add

[State 1810]
type = Explod
trigger1 = time = 35
anim = 2552
sprpriority = 1
postype = P1
pos = 150,30
removetime = 52
bindtime = 1
supermove = 0
ignorehitpause = 1
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
trans = add

[State 1810]
type = Explod
trigger1 = time = 40
anim = 2552
sprpriority = 1
postype = P1
pos = 210,30
removetime = 52
bindtime = 1
supermove = 0
ignorehitpause = 1
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
trans = add

[State 1810]
type = Explod
trigger1 = time = 45
anim = 2552
sprpriority = 1
postype = P1
pos = 270,30
removetime = 52
bindtime = 1
supermove = 0
ignorehitpause = 1
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
trans = add

[State 1810]
type = PlaySnd
trigger1 = time = 15
trigger2 = time = 17
trigger3 = time = 19
trigger4 = time = 21
trigger5 = time = 23
trigger6 = time = 25
value = s10000,15

[State 1810]
type = PlaySnd
trigger1 = time = 30
trigger2 = time = 35
trigger3 = time = 40
trigger4 = time = 45
value = s10000,18
volume = -150

[State 1810]
type = PlaySnd
trigger1 = time = 30
trigger2 = time = 35
trigger3 = time = 40
trigger4 = time = 45
value = s2562,27
volume = -150

[State 1810]
type = PlaySnd
trigger1 = time = 30
trigger2 = time = 35
trigger3 = time = 40
trigger4 = time = 45
value = s1300,1
volume = -150

[State 1810]
type = PlaySnd
trigger1 = time = 15
value = 10000,8

[State 1810]
type = PlaySnd
trigger1 = time = 15
value = 10000,9

[State 1810]
type = Projectile
trigger1 = time = 30
projanim = 10275
projremove = 0
projremovetime = 30
projpriority = 1
projsprpriority = 5
projshadow = 0,0,0
getpower = 100
offset = 90,30
attr = S, SP
animtype = Hard
damage = 20+random%30,1
hitflag = MAFP
guardflag = M
guardsound = s120,0
sparkno = -1
guard.sparkno = s22113
pausetime = 2,4
ground.type = High
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -2,-10
air.juggle = 8
air.velocity = -2,-10
fall = 1
air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 8
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1810]
type = Projectile
trigger1 = time = 35
projanim = 10275
projremove = 0
projremovetime = 30
projpriority = 1
projsprpriority = 5
projshadow = 0,0,0
getpower = 100
offset = 150,30
attr = S, SP
animtype = Hard
damage = 20+random%30,1
hitflag = MAFP
guardflag = M
guardsound = s120,0
sparkno = -1
guard.sparkno = s22113
pausetime = 2,4
ground.type = High
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -2,-10
air.juggle = 8
air.velocity = -2,-10
fall = 1
air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 8
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1810]
type = Projectile
trigger1 = time = 40
projanim = 10275
projremove = 0
projremovetime = 30
projpriority = 1
projsprpriority = 5
projshadow = 0,0,0
getpower = 100
offset = 210,30
attr = S, SP
animtype = Hard
damage = 20+random%30,1
hitflag = MAFP
guardflag = M
guardsound = s120,0
sparkno = -1
guard.sparkno = s22113
pausetime = 2,4
ground.type = High
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -2,-10
air.juggle = 8
air.velocity = -2,-10
fall = 1
air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 8
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1810]
type = Projectile
trigger1 = time = 45
projanim = 10275
projremove = 0
projremovetime = 30
projpriority = 1
projsprpriority = 5
projshadow = 0,0,0
getpower = 100
ownpal = 0
offset = 270,30
attr = S, SP
animtype = Hard
damage = 20+random%30,1
hitflag = MAFP
guardflag = M
guardsound = s120,0
sparkno = -1
guard.sparkno = s22113
pausetime = 2,4
ground.type = High
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -2,-10
air.juggle = 8
air.velocity = -2,-10
fall = 1
air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 8
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1810]
type = Projectile
trigger1 = time = 15
projanim = 26200
projid = 26200
projremove = 1
projpriority = 1
projhitanim = -1
projremanim = -1
projsprpriority = 5
projshadow = 0,0,0
projremovetime = -1
getpower = 100
ownpal = 0
offset = 30,-40
velocity = 14, 0
attr = S, SP
animtype = Hard
damage = 20+random%20,10
hitflag = MAFP
guardflag = M
hitsound = s2562,27
guardsound = s120,0
pausetime = 0,10
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 20,0
ground.type = high
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -9
air.juggle = 8
air.velocity = -3.6,-3.8
air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 3
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1810]
type = Projectile
trigger1 = time = 20
projanim = 26200
projid = 26200
projremove = 1
projpriority = 1
projhitanim = -1
projremanim = -1
projsprpriority = 5
projshadow = 0,0,0
projremovetime = -1
getpower = 100
ownpal = 0
offset = 30,-70
velocity = 14, 0
attr = S, SP
animtype = Hard
damage = 20+random%20,10
hitflag = MAFP
guardflag = M
hitsound = s2562,27
guardsound = s120,0
pausetime = 0,10
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 20,0
ground.type = high
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -9
air.juggle = 8
air.velocity = -3.6,-3.8
air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 3
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1810]
type = Projectile
trigger1 = time = 25
projanim = 26200
projid = 26200
projremove = 1
projpriority = 1
projhitanim = -1
projremanim = -1
projsprpriority = 5
projshadow = 0,0,0
projremovetime = -1
getpower = 100
ownpal = 0
offset = 30,-100
velocity = 14, 0
attr = S, SP
animtype = Hard
damage = 20+random%20,10
hitflag = MAFP
guardflag = M
hitsound = s2562,27
guardsound = s120,0
pausetime = 0,10
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 20,0
ground.type = high
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -9
air.juggle = 8
air.velocity = -3.6,-3.8
air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 3
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1810]
type = Projectile
trigger1 = time = 15
projanim = 26200
projid = 26200
projremove = 1
projpriority = 1
projhitanim = -1
projremanim = -1
projsprpriority = 5
projshadow = 0,0,0
projremovetime = -1
getpower = 100
ownpal = 0
offset = 90,-200
velocity = 14, 7
attr = S, SP
animtype = Hard
damage = 20+random%20,10
hitflag = MAFP
guardflag = M
hitsound = -1
guardsound = s120,0
pausetime = 0,10
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 20,0
ground.type = high
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -9
air.juggle = 8
air.velocity = -3.6,-3.8
air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 3
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1810]
type = Projectile
trigger1 = time = 15
projanim = 26200
projid = 26200
projremove = 1
projpriority = 1
projhitanim = -1
projremanim = -1
projsprpriority = 5
projshadow = 0,0,0
projremovetime = -1
getpower = 100
ownpal = 0
offset = 90,0
velocity = 14, -7
attr = S, SP
animtype = Hard
damage = 20+random%20,10
hitflag = MAFP
guardflag = M
hitsound = -1
guardsound = s120,0
pausetime = 0,10
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 20,0
ground.type = high
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -9
air.juggle = 8
air.velocity = -3.6,-3.8
air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 3
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1810]
type = Projectile
trigger1 = time = 20
projanim = 26200
projid = 26200
projremove = 1
projpriority = 1
projhitanim = -1
projremanim = -1
projsprpriority = 5
projshadow = 0,0,0
projremovetime = -1
getpower = 100
ownpal = 0
offset = 140,-200
velocity = 14, 14
attr = S, SP
animtype = Hard
damage = 20+random%20,10
hitflag = MAFP
guardflag = M
hitsound = s2562,27
guardsound = s120,0
pausetime = 0,10
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 20,0
ground.type = high
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -9
air.juggle = 8
air.velocity = -3.6,-3.8
air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 3
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1810]
type = Projectile
trigger1 = time = 20
projanim = 26200
projid = 26200
projremove = 1
projpriority = 1
projhitanim = -1
projremanim = -1
projsprpriority = 5
projshadow = 0,0,0
projremovetime = -1
getpower = 100
ownpal = 0
offset = 140,0
velocity = 14, -14
attr = S, SP
animtype = Hard
damage = 20+random%20,10
hitflag = MAFP
guardflag = M
hitsound = s2562,27
guardsound = s120,0
pausetime = 0,10
sparkno = s22109 + var(35)
guard.sparkno = s22113
sparkxy = 20,0
ground.type = high
ground.hittime = 21
ground.slidetime = 21
ground.velocity = -9
air.juggle = 8
air.velocity = -3.6,-3.8
air.fall = 1
envshake.time = 4
envshake.freq = 180
envshake.ampl = 3
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[State 1810]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd PILLAR RUSH [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 22170]
type    = S
movetype= I
physics = S
juggle  = 7
poweradd= 50
ctrl = 0
velset = 0,0
anim = 11500
sprpriority = 2

[state 22170]
type = varset
trigger1 = time = 0
trigger1 = command = "c"
v = 6
value = 4

[state 22170]
type = Explod
trigger1 = time = 14
anim = 32300
sprpriority = 2
postype = p1
pos = 30,-103
bindtime = -1
supermove = 1
under = 0
removetime = 10
supermovetime = 2147483647
pausemovetime = 2147483647

[State 22170]
type = Explod
trigger1 = time = 24
anim = 32350
sprpriority = 2
postype = p1
pos = 30,-103
bindtime = -1
supermove = 1
under = 0
removetime = 12
supermovetime = 2147483647
pausemovetime = 2147483647

[State 22170]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[State 22170]
type = PlaySnd
trigger1 = animelem = 4
value = 1500,0
volume = 255

[State 22170]
type = helper
trigger1 = time = 4
id = 22171
persistent = 0
name = "guangzhu"
pos = 30,0
postype = P1
stateno = 9150
helpertype = player
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 22170]
type = helper
trigger1 = time = 8
id = 22171
persistent = 0
name = "guangzhu"
pos = 90,0
postype = P1
stateno = 9150
helpertype = player
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 22170]
type = helper
trigger1 = time = 12
id = 22171
persistent = 0
name = "guangzhu"
pos = 150,0
postype = P1
stateno = 9150
helpertype = player
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 22170]
type = helper
trigger1 = time = 16
id = 22171
persistent = 0
name = "guangzhu"
pos = 210,0
postype = P1
stateno = 9150
helpertype = player
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 22170]
type = helper
trigger1 = time = 20
id = 22171
persistent = 0
name = "guangzhu"
pos = 270,0
postype = P1
stateno = 9150
helpertype = player
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 22170]
type = helper
trigger1 = time = 22
id = 22171
persistent = 0
name = "guangzhu"
pos = 330,0
postype = P1
stateno = 9150
helpertype = player
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 22170]
type = helper
trigger1 = time = 22
id = 22171
persistent = 0
name = "guangzhu"
pos = 390,0
postype = P1
stateno = 9150
helpertype = player
keyctrl = 0
pausemovetime = 99999999999
supermovetime = 99999999999

[State 22170]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd FOUR EXPLODES [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 3001]
type    = S
movetype= A
physics = N
juggle  = 8
poweradd= 80
velset = 0,0
anim = 1049
ctrl = 0

[State 3001]
type = varrandom
trigger1 = 1
range = -40,-130
v = 52

[State 3001]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[state 3001]
type = posadd
trigger1 = animelem = 9
trigger2 = animelem = 10
trigger3 = animelem = 11
x = -8

[State 3001]
type = NotHitBy
trigger1 = animelem=4,<=0
value = SCA

[State 3001]
type = Explod
triggerall = time >= 0
trigger1 = (GameTime%2) = 1
anim = 221312
sprpriority = 10
postype = p1
pos = 0,var(52)
bindtime = 1
under = 0
persistent = 1
ignorehitpause = 1
vel = 8,-2 + (random%5)
supermovetime = 2147483647
pausemovetime = 2147483647

[State 3001]
type = playsnd
trigger1 = animelem = 7
value = 1050,0

[State 3001]
type = PlaySnd
trigger1 = animelem=7||animelem=8
value = 10000,44
volume= 255

[state 3001]
type = Explod
trigger1 = time = 16
anim = 32300
sprpriority = 1
postype = p1
pos = 30,-100
bindtime = -1
supermove = 1
under = 0
removetime = 15
supermovetime = 2147483647
pausemovetime = 2147483647

[State 3001]
type = Explod
trigger1 = time = 31
anim = 32350
sprpriority = 1
postype = p1
pos = 30,-100
bindtime = -1
supermove = 1
under = 0
removetime = 12
supermovetime = 2147483647
pausemovetime = 2147483647

[State 3001]
type = helper
trigger1 = Animelem = 8
id = 3002
persistent = 0
name = "koukyu"
pos = 124,-100
postype = P1
stateno = 3002
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 3001]
type = helper
trigger1 = Animelem = 8
id = 3002
persistent = 0
name = "koukyu"
pos = 35,-100
postype = P1
stateno = 3002
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 3001]
type = helper
trigger1 = Animelem = 8
id = 3002
persistent = 0
name = "koukyu"
pos = 80,-140
postype = P1
stateno = 3002
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 3001]
type = helper
trigger1 = Animelem = 8
id = 3002
persistent = 0
name = "koukyu"
pos = 80,-60
postype = P1
stateno = 3002
helpertype = player
keyctrl = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state 3001]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd FOUR EXPLODES [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 3002]
type = S
movetype = I
physics = N
anim = 22106
velset = 0,0
ctrl = 0
sprpriority = 2

[State 3002]
type = NotHitBy 
trigger1 = 1
value = SCA
ignorehitpause = 1

[State 3002]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AT,AP
stateno = 3002
ignorehitpause = 1

[State 3002]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 3002]
type = varset
trigger1 = enemy,pos x=[-320,320]
trigger1 = enemy,pos y=[-480,60]
trigger1 = enemy,pos x-pos x<0
trigger2 = enemy,pos x!=[-320,320]
trigger2 = enemy,pos y!=[-480,60]
trigger2 = enemynear,pos x-pos x<0
v = 0
value = 1
ignorehitpause = 1

[State 3002]
type = varset
trigger1 = enemy,pos x=[-320,320]
trigger1 = enemy,pos y=[-480,60]
trigger1 = enemy,pos x-pos x>=0
trigger2 = enemy,pos x!=[-320,320]
trigger2 = enemy,pos y!=[-480,60]
trigger2 = enemynear,pos x-pos x>=0
v = 0
value = 0
ignorehitpause = 1

[State 3002]
Type = Turn
Trigger1 = facing = -1
ignorehitpause = 1

[state 3002]
type = velset
triggerall = var(0) =1
trigger1 = p2bodydist X< 0 && Time >= 20
x = -7.5

[State 3002]
type = velset
triggerall = var(0)=0
trigger1 = p2bodydist X > 0 && Time >= 20
x = 7.5

[state 3002]
type = velset
triggerall = var(0) =1
trigger1 = p2bodydist Y < 50 && Time >= 20
y = -4.0

[state 3002]
type = velset
triggerall = var(0)=0
trigger1 = p2bodydist Y > 50 && Time >= 20
y = 4.0

[state 3002]
type = posset
trigger1 = !ishelper
y = 0

[State 3002]
type = ChangeState
triggerall = 1 && ishelper
trigger1 = p2dist x = [-50,50]
trigger1 = p2dist y = [-80,80]
value = 3004

[State 3002]
type = ChangeState
triggerall =  1 && ishelper
trigger1 = projcontact = 1
value = 3004

[State 3002]
type = ChangeState
trigger1 = time >= 60 && ishelper
value = 3004

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd FOUR EXPLODES [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 3004]
type    = A
movetype= I
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 22162

[State 3004]
type = Explod
trigger1 = animelem = 1
anim = 22159
id = 22159
sprpriority = 3
postype = p1
velset = 0,0
pos = 0,0
bindtime = 1
persistent = 0
ignorehitpause = 1
under = 0
supermovetime = 2147483647
pausemovetime = 2147483647
scale = .5,.5

[state 3004]
type = playsnd
trigger1 = time = 0
value = 4000,20
volume = 255

[state 3004]
type = playsnd
trigger1 = time = 0
value = 225,1

[state 3004]
type = nothitby
trigger1 = 1
value = SCA

[State 3004]
type = Projectile
trigger1 = time = 0
attr = S, NA
projanim = 22179
projid = 35902
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 1
projremovetime = 10
postype = p1
offset = 0,0
animtype  = diagup
damage = 40+random%20,5
getpower = 20,20
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 0,4
sparkno = s10160
sparkxy = 0,0
hitsound   = s1450,02
guard.sparkno = s22113
guardsound = s120,0
ground.type = hard
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.5
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 9000
supermovetime = 2147483647
pausemovetime = 2147483647

[State 3004]
type = Explod
trigger1 = root,projcontacttime(35902) = 1
anim = 10161
id = 101600
sprpriority = 3
postype = p1
pos = 0,0
bindtime = 1
supermove = 0
scale = .5,.5
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647
under = 0

[state 3004]
type = destroyself
trigger1 = AnimTime = 0

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ORB-CANNON [SPECIAL STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[Statedef 22222]
type = S
ctrl = 0
anim = 2402
velset = 0,0

[State 22222]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

;--------------------------------------
[State 22222]
type = Helper
triggerall = !ishelper
trigger1 = Time = 0
name = "supia"
stateno = 9150
ID = 3113
pos = 115,-160
keyctrl = 0
postype = p1
supermovetime = 99999999
pausemovetime = 99999999
IgnoreHitPause = 1
Persistent = 0
ontop = 1

[State 22222]
type = Helper
triggerall = !ishelper
trigger1 = Time = 50
name = "supia"
stateno = 9150
ID = 3112
pos = 50,-80
keyctrl = 0
postype = p1
supermovetime = 99999999
pausemovetime = 99999999
IgnoreHitPause = 1
Persistent = 0
ontop = 1

[State 22222]
type = Helper
triggerall = !ishelper
trigger1 = Time = 100
name = "supia"
stateno = 9150
ID = 3114
pos = 115,0
keyctrl = 0
postype = p1
supermovetime = 99999999
pausemovetime = 99999999
IgnoreHitPause = 1
Persistent = 0
ontop = 1

[State 22222]
type = Helper
triggerall = !ishelper
trigger1 = Time = 150
name = "supia"
stateno = 9150
ID = 3111
pos = 135,-80
keyctrl = 0
postype = p1
supermovetime = 99999999
pausemovetime = 99999999
IgnoreHitPause = 1
Persistent = 0
ontop = 1

;--------------------------------------
[State 22222]
type = Explod
trigger1 = time = 0
anim = 32300
id = 32300
pos = 65,-160
postype = p1
bindtime = -1
sprpriority = 9999999
under= 1
removetime = 224
supermovetime = 999999999
pausemovetime = 999999999
ignorehitpause = 1

[State 22222]
type = Explod
trigger1 = time = 0
anim = 32300
id = 7109
pos = 65,0
postype = p1
bindtime = -1
sprpriority = 9999999
removetime = 224
under= 1
supermovetime = 999999999
pausemovetime = 999999999
ignorehitpause = 1

[State 22222]
type = Explod
trigger1 = time = 0
anim = 32300
id = 32300
pos = 25,-80
postype = p1
bindtime = -1
removetime = 224
sprpriority = 9999999
under= 1
supermovetime = 999999999
pausemovetime = 999999999
ignorehitpause = 1
trans = add

[State 22222]
type = Explod
trigger1 = time = 0
anim = 32300
id = 32300
pos =105,-80
postype = p1
bindtime = -1
sprpriority = 9999999
removetime = 224
under= 1
supermovetime = 999999999
pausemovetime = 999999999
ignorehitpause = 1
trans = add

;--------------------------------------
[State 22222]
type = Explod
trigger1 = time = 0
anim = 8017
id = 8017
pos = 70,-80
postype = p1
bindtime = -1
sprpriority = 9999999
removetime = 224
under= 1
scale = 0.3,0.6
supermovetime = 999999999
pausemovetime = 999999999
ignorehitpause = 1
trans = add

[State 22222]
type = Explod
trigger1 = time = 0
anim = 8038
id = 8038
pos = 65,-80
postype = p1
bindtime = -1
sprpriority = 2;9999999
removetime = 224
under= 1
scale = 0.5,1
supermovetime = 999999999
pausemovetime = 999999999
ignorehitpause = 1

[State 22222]
type = Explod
trigger1 = time = 0
anim = 8039
id = 8039
pos = 65,-80
postype = p1
bindtime = -1
sprpriority = 2;9999999
removetime = 224
under= 1
scale = 0.5,1
supermovetime = 999999999
pausemovetime = 999999999
ignorehitpause = 1

[State 22222]
type = Explod
trigger1 = time = 0
anim = 8040
id = 8040
pos = 45,-80
postype = p1
bindtime = -1
sprpriority = 2;9999999
removetime = 224
under= 1
scale = 0.5,1.3
supermovetime = 999999999
pausemovetime = 999999999
ignorehitpause = 1

;--------------------------------------
[State 22222]
type = Explod
triggerall = !ishelper
trigger1 = time = 0
anim = 3493
ID = 3493
sprpriority = -1
postype = p1
pos = -20,30
bindtime = -1
under = 0
scale = 0.5,0.5
removetime = 206
trans = add
persistent = 0
ignorehitpause = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 22222]
type = Explod
triggerall = !ishelper
trigger1 = time = 206
anim = 3494
ID = 3494
sprpriority = -1
postype = p1
pos = -20,30
bindtime = -1
under = 0
removetime = 18
scale = 0.5,0.5
trans = add
persistent = 0
ignorehitpause = 1
pausemovetime = 99999999999
supermovetime = 99999999999

[State 22222]
type = Helper
trigger1 = time = [17,210]
trigger1 = gametime%18 = 0
ID = 11031
stateno = 11031
pos = 64,-72-random%50
;ownpal = 1
pausemovetime = 2000000000
supermovetime = 2000000000

[State 22222]
type = Helper
trigger1 = time = [17,210]
trigger1 = gametime%18 = 0
ID = 11031
stateno = 11031
pos = 64,-62-random%50
;ownpal = 1
pausemovetime = 2000000000
supermovetime = 2000000000

[State 22222]
type = Helper
trigger1 = time = [17,210]
trigger1 = gametime%18 = 0
ID = 11031
stateno = 11031
pos = 64,-52-random%40
;ownpal = 1
pausemovetime = 2000000000
supermovetime = 2000000000

[State 22222]
type = Helper
trigger1 = time = [17,210]
trigger1 = gametime%18 = 0
ID = 11031
stateno = 11031
pos = 64,-42-random%50
;ownpal = 1
pausemovetime = 2000000000
supermovetime = 2000000000

[State 22222]
type = Helper
trigger1 = time = [17,210]
trigger1 = gametime%18 = 0
ID = 11031
stateno = 11031
pos = 64,-52-random%50
;ownpal = 1
pausemovetime = 2000000000
supermovetime = 2000000000


[state 22222]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
ignorehitpause = 1

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ORB-CANNON [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[statedef 11031]
movetype = A
velset = 5 - random%3,((random%51) - 25)/10.000
anim = 26200
SprPriority = 5
movehitpersist = (name!="Gold Orochi")
hitdefpersist = (name!="Gold Orochi")

[state 11031]
type = nothitby
trigger1 = 1
value = SCA

[State 11031, PlaySnd]
Type = PlaySnd
Trigger1 = time = 0
freqmul = 1.0
Value = S10000, 15

[State 11031]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[state 11031]
type = HitDef
trigger1 = MoveContact = 0
attr = ,AA,AP,AT
hitflag = MAFDHL
guardflag = M
damage = 20,2
pausetime = 0,5
guard.pausetime = 0,5
sparkno = -1
sparkxy = 0,0
guard.sparkno = -1
animtype = hard
ground.type = high
ground.slidetime = 18
ground.hittime = 18
ground.velocity = -1
guard.velocity = -1.8
air.velocity = -1,-1
fall = 0
air.fall = 1
fall.recover = 0

[state 11031]
type = HitDef
trigger1 = MoveContact > 0
attr = ,AA,AT,AP
hitflag =

[State 11031]
type = EnvColor
trigger1 = movehit = 1
under = 1

[state 11031]
type = changestate
trigger1 = MoveContact > 0
Value = 11032

[state 11031]
type = destroyself
Trigger1 = FrontEdgeBodyDist < -30 || BackEdgeBodyDist < -30

;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
;LGMO3rd ORB-CANNON [HELPER STATE]
;--------------------------------------------------------------------------
;--------------------------------------------------------------------------
[statedef 11032]
velset = 0,0
anim = 2320
SprPriority = 5

[state 11032]
type = nothitby
trigger1 = 1
value = SCA

[State 11032, PlaySnd]
Type = PlaySnd
Trigger1 = time = 0
freqmul = 1.0
Value = S4000, 20

[State 11032]
type = Explod
trigger1 = time > 0 && gametime%18 = 0
id = 10010
anim = 10007
pos = -10,0
random = 80,80
facing = 1 - 2*(random%2)
vfacing = 1 - 2*(random%2)
sprpriority = 0 + 4*(random < 500)
scale = 0.01*(40 + random%20),0.01*(40 + random%20)
pausemovetime = 2000000000
supermovetime = 2000000000

[State 11032]
type = Explod
trigger1 = time = 0
id = 22227
anim = 22159
sprpriority = 9
scale = .4,.4
pos = 0,0
pausemovetime = 2000000000
supermovetime = 2000000000

[State 11032]
type = Explod
trigger1 = time = 0
id = 22227
anim = 22159
sprpriority = 9
scale = .32,.32
pos = 0,0
pausemovetime = 2000000000
supermovetime = 2000000000

[State 11032]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[state 11032]
type = destroyself
Trigger1 = time = 25

;---------------------------------------------------------------------------
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;----------------------------------------------------------------------
;----------------------------------------------------------------------
;LGMO3rd EVANGELION HOLD [SPECIAL STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[Statedef 11108]
type     = S
movetype = A
physics  = S
anim     = 1108
poweradd = 120
ctrl = 0

[state 11108]
type=posset
trigger1=pos y!=0
y=0

[state 11108]
type = posset
trigger1 = !ishelper
y = 0

[State 11108]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[State 11108]
type = PlaySnd
trigger1 = time = 0
value = 1101, 0

[State 11108]
type = Explod
triggerall = numexplod(927)=0
trigger1 = time = 0
anim = 927
ID = 927
pos = 10,-95
postype = p1
bindtime = -1
vel = 0, 0
accel = 0, 0
random = 0, 0
removetime = -2
ignorehitpause = 1 
supermove = 1
supermovetime = 0
pausemovetime = 0
scale = 1,1;.5, .5
sprpriority = 5
ontop = 0
shadow = 0, 0, 0
ownpal = 0
removeongethit = 0

[State 11108]
type = Explod
triggerall = numexplod(934)=0
trigger1 = time = 44
anim = 934
ID = 93444
pos = 20,-102
postype = p1
bindtime = -1
vel = 0, 0
accel = 0, 0
random = 0, 0
removetime = -2
ignorehitpause = 1 
supermove = 1
supermovetime = 0
pausemovetime = 0
scale = .5, .5
sprpriority = 1
ontop = 0
shadow = 0, 0, 0
ownpal = 0
removeongethit = 0

[State 11108]
type = ChangeState
trigger1 = animtime = 0
value = 11109
ctrl = 1

;----------------------------------------------------------------------
;----------------------------------------------------------------------
;LGMO3rd EVANGELION HOLD [SPECIAL STATE]
;----------------------------------------------------------------------
;----------------------------------------------------------------------
[Statedef 11109]
type     = S
movetype = A
physics  = S
anim     = 1109
poweradd = 0
ctrl = 0

[State 11109]
type=nothitby
triggerall = name = "Gold Orochi"
triggerall= palno = 12
trigger1=1
value=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
value2=sca,na,sa,ha,np,sp,hp,nt,st,ht,aa,ap,at
time=2147483647
ignorehitpause=1
persistent=1
pausemovetime=9999999
supermovetime=9999999

[State 11109]
type = PlaySnd
trigger1 = time = 0
value = 1101, 1

[State 11109]
type = Projectile
trigger1 = time = 0
projID = 948099
projanim = 948
projremove = 0
projpriority = 7
projremovetime = 12
getpower = 0
ownpal = 0
projscale = 0.5, 0.5
offset = 0,-84
velocity = 0
attr = A, AA
animtype = up
damage = 60 ,15
hitflag = MAFPD
guardflag = M
hitsound = s225,1
guardsound = s120,0
pausetime = 0,5
sparkno = -1
guard.sparkno = s22113
sparkxy = -10,floor(-75+(enemynear, pos y))
ground.type = High
ground.slidetime = 20
ground.hittime = 21
ground.velocity = -8, -3
p2stateno = 1140
air.velocity = -8, -3
air.type = Low
fall.recover = 0
fall = 1
getpower = 0,0

[State 11109]
type = Explod
triggerall = numexplod(931)<=1
trigger1 = time = 0
anim = 931
ID = 931
pos = -50,-80
postype = p1
bindtime = 1
removetime = -2
ignorehitpause = 1 
supermove = 1
supermovetime = 0
pausemovetime = 0
scale = .75, .75
sprpriority = 5
ontop = 0
shadow = 0, 0, 0
ownpal = 0
removeongethit = 0
trans = add

[State 11109]
type = Explod
triggerall = numexplod(931)<=1
trigger1 = time = 1
anim = 931
ID = 931
pos = 40,-90
postype = p1
bindtime = 1
removetime = -2
ignorehitpause = 1 
supermove = 1
supermovetime = 0
pausemovetime = 0
scale = .5, .5
sprpriority = 5
ontop = 0
shadow = 0, 0, 0
ownpal = 0
removeongethit = 0
trans = add

[State 11109]
type = Explod
triggerall = numexplod(932)<=3
trigger1 = time = 2
anim = 932
ID = 932
pos = 120,-120
postype = p1
bindtime = 1
removetime = -2
ignorehitpause = 1 
supermove = 1
supermovetime = 0
pausemovetime = 0
scale = .25, .25
sprpriority = 5
ontop = 0
shadow = 0, 0, 0
ownpal = 0
removeongethit = 0
trans = add

[State 11109]
type = Explod
triggerall = numexplod(932)<=3
trigger1 = time = 3
anim = 932
ID = 932
pos = 180,-128
postype = p1
bindtime = 1
removetime = -2
ignorehitpause = 1 
supermove = 1
supermovetime = 0
pausemovetime = 0
scale = .175, .175
sprpriority = 5
ontop = 0
shadow = 0, 0, 0
ownpal = 0
removeongethit = 0
trans = add

[State 11109]
type = Explod
triggerall = numexplod(932)<=3
trigger1 = time = 4
anim = 932
ID = 932
pos = 220,-136
postype = p1
bindtime = 1
removetime = -2
ignorehitpause = 1 
supermove = 1
supermovetime = 0
pausemovetime = 0
scale = .08, .08
sprpriority = 5
ontop = 0
shadow = 0, 0, 0
ownpal = 0
removeongethit = 0
trans = add

[State 11109]
type = EnvShake
trigger1 = AnimElem = 1
time = 12
freq = 90
ampl = -6
phase = 0

[State 11109]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1