Basically, I want to make a shop that updates its inventory based on variables. Like, as an example, if you are level 1, it has potions. If you're level 2, super potions. Level 3, ultra potions. I would rather not have a million different event commands where I have to manually place all the items in the shop, but instead simply have a simple array of items that I can create, and put that array into the shop.
It feels like it should be simply to do this. I know how to open a shop using script calls. The problem comes to actually giving that shop any inventory. For instance, this code:
Doesn't work! The shop opens fine, and you can sell to your heart's content. But the shop has no items at all.
I tried changing it to this, but to no avail:
Once again, there's simply nothing in the shop.
I don't know how to proceed. Any help in formatting how to put items into the store's goods will be super helpful. Once I know the formatting, I think I can do the rest on my own. I just need to know how to, through scripts (or a plugin command), and not events, to populate a shop's inventory.
It feels like it should be simply to do this. I know how to open a shop using script calls. The problem comes to actually giving that shop any inventory. For instance, this code:
Code:
var goods = [0,1,2,3];
SceneManager.push(Scene_Shop);
SceneManager.prepareNextScene(goods, false);
I tried changing it to this, but to no avail:
Code:
var goods = [$dataArmors[2], $dataArmors[3]];
SceneManager.push(Scene_Shop);
SceneManager.prepareNextScene(goods, false);
I don't know how to proceed. Any help in formatting how to put items into the store's goods will be super helpful. Once I know the formatting, I think I can do the rest on my own. I just need to know how to, through scripts (or a plugin command), and not events, to populate a shop's inventory.

