• 🏆 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!

Adding armor with Triggers

Status
Not open for further replies.
Level 7
Joined
Dec 3, 2008
Messages
189
Hi guys,
I have a problem, for my map I need a trigger for a spell. Its a kind of "Taunt", when it's casted, all units in range attack the hero. But I want to make that the hero gets a armor-bonus during this time.

Is there any trigger I can use for it? (+Rep)

Greetz
DarkLordX
 
Level 8
Joined
Mar 12, 2008
Messages
437
There are two ways.

  • Way Numero Uno
    • Events
      • A unit starts the effects of an ability
    • Conditions
      • (Ability being cast) Equal to Taunt Thingy
    • Actions
      • Unit - Add Armour Bonus to (Triggering unit)
      • Wait - Wait X seconds
      • Unit - Remove Armour Bonus from (Triggering unit)
  • Way numero dos
    • Events
      • Unit - A unit starts the effects of an ability
    • Conditions
      • (Ability being cast) Equal to Taunt Thingy
    • Actions
      • Set Point = (Position of (Triggering unit))
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Point
      • Unit - Add (Armour Bonus Granter) to (Last created unit)
      • Unit - Add a 0.01 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Human Priest - Inner Fire (Triggering unit)
      • Custom script: call RemoveLocation( udg_Point )
Dummy = A dummy uniy (duh)
Point = Point variable (duh)
Taunt Thingy = Ability possessed by the caster, based on Taunt.
Armour Bonus = Ability granting an amount of armour, based on Item Armour Bonus (+#)
Armour Bonus Granter = Ability based on Inner Fire (or whichever ability you want)
X = The amount of time for which the armour bonus should last, in seconds
 
Status
Not open for further replies.
Top