HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Neutral Building- Remove Unit Type from Shop

06-27-2005, 07:36 PM#1
MrApples
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)

Yes the selling unit has the sell units ability.
06-27-2005, 08:54 PM#2
Setreal
Is the selling unit a nuetral (nuetral is a classification that buildings like taverns have, not the actual player Nuetral ) building?
06-27-2005, 09:25 PM#3
PitzerMike
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.
06-27-2005, 10:39 PM#4
MrApples
THANKS!

And yes its a nEUtral building
07-05-2005, 02:17 PM#5
MrApples
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 :/
07-05-2005, 08:53 PM#6
Tim.
Try after the time elapsed is .01 seconds.. Sometimes Map Init doesn't work for certain triggers.
07-06-2005, 02:22 PM#7
MrApples
It does work, funny thing actually, the one building that did not have sell units ability was the one I kept checking :/