• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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:
Level 19
Joined
Aug 24, 2007
Messages
2,888
  • 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
 
Level 12
Joined
Oct 18, 2008
Messages
1,199
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.
 
Level 2
Joined
Sep 19, 2006
Messages
17
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.
Top