;============================================================ ;-----------------------------------; ; Low Green ball ; ;-----------------------------------; [Statedef 1000] type = S movetype= A physics = S juggle = 2 ctrl = 0 velset = 0,0 anim = 1000 sprpriority = 2 [State 1200, Sonido] type = PlaySnd trigger1 = time = 3 value = 20, 1 channel = 0 [State 0, Explod] type = Explod trigger1 = time = 0 anim = 1001 bindtime = -1 scale = const(size.xscale),const(size.yscale) sprpriority = 1 removetime = 9 ownpal = 1 trans = addalpha alpha = 36,256 removeongethit = 1 [State 0, Explod] type = Explod trigger1 = time = 0 anim = 1001 bindtime = -1 scale = const(size.xscale),const(size.yscale) sprpriority = 3 ownpal = 1 removeongethit = 1 [State 2, helperbola] type = Helper trigger1 = animelem = 4 ID = 1001 stateno = 1001 pos = 70*const(size.xscale), -70*const(size.xscale) ownpal = 1 persistent = 0 ignorehitpause = 1 [State 1200, 10] type = ChangeState trigger1 = AnimTime = 0 ctrl = 1 value = 0 ;------------------------- [Statedef 1001] type = S movetype= A physics = S juggle = 11 anim = 1002 sprpriority = 0 [State 1000, 0.12] type = VelSet trigger1 = time = 0 X = 9 Y = -2 [State 1000, 0.12] type = Veladd trigger1 = time < 5 trigger1 = time > 0 X = 9 Y = -0.4 [State 1000, 0.12] type = Veladd trigger1 = time >= 5 X = 9 Y = 0.4 [State 0, Explod] type = Explod trigger1 = time%2 = 0 && !movecontact anim = 1003 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = 3 scale = 0.6,0.6 sprpriority = 1 ownpal = 1 [State 1200, BoltFat] type = hitdef trigger1 = !movecontact attr = S, NP damage = 100, 30 air.animtype = Back guardflag = HL pausetime = 1,2 sparkno = -1 sparkxy = 0,0;20,-30 guard.sparkno = -1 hitsound = S20,3 guardsound = 5,14 ground.velocity = -4,0 air.fall=1 air.velocity = -4,-5 air.juggle = 3 ground.hittime = 12 air.hittime = 12 guard.slidetime = 12 guard.dist = 90 yaccel = 0.5 p2facing = 1 p2stateno = 21238 kill = (root,Var(9) = 0) fall.kill = (root,Var(9) = 0) guard.kill = (root,Var(9) = 0) [State 1200, Sonido] type = PlaySnd trigger1 = movecontact value = 20, 2 volumescale = 200 ignorehitpause = 1 persistent = 0 [State 0, Explod] type = Explod trigger1 = movecontact anim = 1004 bindtime = 1 pos = 20,0 scale = 1,1 sprpriority = 4 ownpal = 1 removeongethit = 1 ignorehitpause = 1 persistent = 0 [State 2000, 0.5] type = targetvelset trigger1 = moveguarded x = -2 ignorehitpause = 1 [State 2000, 0.5] type = velset trigger1 = movecontact x = 0 y = 0 [State 1000, 0.1] type = Destroyself trigger1 = movecontact > 12 trigger2 = FrontEdgeDist < -120 [Statedef 1011] type = S movetype= A physics = S juggle = 11 anim = 1002 sprpriority = 1 [State 1000, 0.12] type = VelSet trigger1 = time = 0 X = 8 Y = -6 [State 1000, 0.12] type = Veladd trigger1 = time < 4 trigger1 = time > 0 X = 8 Y = -0.5 [State 1000, 0.12] type = Veladd trigger1 = time >= 4 X = 8 Y = 0.5 [State 0, Explod] type = Explod trigger1 = time%2 = 0 && !movecontact anim = 1003 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = 3 scale = 0.6,0.6 sprpriority = 1 ownpal = 1 [State 1200, BoltFat] type = hitdef trigger1 = !movecontact attr = S, NP damage = 100, 30 air.animtype = Back guardflag = HL pausetime = 1,2 sparkno = -1 sparkxy = 0,0;20,-30 guard.sparkno = -1 hitsound = S20,3 guardsound = 5,14 ground.velocity = -4,0 air.fall=1 air.velocity = -4,-5 air.juggle = 3 ground.hittime = 12 air.hittime = 12 guard.slidetime = 12 guard.dist = 90 yaccel = 0.5 p2facing = 1 p2stateno = 21238 kill = (root,Var(9) = 0) fall.kill = (root,Var(9) = 0) guard.kill = (root,Var(9) = 0) [State 1200, Sonido] type = PlaySnd trigger1 = movecontact value = 20, 2 volumescale = 200 ignorehitpause = 1 persistent = 0 [State 0, Explod] type = Explod trigger1 = movecontact anim = 1004 bindtime = 1 pos = 20,0 scale = 1,1 sprpriority = 4 ownpal = 1 removeongethit = 1 ignorehitpause = 1 persistent = 0 [State 2000, 0.5] type = targetvelset trigger1 = moveguarded x = -2 ignorehitpause = 1 [State 2000, 0.5] type = velset trigger1 = movecontact x = 0 y = 0 [State 1000, 0.1] type = Destroyself trigger1 = movecontact > 12 trigger2 = FrontEdgeBodyDist < -130 [Statedef 1021]; ball flies back type = S movetype= A physics = N sprpriority = 0 [State 1000, 0.12] type = turn trigger1 = time = 0 [State 1000, 0.12] type = Veladd trigger1 = time = 0 X = 9 Y = -1 [State 1000, 0.12] type = Veladd trigger1 = time < 5 Y = -0.4 [State 1000, 0.12] type = Veladd trigger1 = time >= 5 Y = 0.4 [State 0, Explod] type = Explod trigger1 = time%2 = 0 && !movecontact anim = 1003 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = 3 scale = 0.6,0.6 sprpriority = 1 ownpal = 1 [State 1200, BoltFat] type = hitdef trigger1 = !movecontact attr = S, HP damage = 100, 30 affectteam = F air.animtype = Back guardflag = HL pausetime = 1,2 sparkno = -1 p2facing = 1 sparkxy = 0,0;20,-30 guard.sparkno = -1 hitsound = S20,3 guardsound = 5,14 ground.velocity = -4,0 air.fall=1 air.velocity = -4,-5 air.juggle = 3 ground.hittime = 12 air.hittime = 12 guard.slidetime = 12 guard.dist = 90 yaccel = 0.5 p2stateno = 21238 kill = (enemy,Var(9) = 0) fall.kill = (enemy,Var(9) = 0) guard.kill = (enemy,Var(9) = 0) [State 1200, Sonido] type = PlaySnd trigger1 = movecontact value = 20, 2 volumescale = 200 ignorehitpause = 1 persistent = 0 [State 0, Explod] type = Explod trigger1 = movecontact anim = 1004 bindtime = 1 pos = 20,0 scale = 1,1 sprpriority = 4 ownpal = 1 removeongethit = 1 ignorehitpause = 1 persistent = 0 [State 2000, 0.5] type = targetvelset trigger1 = moveguarded x = -2 ignorehitpause = 1 [State 2000, 0.5] type = velset trigger1 = movecontact x = 0 y = 0 [State 1000, 0.1] type = Destroyself trigger1 = movecontact > 12 trigger2 = FrontEdgeDist < -120 ;-----------------------------------; ; High Green ball ; ;-----------------------------------; [Statedef 1010] type = S movetype= A physics = S juggle = 2 ctrl = 0 velset = 0,0 anim = 1000 sprpriority = 2 [State 1200, Sonido] type = PlaySnd trigger1 = time = 3 value = 20, 1 channel = 0 [State 0, Explod] type = Explod trigger1 = time = 0 anim = 1001 bindtime = -1 scale = const(size.xscale),const(size.yscale) sprpriority = 1 removetime = 9 ownpal = 1 trans = addalpha alpha = 36,256 removeongethit = 1 [State 0, Explod] type = Explod trigger1 = time = 0 anim = 1001 bindtime = -1 scale = const(size.xscale),const(size.yscale) sprpriority = 3 ownpal = 1 removeongethit = 1 [State 2, helperbola] type = Helper trigger1 = animelem = 4 ID = 1001 stateno = 1011 pos = 70*const(size.xscale), -66*const(size.xscale) ownpal = 1 persistent = 0 ignorehitpause = 1 [State 1200, 10] type = ChangeState trigger1 = AnimTime = 0 ctrl = 1 value = 0 ;-------------------------------------------- Shadow Uppercut ;-------------------------------------------- [StateDef 1100] type = A movetype= A physics = N juggle = 4 ctrl = 0 anim = 1200 [State 1000, Bounf] type = varset trigger1 = time = 0 v = 11 value = (enemy,numexplod(118) > 0) [State 1000, Bounf] type = veladd trigger1 = animelem = 3 x = 6+var(11) y = -2 [State 1000, Bounf] type = velset trigger1 = animelem = 4 x = 6+var(11) y = -11 [State 1000, Bounf] type = veladd trigger1 = animelemno(0) = 3 y = -0.75 [State 1000, Bounf] type = veladd trigger1 = animelemno(0) = 4 y = 0.675 [State 1000, Bounf] type = velset trigger1 = animelemno(0) = 5 y = 0 x = 0 [State 1000, bber] type = PlaySnd trigger1 = Time = 0 value = 20, 0 volumescale = 200 channel = 0 [State 1000, 10] type = HitDef trigger1 = !movecontact attr = S, SA animtype = back damage = 260+40*var(11), 40 guardflag = HL hitflag = MAF pausetime = 1,1 sparkno = -1 guard.sparkno = -1 hitsound = 5,0 guardsound = 5,14 ground.type = High ground.slidetime = 12 ground.hittime = 12 ground.velocity = -6,-4 air.velocity = -6,-4 air.hittime = 12 yaccel = 0.375 fall = 1 fall.recover = 0 kill = (Var(9) = 0) fall.kill = (Var(9) = 0) guard.kill = (Var(9) = 0) [State 0, Helper] type = Helper trigger1 = time%4 = 0 && animelemtime(5) < 0 helpertype = normal stateno = 1201 postype = p1 ownpal = 1 size.xscale = 1.04 size.yscale = 1.04 [State 1000, Bounf] type = velset trigger1 = time = 22 x = 1-(movecontact > 0) y = 0+2*(movecontact > 0) ignorehitpause = 1 [State 1000, Bounf] type = targetvelset trigger1 = Moveguarded = [2,12] x = -4 ignorehitpause = 1 [State 1000, BounceOff] type = selfState trigger1 = Time = 22 value = 1101 [StateDef 1101] type = A movetype= I physics = N juggle = 4 ctrl = 0 [State 1000, Bounf] type = posfreeze trigger1 = time < 12 [State 1000, Bounf] type = veladd trigger1 = time > 12 y = 0.5 [State 1000, BounceOff] type = selfState trigger1 = pos y > var(57) value = 52 ;--------------------- ;------------------- [Statedef 1200]; green shadow kick type = S movetype= A physics = N juggle = 1 anim = 1100 Velset = 0, 0 sprpriority = 2 ctrl = 0 [State 0, Helper] type = Helper trigger1 = time%3 = 0 && time < 16 && movecontact = 0 helpertype = normal stateno = 1201 postype = p1 ownpal = 1 size.xscale = 1.06 size.yscale = 1.06 [State 2000, 0.5] type = Playsnd trigger1 = time = 0 value = 20,0 volumescale = 200 channel = 0 [State 2000, 2] type = Veladd trigger1 = animelem = 2 x = 9 [State 2000, 2] type = Velmul trigger1 = animelemtime(4) > 4 x = 0.875 [State 2000, 2] type = Velset trigger1 = movecontact x = 0 [State 181, DIED] type = posadd trigger1 = animelem = 8 || animelem = 9 || animelem = 10 x = -10 [State 1050, 4] type = HitDef trigger1 = !movecontact attr = S, NA damage = 190,30 animtype = back air.animtype = Back hitflag = MAF guardflag = HL priority = 7 pausetime = 0, 2 sparkno = -1 guard.sparkno = -1 sparkxy = 18,-60 hitsound = 5,0 guardsound = 5,14 ground.type = High ground.slidetime = 12 ground.hittime = 12 guard.velocity = 0 ground.velocity = -6,-4 air.velocity = -6,-4 yaccel = 0.375 guard.slidetime = 12 ;Values for guarded attack (def: ground.slidetime) guard.ctrltime = 5 ;Time to regain control after guard (def: guard.slidetime) guard.dist = 120 kill = (Var(9) = 0) fall.kill = (Var(9) = 0) guard.kill = (Var(9) = 0) envshake.freq = 90 envshake.time = 12 envshake.ampl = 6 [State 2000, 0.5] type = targetvelset trigger1 = moveguarded = [1,12] x = -2 ignorehitpause = 1 [State 181, DIED] type = statetypeset trigger1 = moveguarded > 12 || p2dist x < 0 || animelem = 5 movetype = I [State 1050, 7] type = selfstate trigger1 = animtime = 0 value = 0 ctrl = 1 ;--------- [Statedef 1250]; red shadow kick type = S movetype= A physics = N juggle = 1 anim = 1100 Velset = 0, 0 sprpriority = 2 ctrl = 0 [State 0, Helper] type = Helper trigger1 = time%3 = 0 && time < 16 && movecontact = 0 helpertype = normal stateno = 1201 postype = p1 ownpal = 1 size.xscale = 1.06 size.yscale = 1.06 [State 2000, 0.5] type = Playsnd trigger1 = time = 0 value = 20,0 volumescale = 200 channel = 0 [State 2000, 2] type = Veladd trigger1 = animelem = 2 x = 11 [State 2000, 2] type = Velmul trigger1 = animelemtime(4) > 4 x = 0.875 [State 2000, 2] type = Velset trigger1 = movecontact x = 0 [State 181, DIED] type = posadd trigger1 = animelem = 8 || animelem = 9 || animelem = 10 x = -10 [State 1050, 4] type = HitDef trigger1 = !movecontact attr = S, NA damage = 200,30 animtype = back air.animtype = Back hitflag = MAF guardflag = HL priority = 7 pausetime = 0, 2 sparkno = -1 guard.sparkno = -1 sparkxy = 18,-60 hitsound = 5,0 guardsound = 5,14 ground.type = High ground.slidetime = 12 ground.hittime = 12 guard.velocity = 0 ground.velocity = -6,-4 air.velocity = -6,-4 yaccel = 0.375 guard.slidetime = 12 ;Values for guarded attack (def: ground.slidetime) guard.ctrltime = 5 ;Time to regain control after guard (def: guard.slidetime) guard.dist = 120 kill = (Var(9) = 0) fall.kill = (Var(9) = 0) guard.kill = (Var(9) = 0) envshake.freq = 90 envshake.time = 12 envshake.ampl = 6 [State 2000, 0.5] type = targetvelset trigger1 = moveguarded = [1,12] x = -2 ignorehitpause = 1 [State 181, DIED] type = statetypeset trigger1 = moveguarded > 12 || p2dist x < 0 || animelem = 5 movetype = I [State 1050, 7] type = selfstate trigger1 = animtime = 0 value = 0 ctrl = 1 ;---------------- [StateDef 1201]; shadow type = S movetype= I physics = S ctrl = 0 velset = 0,0 anim = 888 sprpriority = -2 [State 3100, Super D] type = varset trigger1 = time = 0 v = 11 value = root,anim [State 3100, Super D] type = varset trigger1 = time = 0 v = 12 value = root,animelemno(0) [State 3100, Super D] type = varset triggerall = time = 0 trigger1 = root,stateno = 1250 trigger2 = root,stateno = 1100 && root,var(11) = 1 v = 13 value = 1 [State 1000, Accellw] type = nothitby trigger1 = 1 value = SCA [State 1000, Accellw] type = playerpush trigger1 = 1 value = 0 [State 1000, Accellw] type = changeanim trigger1 = 1 value = var(11) elem = var(12) [State 1000, Accellw] type = trans trigger1 = 1 trans = add [State 1000, Accellw] type = assertspecial trigger1 = 1 flag = noshadow [State 1000, Accellw] type = palfx trigger1 = time < 30 && var(13) = 0 add = -255,30,-255 sinadd = 0,-260,0,120 color = 0 time = 30 [State 1000, Accellw] type = palfx trigger1 = time < 30 && var(13) = 1 add = 60,-255,-255 sinadd = -260,0,0,120 color = 0 time = 30 [State 1001, 10] type = destroyself trigger1 = time = 50 ;------------------------ ; nussknacker ;------------------------ [Statedef 1300] type = C movetype= A physics = S juggle = 2 velset = 0,0 ctrl = 0 anim = 1300 sprpriority = 3 [State -2, 3.3] type = VarRandom trigger1 = 1 v = 1 range = 0, 50 [State 200, 1] type = HitDef trigger1 = !movecontact attr = S, NA animtype = Back damage = 200, 50 guardflag = M hitflag = M pausetime = 0,2 sparkno = -1 hitonce = 1 guard.sparkno = -1 guardsound = 5,14 hitsound = 5,0 ground.type = High ground.slidetime = 20 ground.hittime = 20 guard.ctrltime = 20 ground.velocity = 0 guard.velocity = -3 p2facing = 1 p2stateno = 1310 ground.cornerpush.veloff = -25 fall.recover = 0 kill = (Var(9) = 0) fall.kill = (Var(9) = 0) guard.kill = (Var(9) = 0) envshake.freq = 70 envshake.time = 16 envshake.ampl = 5 priority = 1,miss [State 210, 1] type = Playsnd trigger1 = movehit value = 20,5 volumescale = 200 ignorehitpause = 1 persistent = 0 [State 200, 3] type = ChangeState trigger1 = Animelem = 3 && enemy,selfanimexist(216) = 0 value = 1301 [State 200, Play] type = PlaySnd trigger1 = animelem = 3 value = F5, 151 [State 200, 3] type = ChangeState trigger1 = AnimTime = 0 value = 0 ctrl = 1 [Statedef 1301] type = C movetype= I physics = S juggle = 2 velset = 0,0 ctrl = 0 [State 200, 3] type = Changeanim trigger1 = time < 22 value = 1300 elem = 9 [State 200, 3] type = ChangeState trigger1 = AnimTime = 0 value = 0 ctrl = 1 ;------------ [StateDef 1310] type = S movetype= H physics = N;S ctrl = 0 velset = -0.1,0 anim = 216 [State 1100, drcell] type = PosSet trigger1 = 1 Y = var(57) [State 210, 1] type = Playsnd trigger1 = time = 2 value = 4,1 channel = 3 [State 1100, cell] type = PosAdd trigger1 = Time%3 = 0 && time < 50 x = -5+10*(time%6 = 3) [State 200, 3] type = SelfState trigger1 = animtime = 0 trigger2 = time > 7 && p2statetype = A triggerall = alive = 1 value = 0 ctrl = 1 [State 1100, cell] type = velAdd trigger1 = Time = 50 x = -2 [State 200, 3] type = SelfState trigger1 = Time = 50 trigger1 = alive = 0 value = 5050 ;============================================================== [StateDef 1999] type = U movetype= H physics = N ctrl = 0 [State 1000, BounceOff] type = selfState trigger1 = prevstateno != 1999 value = 1999 [State 9327, explod] type = removeExplod trigger1 = time = 0 ID = 1010 [State 1000, spear] type = selfState trigger1 = anim = 1002 value = 1021 [State 1000, BounceOff] type = destroyself trigger1 = ishelper && root,stateno >= 0 [State 1000, BounceOff] type = selfState trigger1 = time = 30 || animtime = 0 value = 0 ctrl = 1 ;----------- [Statedef 2111];fake jump type = S physics = S anim = 40 ctrl = 0 sprpriority = 1 [State 40, jumpup] type = PlaySnd trigger1 = time = 2 && numexplod(7082) = 0 value = 3, 9 channel = 3 [State 40, 4] type = VelSet trigger1 = AnimTime = 0 x = const(velocity.jump.fwd.x) y = const(velocity.jump.y) [State 40, 6] type = ChangeState trigger1 = AnimTime = 0 value = 50 ctrl = 1 [StateDef 2112]; fake walk type = S movetype= I physics = N ctrl = 0 anim = 20 velset = 3.25,0 [State -1] type = selfState value = 1010 trigger1 = var(50) = 1 && p2life > 2 triggerall = roundstate = 2 triggerall = random%60 < AILevel && time = [12,21] triggerall = p2statetype = A && p2movetype = H [State -1] type = selfState value = 200 +20*(p2bodydist x > 20 || abs(p2dist y) < 90) trigger1 = var(50) = 1 && p2life > 2 triggerall = roundstate = 2 triggerall = abs(p2dist y) > 3 && abs(p2dist y) < 130 && p2bodydist x < 75 && random%12 < AILevel triggerall = p2statetype = A && p2movetype = H [State -1] type = selfState value = 210 trigger1 = var(50) = 1 && p2life > 2 triggerall = roundstate = 2 triggerall = abs(p2dist y) < 150 && p2bodydist x < 75 && random%12 < AILevel triggerall = p2statetype = A && p2movetype = H [State -1] type = selfState value = 20 trigger1 = var(50) != 1 trigger2 = roundstate != 2 trigger3 = time = 60 trigger4 = p2statetype != A || p2movetype != H ctrl = 1