;;;;;;;;;;;;lightning blast [Statedef 1000] type = S movetype= A physics = S juggle = 2 velset = 0,0 anim = 1000 sprpriority = 0 ctrl = 0 [State 10000, open] type = PlaySnd trigger1 = time = 0 value = 20,1 volumescale = 90 channel = 0 [State 0, Explod] type = Explod trigger1 = animelem = 4 anim = 1001 bindtime = -1 scale = const(size.xscale), const(size.yscale) sprpriority = 1 ownpal = 1 removeongethit = 1 persistent = 0 [State 0, Explod] type = Explod trigger1 = time = 0 anim = 1002 bindtime = -1 scale = const(size.xscale), const(size.yscale) sprpriority = 2 ownpal = 1 removeongethit = 1 persistent = 0 [State 9251, net] type = Helper trigger1 = time = 23 postype = p1 pos = 91,-97 stateno = 1001 ownpal = 1 persistent = 0 [State 1000, 7] type = ChangeState trigger1 = AnimTime = 0 value = 0 ctrl = 1 [Statedef 1001] ;bolt itself type = S movetype= A physics = N juggle = 2 velset = 0,0 anim = 1003 sprpriority = 2 ctrl = 0 [State 10000, open] type = veladd trigger1 = animelem = 2 x = 8 [State 10000, open] type = PlaySnd trigger1 = time = 0 value = 20,14 volumescale = 60 [State 800, 1] type = HitDef Trigger1 = !movecontact damage = 160,40 pausetime = 0,2 attr = S, NP ;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,14 sparkno = -1 ;No spark p2stateno = 21238 ;If hit, p2 changes to state 820 in KFM's cns guard.dist = 80 ;This prevents p2 from going into a guard state if close ground.velocity = -4,0 ground.hittime = 21 ground.slidetime = 12 kill = (root,Var(9) = 0) fall.kill = (root,Var(9) = 0) guard.kill = (root,Var(9) = 0) palfx.time = 30 palfx.add = 20+140*(root,var(46)>0)+90*(root,var(46) = 1),100,160 palfx.sinadd = -120,-120,-120,8 palfx.color = 0 [State 1000, 7] type = Changestate trigger1 = movecontact value = 1002 persistent = 0 [State 1000, 7] type = destroyself trigger1 = frontedgedist < -100 trigger2 = time < 4 && root,stateno != 1000 [Statedef 1002] ;bolt hits type = S movetype= A physics = N juggle = 2 velset = 0,0 anim = 1004 sprpriority = 4 ctrl = 0 [State 10000, open] type = PlaySnd trigger1 = time = 0 value = 20,6 volumescale = 200 [State 10000, open] type = changeanim trigger1 = time = 0 && p2dist x = [-60,0] value = anim elem = 2 [State 1000, 7] type = targetvelset trigger1 = target,stateno = [150,159] x = -2+4*(facing = target,facing) [State 1000, 7] type = targetvelset trigger1 = target,stateno = 21240 && facing = target,facing x = 3 [State 10000, open] type = Posset trigger1 = time < 12 trigger1 = target,movetype = H x = target,pos x - facing*30*(target,vel x > 0) [State 0, Explod] type = Explod trigger1 = time < 6 anim = 800 pos = 10,0 postype = p1 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = 3 vel = 2+0.2*(random%7-random%7),-3 accel = 0,0.02 random = 12,30 scale = 0.5,0.5 sprpriority = 1-2*(random%2) ownpal = 1 [State 10000, open] type = helper trigger1 = time < 6 stateno = 1020 size.xscale = 0.5 size.yscale = 0.5 [State 1000, 7] type = destroyself trigger1 = animtime = 0 [Statedef 1003] ;bolt flies back type = S movetype= A physics = N juggle = 2 velset = 0,0 sprpriority = 2 ctrl = 0 [State 10000, open] type = turn trigger1 = time = 0 [State 10000, open] type = veladd trigger1 = time = 0 x = 8 [State 800, 1] type = HitDef Trigger1 = !movecontact && time > 3 damage = 160,40 pausetime = 0,2 affectteam = F attr = S, HP ;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,14 sparkno = -1 ;No spark p2stateno = 21238 ;If hit, p2 changes to state 820 in KFM's cns guard.dist = 80 ;This prevents p2 from going into a guard state if close ground.velocity = -4,0 ground.hittime = 21 ground.slidetime = 12 kill = (enemy,Var(9) = 0) fall.kill = (enemy,Var(9) = 0) guard.kill = (enemy,Var(9) = 0) palfx.time = 30 palfx.add = 20+140*(root,var(46)>0)+90*(root,var(46)=1),100,160 palfx.sinadd = -120,-120,-120,8 palfx.color = 0 [State 1000, 7] type = Changestate trigger1 = movecontact value = 1002 persistent = 0 [State 1000, 7] type = destroyself trigger1 = frontedgedist < -100 ;;;;;;;;;;;;lightning blast part 2 [Statedef 1010] type = S movetype= A physics = S juggle = 2 velset = 0,0 anim = 1010 sprpriority = 0 ctrl = 0 [State 10000, open] type = turn trigger1 = animelem = 3 || animelem = 8 [State 10000, open] type = PlaySnd trigger1 = animelem = 2 value = 20,1 volumescale = 90 channel = 0 [State 0, Explod] type = Explod trigger1 = animelem = 5 anim = 1001 bindtime = -1 scale = const(size.xscale), const(size.yscale) sprpriority = 1 ownpal = 1 removeongethit = 1 persistent = 0 [State 0, Explod] type = Explod trigger1 = time = 0 anim = 1011 bindtime = -1 scale = const(size.xscale), const(size.yscale) sprpriority = 2 ownpal = 1 removeongethit = 1 persistent = 0 [State 9251, net] type = Helper trigger1 = time = 23 postype = p1 pos = 91,-97 stateno = 1011 ID = 1010 ownpal = 1 persistent = 0 [State 1000, 7] type = ChangeState trigger1 = AnimTime = 0 value = 0 ctrl = 1 [Statedef 1011] ;another bolt type = S movetype= A physics = N juggle = 2 velset = 0,0 anim = 1003 sprpriority = 2 ctrl = 0 [State 10000, open] type = varset trigger1 = time = 0 v = 11 value = 1 [State 10000, open] type = veladd trigger1 = animelem = 2 x = 8 [State 10000, open] type = PlaySnd trigger1 = time = 0 value = 20,14 volumescale = 60 [State 800, 1] type = HitDef Trigger1 = !movecontact damage = 160,40 pausetime = 0,2 attr = S, NP ;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,14 sparkno = -1 ;No spark p2stateno = 21238 ;If hit, p2 changes to state 820 in KFM's cns guard.dist = 80 ;This prevents p2 from going into a guard state if close ground.velocity = -4,0 ground.hittime = 21 ground.slidetime = 12 kill = (root,Var(9) = 0) fall.kill = (root,Var(9) = 0) guard.kill = (root,Var(9) = 0) palfx.time = 30 palfx.add = 20+140*(root,var(46)>0)+90*(root,var(46)=1),100,160 palfx.sinadd = -120,-120,-120,8 palfx.color = 0 [State 1000, 7] type = Changestate trigger1 = movecontact value = 1002 persistent = 0 [State 1000, 7] type = posadd trigger1 = frontedgedist < -80 x = -backedgedist - 80 persistent = 0 [State 1000, 7] type = destroyself trigger1 = frontedgedist < -100 trigger2 = time < 4 && root,stateno != 1010 [Statedef 1012] ;its not flying back type = S movetype= A physics = N juggle = 2 velset = 8,0 sprpriority = 2 ctrl = 0 [State 800, 1] type = HitDef Trigger1 = !movecontact damage = 160,40 pausetime = 0,2 attr = S, NP ;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,14 sparkno = -1 ;No spark p2stateno = 21238 ;If hit, p2 changes to state 820 in KFM's cns guard.dist = 80 ;This prevents p2 from going into a guard state if close ground.velocity = -4,0 ground.hittime = 21 ground.slidetime = 12 kill = (root,Var(9) = 0) fall.kill = (root,Var(9) = 0) guard.kill = (root,Var(9) = 0) palfx.time = 30 palfx.add = 20+140*(root,var(46)>0)+90*(root,var(46)=1),100,160 palfx.sinadd = -120,-120,-120,8 palfx.color = 0 [State 1000, 7] type = Changestate trigger1 = movecontact value = 1002 persistent = 0 [State 1000, 7] type = destroyself trigger1 = frontedgedist < -100 [Statedef 1020] ;sparks flie type = S movetype= I physics = N juggle = 2 velset = 0,0 anim = 802 sprpriority = 3 ctrl = 0 [State 10000, open] type = changeanim trigger1 = 1 value = anim [State 10000, open] type = turn trigger1 = time = 0 && gametime%2 = 0 [State 10000, open] type = veladd trigger1 = time = 0 x = -0.3-0.15*(random%12) y = -3-0.3*(random%21) [State 0, Explod] type = veladd trigger1 = time > 0 y = 0.5 [State 1000, 7] type = changestate trigger1 = pos y > root,var(57) && vel y > 0 value = 1021 [Statedef 1021] ;sparks land type = S movetype= I physics = N juggle = 2 sprpriority = 4 ctrl = 0 [State 10000, open] type = velmul trigger1 = time = 0 y = -0.3 [State 0, Explod] type = veladd trigger1 = time > 0 y = 0.4 [State 1000, 7] type = changestate trigger1 = pos y > root,var(57) && vel y > 0 value = 1021 [State 1000, 7] type = destroyself trigger1 = animtime = 0 ;;;;;;;;;;;;teleport [Statedef 1100] type = S movetype= I physics = S juggle = 2 velset = 0,0 anim = 1301 sprpriority = 0 ctrl = 0 [State 10000, open] type = PlaySnd trigger1 = time = 0 value = 20,2 volumescale = 200 [State 1000, Bounf] type = screenbound trigger1 = 1 value = 0 movecamera = 1,0 [State 0, Explod] type = Explod trigger1 = time = 0 anim = 1300 bindtime = 4 scale = const(size.xscale), const(size.yscale) sprpriority = 1 ownpal = 1 removeongethit = 1 persistent = 0 [State 10000, open] type = nothitby trigger1 = 1 value = SCA [State 10000, open] type = posadd trigger1 = animelem = 2 x = p2dist x + 30+enemy,const(size.ground.back)+25*(p2statetype = A) [State 1000, 7] type = ChangeState trigger1 = Animelem = 2 value = 1101 [Statedef 1101] type = S movetype= I physics = S juggle = 2 velset = 0,0 sprpriority = 0 ctrl = 0 facep2 = 1 [State 10000, open] type = changeanim trigger1 = time = 0 && anim != 1301 value = 1301 elem = 2 [State 10000, open] type = PlaySnd trigger1 = time = 0 && prevstateno != 1100 value = 20,3 volumescale = 200 [State 10000, open] type = nothitby trigger1 = time < 6 value = SCA [State 10000, open] type = nothitby trigger1 = time > 6 value = SCA,AP [State 1000, 7] type = selfState trigger1 = AnimTime = 0 value = 0 ctrl = 1 ;;;;;;;;;;;;;; torpedo [StateDef 1200] type = A movetype= A physics = N velset = 10,0 juggle = 4 ctrl = 0 anim = 1100 [State 1000, Bounf] type = varset trigger1 = time = 0 v = 11 value = 0 [State 1000, Bounf] type = changeanim triggerall = time = 0 trigger1 = pos y < var(57) trigger2 = prevstateno = 2002 value = anim elem = 3 [State 1000, bber] type = PlaySnd trigger1 = Time = 0 value = 21, 0 + random%4 volumescale = 200 channel = 3 [State 1000, 10] type = HitDef trigger1 = !movecontact && p2stateno != 5120 trigger1 = p2statetype != C || p2stateno = [120,159] attr = S, SA animtype = back damage = 160,20 guardflag = HL hitflag = MAF pausetime = 2,2 sparkno = -1 guard.sparkno = -1 hitsound = -1 guardsound = 5,14 ground.type = High ground.slidetime = 12 ground.hittime = 12 ground.velocity = 0,-4 air.velocity = 0,-4 air.hittime = 12 yaccel = 0.25 fall = 1 fall.recover = 0 kill = (Var(9) = 0) fall.kill = (Var(9) = 0) guard.kill = (Var(9) = 0) guard.dist = 110 p2stateno = 1210 p2facing = 1 priority = 1, Miss [State 0, Helper] type = statetypeset trigger1 = p2dist x < 0 movetype = I [State 1000, Bounf] type = playerpush trigger1 = animelemno(0) = [3,4] value = 0 [State 1000, Bounf] type = selfstate trigger1 = Movehit value = 1201 [State 1000, Bounf] type = selfstate trigger1 = Moveguarded value = 1202 [State 1000, BounceOff] type = selfState trigger1 = animelem = 6 && pos y < var(57) value = 1203 [State 1000, BounceOff] type = selfState trigger1 = animTime = 0 value = 52 [StateDef 1201]; hit type = A movetype= A physics = N sprpriority = 2 ctrl = 0 [State 0, Explod] type = Explod trigger1 = time%2 = 0 anim = 802 ID = 1100 pos = 68,-84 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = 3 vel = 7,(random%6-random%6) accel = 0,0.02 random = 4,12 scale = 0.5,0.5 sprpriority = 3-4*(random%2) ownpal = 1 [State 0, Explod] type = Explod trigger1 = time = 0 anim = 1102 pos = 68,-84 bindtime = -1 ID = 1100 sprpriority = 1 ownpal = 1 removeongethit = 1 [State 1200, ZappySound] type = PlaySnd trigger1 = time = 0 value = 20, 7 volumescale = 200 [State 1000, Bounf] type = changeanim trigger1 = 1 value = 1100 elem = 4 [State 1000, Bounf] type = playerpush trigger1 = 1 value = 0 [State 1000, Bounf] type = targetbind trigger1 = 1 pos = 60,-1 [State 1000, Bounf] type = selfstate trigger1 = time = 30 ;trigger2 = frontedgedist < 20 && time = [7,15] trigger2 = target,backedgedist < -20 && time > 7 value = 1202 [StateDef 1202]; guarded type = A movetype= I physics = N velset = 0,0 ctrl = 0 facep2 = 1 [State 1000, Bounf] type = targetdrop trigger1 = time = 0 [State 0, Explod] type = removeExplod trigger1 = time = 4 ID = 1100 [State 1200, ZappySound] type = PlaySnd trigger1 = time = 3 && prevstateno = 1200 value = 20, 16 [State 1200, ZappySound] type = PlaySnd trigger1 = time = 3 && prevstateno = 1201 value = f5, 0 [State 820, 1] type = posset Trigger1 = Time = 3 && prevstateno = 1200 y = var(57) [State 1000, Bounf] type = changeanim trigger1 = time = 3 value = 1101 elem = animelemno(0) [State 1000, Bounf] type = veladd trigger1 = time = 3 x = -1 y = -8+(prevstateno = 1201) [State 1000, Bounf] type = veladd trigger1 = time > 3 y = 0.375 [State 1000, Bounf] type = selfstate trigger1 = pos y > var(57) && vel y > 0 value = 52 [StateDef 1203]; land type = A movetype= I physics = N velset = 0,0 ctrl = 0 [State 820, 1] type = veladd Trigger1 = Time > 0 y = 0.5 [State 1000, Bounf] type = playerpush trigger1 = time > 3 value = 0 [State 1000, Bounf] type = changeanim trigger1 = animtime = 0 value = 41 elem = 3 [State 1000, Bounf] type = selfstate trigger1 = pos y > var(57) && vel y > 0 value = 52 [StateDef 1210]; p2 type = A movetype= H physics = N anim = 5030 velset = 0,0 sprpriority = 0 ctrl = 0 [State 1000, Bounf] type = screenbound trigger1 = 1 value = 0 movecamera = 1,0 [State 10000, open] type = nothitby trigger1 = 1 value = SCA [State 1000, Bounf] type = changestate trigger1 = time > 3 && gethitvar(isbound) = 0 value = 1211 [StateDef 1211]; p2 falls type = A movetype= H physics = N anim = 5050 velset = 0,-4 sprpriority = 0 ctrl = 0 [State 1000, Bounf] type = playsnd trigger1 = time = 0 value = 3,0 + 2*(random%2) channel = 3 [State 1000, Bounf] type = veladd trigger1 = time > 0 y = 0.3125 [State 1000, Bounf] type = screenbound trigger1 = 1 value = 0 movecamera = 1,0 [State 1000, Bounf] type = selfstate trigger1 = pos y > var(57) value = 5110 ;;;;;;;;;;;;;shocker grab ;------------ [Statedef 1300] type = S movetype= A physics = S juggle = 5 ctrl = 0 velset = 0,0 anim = 1200 sprpriority = 0 [State 0, ex] type = Explod trigger1 = var(50) = 1 trigger1 = time = 1 ID = 1400 anim = 888 removetime = 80 ignorehitpause = 1 [State 1000, bber] type = PlaySnd trigger1 = Time = 0 value = 21, 3 + random%2 volumescale = 200 channel = 3 [State 800, 1] type = HitDef Trigger1 = !movecontact damage = 250, 0 pausetime = 0,0 attr = S, NT ;Attributes: Standing, Normal Throw hitflag = HA ;Affect only ground people who are not being hit guardflag = H priority = 1, Miss ;Throw has low priority, must be miss or dodge type. hitsound = 5,141 guardsound = 5,140 sparkno = -1 ;No spark guard.sparkno = -1 sprpriority = 2 ;Draw in front of p2 p2facing = 1 ;Force p2 to face KFM p1stateno = 1301 ;On success, KFM changes to state 810 p2stateno = 1302 ;If hit, p2 changes to state 820 in KFM's cns ground.hittime = 12 ground.slidetime = 12 yaccel = 0.5 fall = 1 fall.recover = 0 kill = (Var(9) = 0) fall.kill = (Var(9) = 0) guard.kill = (Var(9) = 0) palfx.time = 70 palfx.add = 20+140*(var(46)>0)+90*(var(46)=1),100,160 palfx.sinadd = -120,-120,-120,8 palfx.color = 0 [State 0, Helper] type = statetypeset trigger1 = p2dist x < 0 trigger2 = moveguarded movetype = I [State 430, 4] type = Changeanim trigger1 = Time = 36 value = 1202 [State 430, 4] type = ChangeState trigger1 = anim = 1202 && AnimTime = 0 value = 0 ctrl = 1 ;------------- [Statedef 1301] type = S movetype= A physics = S anim = 1201 sprpriority = 2 [State var] type = playsnd trigger1 = time = 0 value = 20,9 channel = 0 [State var] type = playsnd trigger1 = time = 0 value = 30,0 [State 0, Explod] type = Explod trigger1 = anim = 1201 && time%16 = 3 && time < 42 anim = 801 pos = -10,-70 postype = p2 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = -1 random = 12,70 ;scale = 0.5,0.5 sprpriority = 1 ownpal = 1 ;----- [State 810, Bind 0] type = TargetBind trigger1 = anim = 1201 && time%6 = 0 pos = 50, -40 time = 3 [State 810, Bind 0] type = TargetBind trigger1 = anim = 1201 && time%6 = 3 pos = 50, -43 time = 3 [State 810, State End] type = playerpush trigger1 = 1 value = 0 [State 810, State End] type = Changeanim trigger1 = time = 70 trigger2 = anim = 1201 && time > 0 && target,stateno != 1302 value = 1202 [State 0, Explod] type = Explod trigger1 = anim = 1201 && time%3 = 0 anim = 800 pos = -10,-80 postype = p2 facing = 1-2*(random%2) vfacing = 1-2*(random%2) bindtime = 3 vel = 0,-1-0.3*(random%7) accel = 0,0.02 random = 40,60 scale = 0.67,1 sprpriority = 1-2*(random%2) ownpal = 1 [State 810, State End] type = Targetdrop trigger1 = anim = 1202 persistent = 0 [State 810, State End] type = ChangeState trigger1 = anim = 1202 && Animtime = 0 value = 0 ctrl = 1 ;------------- [Statedef 1302] type = A movetype= H physics = N velset = 0,0 sprpriority = 0 anim = 5015 [State 810, End] type = screenbound trigger1 = 1 value = 0 movecamera = 1,0 [State 810, End] type = playsnd trigger1 = time = 3 value = 3,0 + 2*(random%2) channel = 3 [State 10000, open] type = nothitby trigger1 = 1 value = SCA [State 810, End] type = Changeanim trigger1 = time%6 = 0 value = 21238 elem = 2 [State 810, End] type = Changeanim trigger1 = time%6 = 3 value = 21238 elem = 4 [State 821, 4] type = velset trigger1 = time > 0 && gethitvar(isbound) = 0 x = 0 y = -2 [State 821, 4] type = SelfState trigger1 = time > 3 && gethitvar(isbound) = 0 value = 5050 ;============================================================== [StateDef 1999] type = U movetype= H physics = N ctrl = 0 [State 1000, BounceOff] type = selfState trigger1 = prevstateno != 1999 value = 1999 [State 1000, ref] type = selfState trigger1 = anim = 1003 value = 1003 + 9*(var(11) = 1) [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