• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Spell] Ability Triggering

Status
Not open for further replies.
Level 5
Joined
Jul 24, 2008
Messages
106
Hey guys.

How do I make a unit learn an ability when it acquires an item?

Ex: My hero purchases a Circlet of Nobility. How do I make my hero automatically learn Blink once the circlet arrives in my inventory?

Help please!
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 001
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Circlet of Nobility
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Unit - Add Blink to (Triggering unit)

You'd propably want to use
  • Unit - A unit Sells an item (from shop)
as the event and Buying unit in the actions.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
And he still didn't answer my question, lol.

Stanley's trigger shows that the unit doesn't have the ability to begin with (can't be leveled up by pressing the red cross)

But RaedoN said it, in a different manner:
How do I make a unit learn an ability when it acquires an item?
Judging by his own statement...
Naah, I'd go for Stanley's opinion ^^

I mean, why would he be so lazy to learn it by clicking the red cross and learn the ability ?
Must be the new ability ^^
 
Status
Not open for further replies.
Top