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,731
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,602
Reaction score
1,354
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,132
Reaction score
7,306
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 Profile Posts

Paid material WIP~
EysZO9cVEAEWy9W

This is Alchemy pack.
I decided to add more witch elements.

Now we have wooden props, candles, pots, and potion bottles.
We also want to add herbs, kettles, fireplaces, etc.
First posts! Maybe I can use this update?
Using MV here: can i move blocks around in the event page and i'm just too stupid to do it or does it only look like you should be able to do it and i would always need to cut and paste?
Aba, aba chgb rtb fhz.
Ubp rfg hahz qr snohyvf srpv, cbfg bzarf.
Rtb vhfghf ibyb hg ivtvyb ubp hahz rk yhqb.
Qbarp fvathyvf yhqvb yhqvhf cbgrfg, aba zntvf.

Streaming Anterograde Fantasy, a new game I'm working on

Forum statistics

Threads
110,386
Messages
1,052,882
Members
143,440
Latest member
casoliopp
Top