RPG Maker Forums

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:

Code:
var goods = [0,1,2,3];

SceneManager.push(Scene_Shop);
SceneManager.prepareNextScene(goods, false);
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:

Code:
var goods = [$dataArmors[2], $dataArmors[3]];

SceneManager.push(Scene_Shop);
SceneManager.prepareNextScene(goods, false);
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.

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top