You create your items in one specific shop like this:
Code:
LEVEL_1_ITEMS = []
LEVEL_1_ITEMS.push([[0, 1, 0, nil], 1.0, "items"])
LEVEL_1_ITEMS.push([[1, 1, 0, nil], 1.0, "weapons"])
LEVEL_1_ITEMS.push([[2, 1, 0, nil], 1.0, "armor"])
Those are the items in one shop.
In this specific example, all 3 items added will show up for sure, unless you setup a specific shop type with the
@reedo_shop_type variable.
For example, if you set that variable (with a script call) to
"weapons", only the 2nd item on this list will show up in the shop, since only that one is labeled as
"weapon" in the settings. You can also set that variable to
["weapons","armors"] to show items labeled as
"weapons" OR
"armors". You must do this before a shop processing event command, and you should reset it to
nil after the shop processing event command to ensure that you don't forget to reset it.
So, basically, these settings are setting up entire shops with their item list.
Once you setup your shops, you can add it into the
SHOP_ITEMS hash, like shown here:
Code:
SHOP_ITEMS[1] = LEVEL_1_ITEMS
Use the same setting name you used for the item list you created
above (which is
LEVEL_1_ITEMS in this case).
See that number
1 between the
[ ] signs? That will be the shop's level requirement. If the current party leader's level is equal or higher than that number, the items from the assigned list can show up, otherwise they can't.
When you are done with your settings, you can set the shop to use your item lists from the settings with the
@reedo_random_shop variable.
Set that to
true in a script call, like this:
Code:
@reedo_random_shop = true
You do this just before a shop processing event. It doesn't matter what your default shop processing event looks like if you used that script call before, since the items will be taken from this script, and not from the list you added in your event command.
At least this is how I understood it, but I didn't test it, so I might be wrong.