• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Spell] Spell Possible? Roots but different

Status
Not open for further replies.
Level 8
Joined
Oct 1, 2010
Messages
408
Hi,

I want a spell that is like a wave except it doesn't go beyod the first units that it impacts. And then I want the units that are hit by the spell to be effected by roots (or like stunned with a roots animation and dealt damage over time). This is harder to explain in words then I thought it would be, so I made a beautiful picture:

attachment.php


I'd also like the spell to have a 2 second time if possible. It really doesn't have to be this specific, but I'm hoping for something fairly close.

Would anyone please tell me if this is possible or if a spell already exists that is somewhat similar.

Thank you for any help.

Edit: Sorry, the picture lies! I need this spell to work for a unit, not a hero.
 

Attachments

  • spell depiction.png
    spell depiction.png
    21.4 KB · Views: 264
Last edited:
Possible
Step
1st - unit cast.
2nd - wave ripple out.
3rd - for every interval, check if there is a unit affected by the wave.
4th - if it is true, wave stop, damage the unit affected.
5th - else, continue move the wave forward.

i dont specify how exactly you should do your spell. i just give you an algorithm coz its possible. :)
 
Possible
Step
1st - unit cast.
2nd - wave ripple out.
3rd - for every interval, check if there is a unit affected by the wave.
4th - if it is true, wave stop, damage the unit affected.
5th - else, continue move the wave forward.

i dont specify how exactly you should do your spell. i just give you an algorithm coz its possible. :)

Thanks Search, but wouldn't the wave only effect 1 unit then? Since your algorithm here says to stop the wave if there is only one unit affected and then only damages that one unit. However, I'd like the wave to affect all the units where the wave stops or (preferably) have the wave damage the unit it hits, then have the wave stop but only in the section where it hit a unit, then keep moving in the places where its hit nothing until it does hit a unit. Sorry if this is a confusing description, its the best I can do though.
 
alright. no problem

After you check for first target unit. make a loop to group all unit perpendicular to the wave line which intersect at the first target unit x/y.

According to your diagram. I suggest you group those units by small area.

After that, damage them all.

i hope u understand. :)
 
Status
Not open for further replies.
Back
Top