• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

How to block the marketplace for one of the players?

Level 3
Joined
May 10, 2024
Messages
20
Hello!

1717876747649.png


I want to manage items and units in shop during the game. Based on my research the only way to do it is by using marketplace with Neutral Building - Add functions.
  • Neutral Building - Add Tome of Strength +2 to Shop1 with 1 in stock and a max stock of 5
At the same time I don't want to let players to buy items from shop of other players. If player 1 have shop(marketplace) than Player 2 should not be able to buy from it. But marketplace allows to buy to all players on the map. My shop config on the picture below.

1717876683121.png


Any ideas?
 
Level 23
Joined
Aug 29, 2012
Messages
972
I've ran some tests and "Sell Items" might be the culprit, because if you look at buildings like Arcane Vault (I assume that's what you originally based it on), it doesn't have that ability but 1/ can still sell items and 2/ prevents the enemy from using yours

I assume sell items for things like the goblin merchant that everyone can access
 
Level 3
Joined
May 10, 2024
Messages
20
Without "Sell Items" engine does not let to add/remove items from the shop through triggers. So Neutral Building - Add will not work.
 
Top