Angels with Scaly Wings

Angels with Scaly Wings

Welcome to the Angels with Scaly Wings Workshop!
Download user created mods, or create and upload some of your own!
Learn More
scsr 2 Oct, 2024 @ 9:55pm
What is the difference between "mp" and "persistent" variables?
I was looking through the decompiled code to see how certain things are done and I noticed that some variables are prefixed with "mp" or "persistent". The "mp" variables seem to be followed by "mp.save()". So I'm guessing both have something to do with saved data, but what is the difference? Does it matter which one I use if I want to include something in the save data?
< >
Showing 1-1 of 1 comments
Nyxondra 3 19 Oct, 2024 @ 2:16pm 
"mp" is "multi-game-persistence" meaning those SHOULD be variables that get saved to be loaded in a potential sequel.

Most "multipersistent" variables for the purposes of modding just flat-out don't work in AWSW for some reason, so other than mp.save() there's absolutely zero reason to use them.

Regular "persistent" variables are variables that get saved and not reset on a new game start. This is what enables characters to remember certain things that happened in previous playthroughs, these are generally used for much of the same purposes in mods as well.
Last edited by Nyxondra; 19 Oct, 2024 @ 2:21pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50