Hello! I'm using BurningOrca's Custom Shops plugin (link) and I wonder if it would be possible to make the items in stock depend on game variables, or otherwise find a way to set up a shop with randomly selected goods that are limited in stock.
For example, if $gameVariables.value(41) is equal to 22, then the first item in the shop is item 22. If the variable's value is 23 instead, then it's item 23, etc.
The core idea is to make a shop with a random selection of items that you can only purchase one of each.
I found a script to set up a random shop, but it only sets up a basic shop with unlimited item stock.
This is the script. It works well with the basic shop, but I'd like to add a stock limit of 1 to the randomly generated items.
I also messed around with a code that assigns random unique values to three variables, hoping that simply typing
For example, if $gameVariables.value(41) is equal to 22, then the first item in the shop is item 22. If the variable's value is 23 instead, then it's item 23, etc.
The core idea is to make a shop with a random selection of items that you can only purchase one of each.
I found a script to set up a random shop, but it only sets up a basic shop with unlimited item stock.
This is the script. It works well with the basic shop, but I'd like to add a stock limit of 1 to the randomly generated items.
I also messed around with a code that assigns random unique values to three variables, hoping that simply typing
into the item ID field would work, but I tried it now and it crashes the game instantly, so clearly that doesn't work.