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

`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
 
Level 3
Joined
Jun 18, 2016
Messages
68
Did you mean you want the hero learn the ability automatically after you picked him from Tavern? or manually learn by yourself?
 
Level 11
Joined
Jan 2, 2016
Messages
472
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.
 
Level 3
Joined
Jun 18, 2016
Messages
68
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?
 
Level 39
Joined
Feb 27, 2007
Messages
5,019
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.
Top