• 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 that hits units in line!

Status
Not open for further replies.
Level 4
Joined
Jun 2, 2012
Messages
747
Hello hivers! I have a problem creating a great spell. It is a spell based on shockwave. In the trigger I have this....like:

Unit - Cause "Caster" to damage "Target", dealing 50x hero damage of attack type Hero and damage type Normal

NOTE: Words with this sign " " are variables

So I have this, so Im expecting when testing, it will hit ALL units in line but when tried, it only hits the first enemy in line and the other no..... SO how should I do a trgger that hits all units in a line.
 
Uh. I'll explain how to do it in more detail if that helps?

You need a dummy unit with the model of the missile you want. You create this on cast and store it into a variable. In some other trigger that runs periodically (say every 0.04s), you move it at a certain angle (at point offset by). In this trigger you also do a 'pick every unit within 500 range of missile' and then do deal the damage in that. I might write it up in GUI later for you, but I really doubt it. Maybe someone else can show you how it's done? Alternatively take a look at this, it may help you.
 
You could use Hero Level and Hero STR and Ability level to set damage, but getting into item, auras, and attack damage bonuses gets fuzzy.

The rest (dealing damage in a line) is pretty easy and has been already explained.
 
I am not certain if this will work I cant test it right now, but I think that you could detect the hero's damage by creating a dummy unit, casting a illusion spell on the hero, moving the illusion to the dummy and ordering it to attack it, than you simply substract the dummy's current hp from its max hp to get the hero's damage.
 
Last edited:
Status
Not open for further replies.
Back
Top