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,730
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,653
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,582
Reaction score
1,347
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,115
Reaction score
7,276
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

currently working on some template sprites and tweaking the walk cycle :)
Lunee.jpg
Early try to draw our Demon Countess, who destroyed her own soul leaving just an empty shell of a body - until our heroine unwillingly takes possession of it, every time she falls asleep.
(I know it’s a premade face from the Dark Fantasy Set, but I spent so much time with her, that I can’t bring myself to change the sprite anymore xD)
I finished setting up my new desk and apparently she thinks this is where she goes now.

20210411_082331.jpg
not me baking a pie because i was inspired by celeste

Forum statistics

Threads
110,303
Messages
1,052,115
Members
143,335
Latest member
Garlock
Top