• 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

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 ?
 
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
 
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
 
Does targets allowed under abilities change the buff?
 

Attachments

  • Untitled.png
    Untitled.png
    14.3 KB · Views: 157
  • 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.
Back
Top