;------------------------------------------------------------------------------------------ [Statedef 1101] type = A movetype= A physics = N juggle = 6 ctrl = 0 [State 2000, 4] type = playerpush trigger1 = p2statetype = A && animelemno(0) = 4 value = 0 inorehitpause = 1 [State 1050, 5] type = VelAdd trigger1 = Time > 0 y = 0.3125 [State 1050, 2] type = Posadd trigger1 = Time = 0 x = -backedgedist -30 [State 1040, 0.6] type = ScreenBound trigger1 = 1 value = 0 movecamera = 1,0 [State 1050, 4] type = HitDef trigger1 = !movecontact attr = A, SA damage = 150,40 p2facing = 1 animtype = Light air.animtype = Back guardflag = HL priority = 7 pausetime = 4, 2 sparkno = -1 guard.sparkno = -1 sparkxy = 18,-60 hitsound = 5,103 guardsound = 5,14 ground.type = High ground.slidetime = 20 ground.hittime = 20 ground.velocity = -3,0 air.velocity = -3.5,-6 yaccel = 0.5 guard.slidetime = 10 ;Values for guarded attack (def: ground.slidetime) guard.ctrltime = 5 ;Time to regain control after guard (def: guard.slidetime) kill = (Var(9) = 0) fall.kill = (Var(9) = 0) guard.kill = (Var(9) = 0) p2stateno = 21238 [State 1050, 6] type = selfstate trigger1 = MoveGuarded = 1 value = 1102 [State 181, DIED] type = Explod trigger1 = movehit anim = 888 ID = 12000 removetime = 220-120*(numexplod(12000) > 0) removeongethit = 1 ignorehitpause = 1 persistent = 0 [State 181, DIED] type = Explod trigger1 = movehit trigger1 = numexplod(1444) > 0 || p2statetype = A anim = 888 ID = 1448 removetime = 300 removeongethit = 1 ignorehitpause = 1 persistent = 0 [State 1040, 0.erf7] type = VelSet trigger1 = movehit X = 0 [State 1040, 0.erf7] type = envshake trigger1 = movecontact ampl = 2 freq = 90 time = 12 ignorehitpause = 1 persistent = 0 [State 1050, 7] type= Changestate trigger1 = vel y > 0 && pos y > var(57) && time > 3 value = 52 ctrl = 1 ;--------------------- [StateDef 1102]; Blocked type = A movetype= I physics = N ctrl = 0 velset = -1,-8 sprpriority = 2 anim = 1103 [State 2000, 4] type = playsnd trigger1 = time = 0 value = 13,0 volumescale = 200 [State 2000, 4] type = removeexplod trigger1 = time = 0 ID = 12000 [State 2000, 4] type = playerpush trigger1 = time < 12 value = 0 [State 1001, 10] type = VelAdd trigger1 = Time > 0 y = 0.375 [State 1001, 10] type = posAdd trigger1 = Time = 0 x = p2dist x - 40 [State 1001, 10] type = Posset trigger1 = Time = 0 y = var(57) [State 1050, 7] type = selfstate trigger1 = vel y > 0 && pos y > var(57) value = 52 ;--------------------------- ;========================= [Statedef 1000] ;Fireball type = S movetype= I physics = S juggle = 2 velset = 0,0 anim = 1200 ctrl = 0 sprpriority = 1 [State 10000, open] type = varset trigger1 = 1 v = 46 value = 4 [State 1200, open] type = statetypeset trigger1 = AnimElem = 2 movetype = A [State a1200, 2at] type = Explod trigger1 = animelem = 3 anim = 1240 scale = const(size.xscale),const(size.yscale) sprpriority = 2 bindtime = -1 ownpal = 1 removeongethit = 1 [State 0, Helper] type = Helper trigger1 = animelem = 3 helpertype = normal ;player stateno = 1501 pos = 64*const(size.xscale),-78*const(size.yscale) ownpal = 1 size.xscale = 0.8 size.yscale = 0.8 [State 1000, 7] type = ChangeState trigger1 = AnimTime = 0 value = 0 ctrl = 1 [Statedef 1501] ;fireball itself type = S movetype= A physics = N juggle = 2 velset = 0,0 anim = 1241 ctrl = 0 sprpriority = 2 [State 0, Explod] type = Explod trigger1 = 1 anim = 1243 pos = 0,0 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = 1 scale = 0.6*const(size.xscale),0.6*const(size.yscale) sprpriority = 0 ownpal = 1 [State 1000, 7] type = velset trigger1 = time > 0 x = 10 [State 1000, 7] type = playsnd trigger1 = Time = 0 value = 20,26 volumescale = 80 [State 1200, BoltFat] type = hitdef trigger1 = !movecontact attr = S, NP damage = 200, 30 animtype = Light air.animtype = Back projremove = 1 guardflag = HL pausetime = 1,4 sparkno = -1 guard.sparkno = -1 hitsound = S20,29 guardsound = 5,14 ground.type = High guard.slidetime = 12 guard.ctrltime = 12 ground.slidetime = 20 ground.hittime = 15 ground.velocity = -4,0 air.velocity = -3.5,-6 yaccel = 0.5 guard.dist = 110 air.fall = 1 fall.recover = 0 air.juggle = 3 kill = (root,Var(9) = 0) fall.kill = (root,Var(9) = 0) guard.kill = (root,Var(9) = 0) p2stateno = 21238 p2facing = 1 [State 1000, 7] type = playsnd trigger1 = movecontact value = 20,27+(moveguarded != 0) volumescale = 200 [State 1000, 7] type = selfState trigger1 = movecontact value = 1502 ignorehitpause = 0 [State 1000, 7] type = destroyself trigger1 = frontedgedist < -100 [Statedef 1502] ;fireball hits type = S movetype= A physics = N velset = 0,0 anim = 888 ctrl = 0 [State 1000, 7] type = targetvelset trigger1 = target,stateno = 21239 x = -4 ignorehitpause = 1 [State 1000, 7] type = targetvelset trigger1 = target,stateno = [150,159] x = -2 ignorehitpause = 1 [State 0, Explod] type = Explod trigger1 = time = 0 anim = 1242 pos = 10,0 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = 1 ;scale = const(size.xscale),const(size.yscale) sprpriority = 4 ownpal = 1 [State 0, Explod] type = Explod trigger1 = 1 anim = 1244 pos = 0,0 facing = 1-2*(random%2) vfacing = 1-2*(random%2) vel = (1-2*(random%2))*(2+random%7), (1-2*(random%2))*(2+random%7) bindtime = 1 scale = 0.6,0.6 sprpriority = 2-4*(random%2) ownpal = 1 [State 0, Explod] type = Envshake trigger1 = time = 0 freq = 90 ampl = 5 time = 12 [State 1000, 7] type = destroyself trigger1 = time = 12 [Statedef 1503] ;fireball flies back type = S movetype= A physics = N juggle = 2 velset = 0,0 ctrl = 0 sprpriority = 2 [State 1000, 7] type = turn trigger1 = time = 0 [State 0, Explod] type = Explod trigger1 = 1 anim = 1243 pos = 0,0 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = 1 scale = 0.6*const(size.xscale),0.6*const(size.yscale) sprpriority = 0 ownpal = 1 [State 1000, 7] type = posadd trigger1 = time = 0 x = 10 [State 1000, 7] type = velset trigger1 = time > 0 x = 10 [State 1200, BoltFat] type = hitdef trigger1 = !movecontact && time > 3 attr = S, HP damage = 200, 30 affectteam = F animtype = Light air.animtype = Back projremove = 1 guardflag = HL pausetime = 1,4 sparkno = -1 guard.sparkno = -1 hitsound = S20,29 guardsound = 5,14 ground.type = High guard.slidetime = 12 ground.slidetime = 20 ground.hittime = 15 ground.velocity = -4,0 air.velocity = -3.5,-6 yaccel = 0.5 guard.dist = 110 air.fall = 1 fall.recover = 0 air.juggle = 3 kill = (enemy,Var(9) = 0) fall.kill = (enemy,Var(9) = 0) guard.kill = (enemy,Var(9) = 0) p2stateno = 21238 p2facing = 1 [State 1000, 7] type = playsnd trigger1 = movecontact value = 20,27+(moveguarded != 0) volumescale = 200 [State 1000, 7] type = selfState trigger1 = movecontact value = 1502 ignorehitpause = 1 [State 1000, 7] type = destroyself trigger1 = frontedgedist < -100 ;-------------------------------------- [Statedef 1510] ;teleport type = U movetype= A physics = N juggle = 2 velset = 0,0 anim = 1104 ctrl = 0 sprpriority = 2 [State 10000, open] type = varset trigger1 = 1 v = 46 value = 4 [State 1000, 7] type = statetypeset trigger1 = Time = 0 && statetype != A value = S [State 1000, 7] type = changeanim trigger1 = Time = 0 && statetype = A value = anim elem = 2 [State 1000, 7] type = statetypeset trigger1 = Time = 1 value = A [State 1000, 7] type = playsnd trigger1 = animelem = 4 value = 20,30 volumescale = 60 [State 1000, 7] type = playsnd trigger1 = animelem = 3 value = 20,17 volumescale = 200 [State 0, Explod] type = Explod trigger1 = animelem = 4 anim = 1245 pos = -14,-102 ;facing = 1-2*(random%2) vfacing = -1 bindtime = 6 vel = 0,-1 accel = 0,0.02 scale = 0.9,1 sprpriority = 0 ownpal = 1 [State 0, Explod] type = Explod trigger1 = animelemno(0) = [3,4] anim = 1246 pos = -14,-102 facing = 1-2*(random%2) vfacing = 1-2*(random%2) random = 40,50 bindtime = 1 scale = 0.67,0.67 sprpriority = 3-2*(random%2) ownpal = 1 [State 0, Explod] type = Explod trigger1 = animelemno(0) = [3,4] anim = 1244 pos = -10,-90 facing = 1-2*(random%2) vfacing = 1-2*(random%2) vel = (1-2*(random%2))*(2+random%7), (1-2*(random%2))*(2+random%7) bindtime = 1 scale = 0.6*const(size.xscale),0.6*const(size.yscale) sprpriority = 2-4*(random%2) ownpal = 1 [State 0, Explod] type = Envshake trigger1 = animelem = 3 freq = 90 ampl = 5 time = 12 [State 1000, BounceOff] type = selfstate trigger1 = animelemtime(5) = 4 value = 1511 [Statedef 1511] type = A movetype= A physics = N juggle = 1 anim = 1100 Velset = 0, 0 ctrl = 0 [State 2000, 4] type = changeanim trigger1 = time = 0 value = anim elem = 4 [State 2000, 4] type = playerpush trigger1 = 1 value = 0 inorehitpause = 1 [State 2000, 0.5] type = Playsnd trigger1 = time = 1 value = 20,6 [State 2000, 0.6] type = ScreenBound trigger1 = 1 value = 0 movecamera = 0,0 [State 2000, 1] type = turn trigger1 = time = 1 [State 2000, 2] type = Veladd trigger1 = time = 1 x = 10 y = -1 [State 1050, 5] type = posset trigger1 = Time = 0 y = var(57) [State 2000, 4] type = assertspecial trigger1 = 1 flag = invisible flag2 = noshadow [State 2000, 4] type = nothitby trigger1 = 1 value = SCA time = 4 [State 2000, 4] type = Changestate trigger1 = time = 2 value = 1101 ;---------------------------- ;---------------------------------------- [Statedef 1520] ;telekinetic type = S movetype= A physics = S juggle = 2 velset = 0,0 anim = 1610 ctrl = 0 sprpriority = 2 [State 1000, 7] type = playsnd trigger1 = movehit value = 20,32 volumescale = 50 persistent = 0 [State 1000, 7] type = playsnd trigger1 = time = 0 value = 20,31 volumescale = 200 channel = 0 [State 10000, open] type = varset trigger1 = 1 v = 46 value = 4 [State 10000, open] type = statetypeset trigger1 = anim = 1610 && animelem = 3 movetype = I [State 0, Explod] type = Explod trigger1 = time = 0 trigger2 = movehit && animelem = 10 anim = 1243 pos = 65,-108 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = -1 removetime = 2 + 4*(movehit > 0) scale = 0.5,0.4 sprpriority = 1 ownpal = 1 [State 0, Explod] type = Explod trigger1 = animelem = 3 trigger2 = movehit && animelem = 9 anim = 1243 pos = 60,-130 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = -1 removetime = 2 + (movehit > 0) scale = 0.5,0.4 sprpriority = 1 ownpal = 1 [State 0, Explod] type = Explod trigger1 = animelem = 4 trigger2 = movehit && animelem = 8 anim = 1243 pos = 52,-144 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = -1 removetime = 2 + (movehit > 0) scale = 0.5,0.4 sprpriority = 1 ownpal = 1 [State 0, Explod] type = Explod trigger1 = animelem = 5 trigger2 = movehit && animelem = 7 anim = 1243 pos = 40,-154 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = -1 removetime = 2 + (movehit > 0) scale = 0.5,0.4 sprpriority = 1 ownpal = 1 [State 0, Explod] type = Explod trigger1 = animelem = 6 trigger2 = animelemtime(6) = 12 && movehit anim = 1243 pos = 25,-161 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = -1 scale = 0.4,0.3 sprpriority = 1 ownpal = 1 [State 800, 1] type = HitDef Trigger1 = !movecontact damage = (p2stateno = 9010) pausetime = 0,0 attr = S, ST ;Attributes: Standing, Normal Throw hitflag = MAF ;Affect only ground people who are not being hit guardflag = HL priority = 1, Miss ;Throw has low priority, must be miss or dodge type. hitsound = -1 guardsound = 5,140 sparkno = -1 ;No spark p2facing = 1 ;Force p2 to face KFM p2stateno = 1530 ;If hit, p2 changes to state 820 in KFM's cns guard.dist = 320 ;This prevents p2 from going into a guard state if close guard.slidetime = 12 ground.hittime = 30 ground.slidetime = 12 fall = 1 fall.recover = 0 kill = (Var(9) = 0) fall.kill = (Var(9) = 0) fall.damage = ifelse((var(9) != 0 && p2life <= 90), (p2life-1), 90) guard.kill = (Var(9) = 0) [State 0, Explod] type = Explod trigger1 = moveguarded = [1,12] trigger2 = movehit && target,stateno = [1530,1532] anim = 1612 pos = -10-30*(animelemtime(7) > 17),-70+20*(animelemtime(7) > 17) postype = p2 vel = 0, 2-6*(animelemtime(7) > 17) accel = 0,-0.02 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = 1 scale = 0.4,0.4 sprpriority = 2-4*(random%2) random = 30,60 ownpal = 1 [State 820, 1] type = envshake Trigger1 = animelem = 2 ampl = 3 freq = 60 time = 30 persistent = 0 [State 1000, BounceOff] type = targetvelset trigger1 = moveguarded = [1,12] x = -2 [State 1000, BounceOff] type = targetbind trigger1 = movehit && target,stateno = 1530 pos = p2dist x, p2dist y -2 time = 1 [State 1000, BounceOff] type = changeanim trigger1 = movehit value = 1611 persistent = 0 [State 0, Explod] type = Explod trigger1 = movehit anim = 888 ID = 1444 removetime = 1280 persistent = 0 [State 1000, BounceOff] type = selfState trigger1 = animtime = 0 value = 0 ctrl = 1 ;------------- [StateDef 1530]; p2 arisen type = A movetype= H physics = N ctrl = 0 anim = 21238 velset = 0,-2 [State -2, 34] type = offset trigger1 = 1 x = -3*(time%4 < 2) y = -3*(time%4 < 2) [State 1000, BounceOff] type = changestate trigger1 = time = 30 value = 1531 [State 1000, BounceOff] type = selfState trigger1 = time > 0 && gethitvar(isbound) = 0 value = 5050 [StateDef 1531]; p2 move up type = A movetype= H physics = N ctrl = 0 anim = 5050 velset = 0,-4 [State -2, 34] type = null;stopsnd trigger1 = 1 channel = 3 [State 1000, BounceOff] type = veladd trigger1 = time > 0 y = -3 [State 1000, BounceOff] type = changestate trigger1 = pos y < -240 value = 1532 [StateDef 1532]; p2 move down type = A movetype= H physics = N ctrl = 0 velset = 0,28 anim = 5170 [State -2, 34] type = null;stopsnd trigger1 = 1 channel = 3 [State 1000, BounceOff] type = veladd trigger1 = time > 0 y = 8 [State 1000, BounceOff] type = changestate trigger1 = pos y >= var(57)-30 value = 1533 [Statedef 1533] type = A movetype= H physics = N velset = 0,0 sprpriority = 1 anim = 5170 [State -2, 34] type = hitfalldamage trigger1 = time = 0 [State -2, 34] type = playsnd trigger1 = time = 3 value = 3,0 + 2*(random%2) channel = 3 [State -2, 34] type = Posset trigger1 = time = 0 y = var(57) [State -2, 34] type = Playsnd trigger1 = time = 0 value = f7,1 volumescale = 200 [State 820, 1] type = envshake Trigger1 = Time = 0 ampl = 6 freq = 90 time = 22 [State 820, 1] type = veladd Trigger1 = Time = 0 x = 3.5 y = -8 [State 820, 1] type = veladd Trigger1 = Time > 0 y = 0.375 [State 820, 1] type = changeanim2 Trigger1 = time = 3 value = 5070 ;elem = 3 [State 821, 4] ;Hit ground type = SelfState trigger1 = pos y > var(57) && vel y > 0 value = 5110 ;----------------------------- ;============================================================== [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 = 1005 [State 1000, ice] type = selfState trigger1 = anim = [1203,1206] value = 1204 [State 1000, ice] type = selfState trigger1 = anim = 1503 value = 1232 [State 1000, acid] type = selfState trigger1 = anim = 1212 value = 1305 [State 1000, forceball] type = selfState trigger1 = anim = 1222 value = 1314 [State 1000, lightning] type = selfState trigger1 = anim = 1601 value = 1401 [State 1000, waterball] type = selfState trigger1 = anim = 1230 value = 1414 [State 1000, green star] type = selfState trigger1 = anim = 1241 value = 1503 [State 1000, cloud] type = selfState trigger1 = anim = 1250 value = 1605 [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 a 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 jump b 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 = 0 y = const(velocity.jump.y) [State 40, 6] type = ChangeState trigger1 = AnimTime = 0 value = 50 ctrl = 1