This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
save_data [2024/02/05 20:15] – created justin | save_data [2025/08/22 14:28] (current) – justin | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Save Data====== | ======Save Data====== | ||
---- | ---- | ||
- | (WIP) | + | Saves custom data to a file, with an optional password parameter for encrypting the file. The file is stored in the user's application data folder alongside their game saves. The data can be one of the following types: [[string]], [[number]], [[boolean]], |
+ | |||
+ | For more information on using data files, check out [[https:// | ||
====Signature: | ====Signature: | ||
<code python> | <code python> | ||
- | save_data() | + | save_data(data, filename, password) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | | | | | | | + | |data| |[[String]], [[Number]], [[Boolean]], |
+ | |filename| |[[String]]|Yes| | ||
+ | |password| |[[String]]|No| | ||
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
- | save_data(); | + | |
</ | </ | ||
// | // |