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

Help With Tavern

Status
Not open for further replies.
Level 12
Joined
Oct 10, 2009
Messages
438
Okay, Ive made a hero tavern with these abillities and i'm trying to make these abillities create the disired unit eg "Abillity name Footman" Will create a footman.

But here is the hard part, I need it to create it for the "Purchasing" Unit, but since the unit isnt actually purchasing and is just making the tavern use the abillity the trigger doesnt work...

So could you please help me create a trigger that Creates a unit for "Unit that is making tavern use the abillity", Help would be appreciated =D
 
Level 10
Joined
Jan 28, 2009
Messages
442
I think his problem lies in changing (Last created unit)'s owner to the owner of the purchasing unit.

Sounds to me like you want to avoid the unit training progress bar as well as the little numbers that display in the icon corner of a unit for sale.

Regardless.... I'm not sure of this, because I haven't tested it, but think about the Goblin Observatory. It's a neutral building, and it has the ability to reveal an area for the "purchasing player", apparently very similar to far sight. Try giving it an ability like Summon Misha, and see if Misha is summoned for Neutral Passive, or the custommer.

If it works, and Misha is summoned for the customer, we need to turn Misha (or your Hero type) into a non-summoned unit, to display a death animation instead of having the unit disappear in a cloud, as summoned units do in my experience.
To do this, create a trigger with the event "A unit spawns a summoned unit". If unit-type = (any of your hero-types), the trigger must change create a new unit of the summoned unit's type for the owner of the summoned unit, and kill the summoned unit afterwards.

I hope it will work.
 
Status
Not open for further replies.
Top