• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Buy abilities

Status
Not open for further replies.
Level 5
Joined
May 21, 2011
Messages
56
  • Invincibility Shield
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • ((Hero manipulating item) has an item of type Slippers of Agility +3) Equal to True
    • Actions
      • Hero - Learn skill for (Hero manipulating item): Human Archmage - Blizzard
I maked this trigger but when test don't work. What is wrong in code?
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,183
the learn skill makes that if the unit got the skill he learns it with skill points

do like this.

add the skill you want the unit to be able to add.

then use this

  • setup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Player - Disable Blizzard for Picked unit

  • buy ability
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
    • Actions
      • Player - Enable Blizzard for (Owner of (Hero manipulating item))
 
Status
Not open for further replies.
Top