• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Blink deal damage

Status
Not open for further replies.
Level 10
Joined
Nov 5, 2008
Messages
536
I wonder if there is any way to make Blink deal damage?

That means, when a unit blinks to a location, enemy units on that location gets damaged.

How would you make an ablitiy like this?
 
Level 16
Joined
May 1, 2008
Messages
1,605
Seas =)

You take blink - and use a trigger for it - that deals damage at the casted point in an area you choose

Edit:
  • Blink damage
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Blink
    • Actions
      • Set TempPoint = (Target point of ability being cast)
      • Unit Group - Pick every unit in (Units within 350.00 of TempPoint) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True
            • Then - Actions
              • Unit - Cause (Casting unit) to damage (Picked unit), dealing 50.00 damage of attack type Spells and damage type Normal
            • Else - Actions
      • Custom script: call RemoveLocation(udg_TempPoint)
(TempPoint is a point Variable)
 
Status
Not open for further replies.
Top