• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

`A unit learn a skill` event problem

Status
Not open for further replies.
Level 11
Joined
Jan 2, 2016
Messages
472
When i pick a hero from a tavern and learn the skill the trigger doesn't work.But if i put a unit on the map and then learn the spell everything works fine.Any ideas ?

LVO3J5t.png
 
Did you mean you want the hero learn the ability automatically after you picked him from Tavern? or manually learn by yourself?
 
I later need it for another trigger.I've tried this trigger without the variable still doesn't work when the hero is picked from the tavern.

The stuff works fine when i put the unit from the pallete into the map, but doesn't do anything when i pick him.I tried removing ability and then remaking it,same happens.
 
Well, i think the trigger is fine, but why does it not working? Do you have add the ability to your Hero at the Object Editor?
 
Very bizarre that it doesn't work for tavern-spawned heroes. Try if ones spawned by a trigger work. Alternatively you could do:
  • Events
    • Unit - A unit enters Playable Map Area
  • Conditions
    • Unit type of (Triggering Unit) equal to <Shadow Priest>
  • Actions
    • Set shadowpriest = (Triggering Unit)
    • Trigger - Turn off (This trigger)
 
Status
Not open for further replies.
Back
Top