Jubs

Warper
Member
Joined
Oct 16, 2021
Messages
3
Reaction score
2
First Language
English
Primarily Uses
RMMZ
Hi I had a question about how to make like a growing shop I’m sure it’s not a unique idea and someone has accomplished this.

For example if a shop sells a potion after the potion is purchased the next time they visit they will sell a greater potion.

I want to give the impression that the shop owner took the money and invested it into better items.

I haven’t been able to figure out how to make this happen.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,138
Reaction score
15,534
First Language
English
Primarily Uses
RMMV

I've moved this thread to MZ Support. Thank you.

 

Weremole

Veteran
Veteran
Joined
Jan 22, 2016
Messages
308
Reaction score
267
First Language
Swedish
Primarily Uses
One simple-ish way could be to save the money the player has before opening the shop scene in a variable and another variable for the money after the shop scene. If the player has less money then subtract the before money variable with the after variable. What remains is what the shops profit. Then add that value to the variable that represents how much money the player has spent at the shop.
Use the variable to set up conditional branches that opens more and more upgraded shops.
 

Jubs

Warper
Member
Joined
Oct 16, 2021
Messages
3
Reaction score
2
First Language
English
Primarily Uses
RMMZ
One simple-ish way could be to save the money the player has before opening the shop scene in a variable and another variable for the money after the shop scene. If the player has less money then subtract the before money variable with the after variable. What remains is what the shops profit. Then add that value to the variable that represents how much money the player has spent at the shop.
Use the variable to set up conditional branches that opens more and more upgraded shops.
Thanks! Im gonna give this a try tonight!
 

Jubs

Warper
Member
Joined
Oct 16, 2021
Messages
3
Reaction score
2
First Language
English
Primarily Uses
RMMZ
Okey nice! I have the subscription to yanfly. I take a look at this. Thanks!
 

Latest Threads

Latest Posts

Latest Profile Posts

Apparently Amazon Prime users get free Genshin Impact stuff like primogems and whatnot every month, but I'm not sure I ever want to fall into the abyss of F2P ever again.
Doing RPG Maker News for 26th Nov to 2nd Dec (2021)

"Yeah. It's been a rough road lately. But that's the thing about the Rangers. It doesn't matter how hard it gets, or how many of them fall. They never stop fighting. The Rangers NEVER stop fighting".

Angela Deth, you are a hero of mine. Sorry for my first run of Wasteland 3.
We must press on. For all those we couldn't save. For all those we might yet save.
FirestormNeos wrote on DarkPlasmaBall's profile.
asking this here instead of the thread in question to avoid derailing it, but I'm curious; is there a particular reason you'd include a "Terms of Use" for an RPG Maker game? Like, are there multiplayer features for the game you're working on?

Forum statistics

Threads
117,144
Messages
1,104,923
Members
153,211
Latest member
Necrozys
Top