• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Stacking Merchenaries

Status
Not open for further replies.
Level 27
Joined
Dec 3, 2018
Messages
909
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?
 
 
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.
Back
Top