[Trigger] Stacking Merchenaries

Status
Not open for further replies.
Level 27
Joined
Dec 3, 2018
Messages
896
Hi! I ve been trying to make a card game using mercenaries as "cards" and I cannot seem to be able to stack them. I set their max number to 32 and when i use the trigger to give the building one more of that type of mercenary, it simply doesn't work. Can somebody give give me a working trigger, which gives a building a mercenary and if it already has that mercenary, increase the number of charges by 1?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
Fourth post in the first thread gives an idea of the problem:
Take note that remove item/unit from stock only works in the Item/Unit is added to the shop via triggers...
Second post in the second thread provides even more information:
Adding and removing unit stock with triggers is a bit funky though, you can't manipulate unit stocks that are default to the merc camp in the object editor, so you'll instead have to add them through a separate trigger at map initialization or something. Also, you need to make sure that your merc camps have the "Sell Units" ability, otherwise it also doesn't work.
 
Status
Not open for further replies.
Top