Postby Hoeloe » Sat Apr 25, 2020 7:50 am
There's not really much to say. I believe it's convered in the handbook though, which you should be using instead of the wiki, since the wiki is incredibly outdated.
In principle, SaveData and GameData are just tables like any other, and you can just store values in them, for example:
SaveData.myVariable = 1
Anything stored in GameData will stay there between loading screens, but it will be cleared when you exit the game. Anything stored in SaveData will also stay there between loading screens, but will also be saved when the game saves, and loaded when you load your save file.