• 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!

Can I do this?

Status
Not open for further replies.
Unless new natives were added that allow one to change the stocks of any item seller, one might only be limited to changing item stocks on marketplaces with the appropriate actions/natives.

Marketplaces have different mechanics from normal item shops because they are designed to change out random items periodically.
 
^Ah, I've misunderstood your question previously. I thought selling/giving an item to a shop and creating or removing the items from the inventory slot of the unit. As super good mentioned earlier, I don't think you can manipulate or change the item stocks that can be sold by the shops or item sellers through Trigger Editor as they were only initiated at the Object Editor only, in my opinion. But there is a possible way of doing what you wanted to... You can replace the unit seller by the another unit seller that is having different item stocks through Object Editor and by triggering the replacement. The method is untested and I'm not sure if it works but you should try.
 
^Ah, I've misunderstood your question previously. I thought selling/giving an item to a shop and creating or removing the items from the inventory slot of the unit. As super good mentioned earlier, I don't think you can manipulate or change the item stocks that can be sold by the shops or item sellers through Trigger Editor as they were only initiated at the Object Editor only, in my opinion. But there is a possible way of doing what you wanted to... You can replace the unit seller by the another unit seller that is having different item stocks through Object Editor and by triggering the replacement. The method is untested and I'm not sure if it works but you should try.

ah okay, that was my first thought. Thanks.
 
Marketplaces aren't entirely random in the sense that they only generate dropped items (and dropped by neutral hostile units, I assume).

Also, last I checked, the natives to control marketplaces' stocks weren't working. Give it a try anyway; I could have made a mistake or Blizzard may have fixed it in the meantime.
 
Also, last I checked, the natives to control marketplaces' stocks weren't working. Give it a try anyway; I could have made a mistake or Blizzard may have fixed it in the meantime.
They used to work long ago, some people used them for alternative solutions to problems that required one to swap buildings or have multiple buildings. Any particular patch they stopped working at?
 
Correct. I have confirmed they do work. The natives demand those shops to have the Sell Items ability, however. I believe I may have accidentally removed it, which is why it wasn't working.

The behavior also differs depending on (1) the owner of the marketplace and (2) the widget type being sold.
  • If the marketplace sells a unit, the unit is permanently for sale (though with the replenishment cooldown that's set in object editor)
  • If the marketplace sells an item,
    • The item is permanently for sale if the marketplace is owned by a player1 (with replenishment cooldown)
    • The item vanishes from the marketplace when bought if the marketplace's owned by neutral passive.

1 — I have not checked whether the player needs to have specific characteristics, such as being human.
 
Status
Not open for further replies.
Back
Top