-
Use the function
stash_load()with the file name and the default values to start the system:global.data = stash_load("data.sav", { life : 80, gold : 450, items : [ "Sword", "Shield", "Chestplate" ] })
-
Save the file with
stash_save()when desired – on game end event or at the press of a button:stash_save("data.sav", global.data);
-
If you want to reload the file, just use
stash_load()again:global.data = stash_load("data.sav");
Kruger0/Stash
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|