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,732
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,654
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
134
Reaction score
15
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,648
Reaction score
1,372
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,137
Reaction score
7,328
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

MarcheBeoulve1 wrote on amerk's profile.
What the hell's up with your Profile Pic!
It's so cursed
Why is parallexing so time-consuming? Ive been at it for 8hrs and i havent even finished the map yet :/
It seems MogHunter Twitter is back...
1618970067646.png
Feedback would be appreciated. To me it feels like the Dad does look a bit too normal and boring.
I think he's missing some features that make him more unique. Opinions?

Forum statistics

Threads
110,591
Messages
1,054,492
Members
143,715
Latest member
natzma
Top