Tut | Questdata - JasXSL/GoThongs GitHub Wiki

Quest data lets you store variables on the server to keep track of players choices within quests. Keep in mind that these variables are cleared every time a player starts a new quest. The only current usage is to keep track of whether a player killed or helped Timmy in MQ02. When a cell is spawned live, LevelEvt$questData is raised with the data that you have previously saved. You can listen for that in your _MAIN script.

To save data you can run:

runOnPlayers(targ,
    Bridge$setQuestData(targ, data);
)

Here DATA is a JSON object or array containing the flags you want to save. If you want to store a CSV or just a string you can do that too. The only limit that you should make sure that it's less than 1000 bytes because of SL.

⚠️ **GitHub.com Fallback** ⚠️