RMMZ Carrying variable and switch values across multiple games

Ender570

Villager
Member
Joined
Jan 24, 2021
Messages
16
Reaction score
3
First Language
English
Primarily Uses
RMMZ
I'm working on a project now that i plan on releasing in monthly installments (chapters) and I just realized that I'm not exactly sure how I'm going to carry the information from each installment into the next.

I figured I would have the player just answer questions at the beginning of each chapter to set the variables and switches, but there are 2 problems with this approach

1. The sheer amount of information I already need transferred after only (almost) one chapter would feel incredibly annoying to have to sort through and answer for... I can only imagine how it would feel at the end of, say, chapter 4 or 5

2. There are a few actions that I want to remain secret and seem inconsequential ... having it pop up as a question in the next chapter would pull the curtain back a bit

I'm a mediocre programmer on my best days, so I was really hoping someone could point me in the right direction... maybe someone has attempted something like this in the past and can offer some insight?

Thanks again!
 
Joined
Jul 17, 2017
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
Visustella's Save Core has global variables that should do the trick for this.

Edit: I misunderstood the problem--if you continue from the same project without recreating the game from scratch, telling players to copy over their save file should work fine? I've had to do this with manual updates before.
 
Last edited:

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,349
Reaction score
1,368
First Language
Spanish
Primarily Uses
RMVXA
write everything down into a file.
it's the only option.
 

Ender570

Villager
Member
Joined
Jan 24, 2021
Messages
16
Reaction score
3
First Language
English
Primarily Uses
RMMZ
I'm seeing a few plugins that deal with persistent data .. but nothing for MZ, sadly.

I will peek at some of these codes to get an idea of how they pulled it off .. that should at least offer some insight. Like I said, I'm really not a great coder though :aswt:
 

Zero_G

Veteran
Veteran
Joined
Mar 28, 2020
Messages
67
Reaction score
45
First Language
English
Primarily Uses
RMVXA
Yeah as gstv87 said, you could use the global.save to set the variables needed and ask the player to move that file to the new game.

I don't know if this plugin works in MZ. And if not, it's not that difficult to write/read data to a file with node's fs module. Use this guide
 

Latest Threads

Latest Posts

Latest Profile Posts

Dragonfly3116 wrote on Redweaver's profile.
i need to ask do you mind sending me a link to tutorial town an legend of ancients Please My new Email is necroboy1973@gmail.com
I Am A Member On The Site Here As Well If Your Still teaching Let Me Know Thanks Joseph
Added store elements.
44JtdpE5n4jQMFkSi7pACW.png

2uqvqT3uCWxcXAhlyZokxg.png

The next step will be to start making props (including distillers).
I just saw one of SigmaSuccor's RPG Maker news videos, it mentioned one of my plugins. Now I kind of wish I'd made a demo project for it, having nothing in that segment but a scroll down the code feels a little underwhelming given what the plugin COULD do. Except I suck at making demo stuff, and my testing project isn't fit for that. :(
Ok, to prepare for the GMTK Game Jam, I'm trying to make a game with the theme "The Cat's out of the Bag" in about 48 hours. I'd make a forum post with a question, but I don't have the time!
Worked over a week on a new BGM, and I'm finally happy with it.

Here are some screenshots of the area it will be used in
EzLHppdVIAMY7DP


EzLHpqsVIAEZ7jt

Forum statistics

Threads
110,518
Messages
1,053,897
Members
143,611
Latest member
sorkehfdk
Top