Zausen

Villager
Member
Joined
Dec 10, 2016
Messages
16
Reaction score
7
First Language
Spanish
Primarily Uses
N/A
Hello everybody!

I'm not sure if this is the correct place for my question, If not i´ll rewrite it again in the correct place. if this place is corect, Perfect!

I'm designing some scripts for a game. (I have some simple javascripts, when finish cleaning them I think that I will share them).

But in my attempts I found a wall that I don't understand how to solve it.

I suppose that in my script I make a new variable for the items. For example Item._purity. Ok, no problem. But in the game, when we defeat the monsters, the purity value will changing. Next, we will want save our progress.
How could I save this new value in the game?

An idea was to use the game variables... but next I thought for to create a dinamic json but... when the game is to make, I think my solution won't work. Or yes?
But, maybe... Exist other way to solve this problem. Or not?
Maybe its possible to save in the datasave? this would wonderful! but how?
I´m not sure about it.

One greeting to all.

P.d: sorry for my english and thanks for the help.
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,305
Reaction score
11,726
First Language
English
Primarily Uses
RMVXA
Just to let you know, if a thread is in the wrong place, Mods will move it. There is no need to rewrite it somewhere else.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,646
First Language
Czech
Primarily Uses
RMMV
if I remember correctly, the function is called DataManager.makeSaveContents or StorageManager.makeSaveContents. Search for it in rpg_managers and see how it is handled.
 

Zausen

Villager
Member
Joined
Dec 10, 2016
Messages
16
Reaction score
7
First Language
Spanish
Primarily Uses
N/A
Oh, thanks to all. I will study these functions and the Aloe's code fragment.
 

ougitou1

Invisible Black
Veteran
Joined
Dec 9, 2015
Messages
128
Reaction score
12
First Language
en-
Primarily Uses
N/A
@Aloe Guvner would this work with rmmz as well? i tried it but its saying the object not defined which is weird cause the object not only gets defined but also updated. I figure im doing something wrong. i tried @Poryg 's (mad respect for your tutorials btw) tutorial as well but its... you know not very clear on certain things. for example makeSavefileInfo and actually defining new objects for it cause, trying to brute force my way though understanding is giving me a headache since im unsure about a lot of things reguarding this process.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,385
Reaction score
1,265
First Language
Dutch
Primarily Uses
RMMV
@ougitou1 this is an old thread so make your own.
Aloe Guvner make it as a snippet so it doesn't work on it's own without your own code.
and RMMZ use a tiny bit of a different way, so you need to spit in the core files how
those are handles, so it's best to make your own thread with your problem, so others
can help you out :)
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,058
Reaction score
7,161
First Language
Indonesian
Primarily Uses
RMVXA
Here is a simple answer. Insert your data in Game_System.
It will be included in the save contents. No need to look at the function mentioned here.
This work in all RPG Makers, including RMXP to the latest RMMZ.
 

Latest Threads

Latest Posts

Latest Profile Posts

Mist_new.png
Some WIP of Mist's newest sprites! Tutorials are awesome and very useful!
The RPG Maker community really is the best. It's so wholesome, kind, and helpful, unlike other communities on the internet, Love all you guys!
KenKrath wrote on RPGMakerWeb's profile.
Nevermind.

Forum statistics

Threads
109,118
Messages
1,042,251
Members
141,615
Latest member
Bamionic
Top