• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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