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

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