So I just started to learn how to make plugins. Here's the situation:
In the editor, I made the class #1 have notetag...
<Fruits>
Banana
Orange
Apple
Apple
Grapes
</Fruits>
I want to add another Banana in the list later in the game by an event. so I created an event that run a script something like...
$dataClasses[1].fruits.push("Banana");
It did add "Banana" in the list of fruits but the problem is, after saving the progress and restarting the game, the changes are gone as if it didn't save the new list of fruits which should now include another Banana. In other words, it's back to the original data. So how can I properly add Banana permanently in the middle of the game?
In the editor, I made the class #1 have notetag...
<Fruits>
Banana
Orange
Apple
Apple
Grapes
</Fruits>
I want to add another Banana in the list later in the game by an event. so I created an event that run a script something like...
$dataClasses[1].fruits.push("Banana");
It did add "Banana" in the list of fruits but the problem is, after saving the progress and restarting the game, the changes are gone as if it didn't save the new list of fruits which should now include another Banana. In other words, it's back to the original data. So how can I properly add Banana permanently in the middle of the game?