• 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

Status
Not open for further replies.

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
How can I make neutral hostile unit lightning shield to do not damage friends units/heroes per second and just to hit enemies ?
 

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
Thiss Target allowed is to target the unit for apply the buff,if i unstick,i'll not be allowed to target my friends but it will still damage them if the unit with buff is near
 

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
Trigger is the way.

Can you give me one tigger about this ? ?

Don't need to be this spell,u may give me other that damage enemies per second,i'm only asking about this cuz was the only that I found
 
Level 6
Joined
May 13, 2009
Messages
260
Does targets allowed under abilities change the buff?
 

Attachments

  • Untitled.png
    Untitled.png
    14.3 KB · Views: 106

nGy

nGy

Level 11
Joined
Apr 15, 2011
Messages
123
  • OnCast
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability being cast) is equal to [Your Ability]
    • Actions
      • Unit Group - Add (Target unit of ability being cast) to Grp
  • Periodic
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Set tempGrp1 = Grp
      • Unit Group - Pick every unit in tempGrp1 and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If-Conditions
              • ((Picked unit) has buff [Your Buff]) is equal to True
            • Then-Actions
              • Set tempUnit = (Picked unit)
              • Set tempLoc = (Position of (Picked unit))
              • Set tempGrp2 = (Units within [Your Range] of TempLoc matching ((Matching Unit) matches your conditions))
              • Unit Group - Pick every unit in tempGrp2 and do (Actions)
                • Loop - Actions
                  • Unit - Cause tempUnit to damage (Picked unit), dealing [Your Damage] damage of attack type [Your Attack Type] and damage type [Your Damage Type]
              • Custom script: call DestroyGroup ( udg_tempGrp2 )
            • Else-Actions
              • Unit Group - Remove (Picked unit) from Grp
      • Custom script: call DestroyGroup ( udg_tempGrp1 )
There might be a better way, but those should work at least :p
P.S.: choose a single target spell that can place a buff but do nothing else as your base ability
 
Last edited:
Status
Not open for further replies.
Top