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

Randomizing items sold by vendors?

Status
Not open for further replies.
Level 2
Joined
Sep 19, 2006
Messages
17
First off, is it even possible to either:
1) Randomize the items sold by a vendor (Say a Goblin Merchant) from a preset array.
2) If randomization isn't possible, would cycling (show Item X, then Y, then Z) be possible?

3) Finally. Could some of the inventory be static (i.e. always available) and some randomize?


---------------------
Thank you Need_O2, you were able to answer my question.

Thank you InfiniteSeven, while I can see the benefits of a dummy item, it wouldn't serve my purposes at the moment.
 
Last edited:
  • Neutral Building - Add <Item> to <Shop> with <stock> in stock and a max stock of <Max Stock>
There is a trigger like that
dont know if it works but try it out
make sure you give sell items ability to shop
 
1) Just create a dummy item with the description of buying random items, then make a trigger that removes the bought item and gives the buyer one of the items.

2) Its possible through a bit of triggers. If you'd want I can show you how given a few minutes, though I do not guarantee its efficiency.

3) Not sure what you mean by the last bit.
 
So this could simply be accomplished with a few Neutral Building triggers and a randomization from an array to select the item I want to show?

As for the final bit, I want the shop to have 8 items constantly available for sell, and three (the bottom row) randomize every so often with a very limited stock. Sort of a "rare finds".


Thanks for the advice. I'll run a few tests to see if I can get what I envision. If not, I'll be back (hide the children!). :)
 
Status
Not open for further replies.
Back
Top