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
45,544
Reaction score
16,438
First Language
English
Primarily Uses
RMMV

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

 

Weremole

Veteran
Veteran
Joined
Jan 22, 2016
Messages
365
Reaction score
330
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 Profile Posts

That moment when you significantly rewrite about 80% of a course, reduce it from 12 hours to 8, drastically refocus the content, provide several overview briefings to staff on the changes, giving them several weeks to prepare, & they start asking questions 10 minutes before the classes start. I have a bad feeling. :oops:
Forgot to add this to my stream thumbnail collection, nothing to see here. Move along. :kaoswt:

It's been a while again, eh.
It's all over! ep 27 now I got find some other long RPG to play, any reccomendations?
Shaz wrote on Avery's profile.
I need some of whatever you've been drinking for the last few weeks!
Although I love your awesome tutorials and always want more, I sure hope you're not going to burn yourself out.

Forum statistics

Threads
129,955
Messages
1,206,523
Members
171,171
Latest member
Bibo
Top