Save new custom data

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,299
Reaction score
11,712
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,639
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top