• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Shop/Market question

Status
Not open for further replies.
Level 23
Joined
Feb 6, 2014
Messages
2,466
Hello hive!
Is it possible to disable a certain player from buying a certain item from shops? Example, after a player bought 5 of those items, he will no longer be able to buy it.
I tried re-adding gold and removing item at purchase but that decreases the stock in the shop. I tried increasing the stock via AddItemToStock but the tooltip colors is not there when I add items through triggers.
Any workaround?
 
If all the players are enemies, you can just make them a bunch of invisible shops stacked ontop of each other, when a player selects the visible shop you make them automatically select one of the invisible shops. When a player purchases the max amount of allotted items, just get rid of their invisible shop,

If the players can be allies though, this won't work because they could just buy from another player's shop.
 
You can alter the remaining stock of a single shop without any effect to others. Heck, you can even remove items from stock completely for them. Thus, giving each player their own shop lets you set the limits on a per-player basis.
 
Status
Not open for further replies.
Back
Top