• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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,198
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