• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Lightning Shield Help !

Status
Not open for further replies.

Gaya5000

G

Gaya5000

I know this may sound like a noob question, but Im trying to make a Lightning Shield spell that wont damage nearby allies. How can i do this ? Ive tried every ideea i had for triggers to do this but i still cant. Please help me no matter the method.
 
That would prevent you from casting lightning shield on allied units.
But you can cast it on enemy and it will still damage you.
 
Yea guys i know like i sayd ive tried everything and that includes the allowed targets option from the object editor. Im looking for the method with the triggers so please, if someone knows How is it possible using triggers, i would appreciate it. Thanks
 
Yea guys i know like i sayd ive tried everything and that includes the allowed targets option from the object editor. Im looking for the method with the triggers so please, if someone knows How is it possible using triggers, i would appreciate it. Thanks

I don't know the best solution, but maybe you have to use dummy spells.
For example:
you cast lightning shield on the enemy, with 0 dam, but with the animation.
Then you add immolation to the targeted unit, you hide all effects, and make it mana free(0 mana). U trigger it to turn on, then check the lightning shield buff (every sec for example), if it wears off, u turn off immo.
And u should hide it in a disabled spellbook.

Another example (maybe not the best compared to units' HPs):
make it damage 1.
If the damaged unit has buff (that show it is damaged by lightning), but i think it doesn't give any buff to the attacked unit.
In the damaged region, you pick all units, make a complex condition (not spell immun, not air, enemy, ...), and you heal back them, (set unit life = unit life + lightning damage) them every second (or in every damage period).

Second example of course can be used even without enemy damaging lightning shield, but in reverse mode. I mean, you check all enemy units in region, and you lower their hp.
 
There is no way to prevent the existing LS from damaging allied units.
What Harbinger suggested(1-st suggestion) seems reasonable.
 
Thanks guys Ill do try these methods. Harbringer first method is the best. And I think maybe ill play a bit with triggers and see wich one is better ( causes less lag and stuffs like that ) tks again guys
 
Status
Not open for further replies.
Back
Top