• 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.

Lightning Shield Help !

Status
Not open for further replies.
Level 1
Joined
Jun 14, 2008
Messages
3
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.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
That would prevent you from casting lightning shield on allied units.
But you can cast it on enemy and it will still damage you.
 
Level 1
Joined
Jun 14, 2008
Messages
3
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
 
Level 3
Joined
May 12, 2006
Messages
31
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.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
There is no way to prevent the existing LS from damaging allied units.
What Harbinger suggested(1-st suggestion) seems reasonable.
 
Level 1
Joined
Jun 14, 2008
Messages
3
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.
Top