Generate random items in shop

WillyG99

Member
Hi!

Is there a simple way to generate random items in the shop during runtime?
Maybe also generating from specifics categories aswell?

Thanks!
 
Unfortunatly there are no built-in ways to do this.
You can have a look at the RandomInventoryDrop and RandomInventoryPickup script for inspiration.
Or you can make your own random function with custom parameters.
And from there you can simply add the list of random items to the Shop Inventory.
 
Unfortunatly there are no built-in ways to do this.
You can have a look at the RandomInventoryDrop and RandomInventoryPickup script for inspiration.
Or you can make your own random function with custom parameters.
And from there you can simply add the list of random items to the Shop Inventory.
Ok thanks! I will post the code if i figure it out?
 
Top