So I just noticed that when assigning database objects additional data, it does not get saved when saving the game.
For instance, if wrote:
$dataSkills[102]._power = 2;
$dataSkills[102]._power would return 2.
It works perfectly well.
But if I were to save the game, close the game, and then return to the game,
$dataSkills[102]._power would return "undefined".
Is there any way to save ._ data when saving a game?
And if not, is there any other method to add data to a database object?
My last resort would be to use variables, but that's kinda messy, as we are talking about A LOT of objects.
For instance, if wrote:
$dataSkills[102]._power = 2;
$dataSkills[102]._power would return 2.
It works perfectly well.
But if I were to save the game, close the game, and then return to the game,
$dataSkills[102]._power would return "undefined".
Is there any way to save ._ data when saving a game?
And if not, is there any other method to add data to a database object?
My last resort would be to use variables, but that's kinda messy, as we are talking about A LOT of objects.