User Tools

Site Tools


save_data

This is an old revision of the document!


Save Data


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, array, codex, coordinate, color, entity. If the provided filename ends with “.json”, the data is either an array or codex, and no password is used, the data will be stored as a human-readable JSON file.

Signature:

save_data(data, filename, password)
ArgumentDescriptionTypeRequired
data String, Number, Boolean, Array, Codex, Coordinate, Color, EntityYes
filename StringYes
password StringNo

Example:

 

Results:

Use the Save Data function to…


Editor Node:

save_data.1755897139.txt.gz · Last modified: 2025/08/22 14:12 by justin