How come this trigger doesn't work? I want it so once the hero is bought it removed like when you buy from a a tavern.
Anti Mass Hero
Events
Unit - A unit Sells a unit
Conditions
((Sold unit) is A Hero) Equal to True
Actions
Neutral Building - Remove (Unit-type of (Sold unit)) from (Selling unit)
Remove Unit-Type from stock only works if the unit-type has been added via triggers before.
So you have to clear the units-sold field of the tavern in the object editor and at map initialization add the unit type to the shop with a trigger.
That Didn't work, I put in a trigger at map initialization that adds all the units to the buildings with a stock of 1 and max stock of 1 yet there is nothing there :/