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!
了解更多
scsr 2024 年 10 月 2 日 下午 9:55
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?
< >
正在显示第 1 - 1 条,共 1 条留言
Nyxondra 3 2024 年 10 月 19 日 下午 2:16 
"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.
最后由 Nyxondra 编辑于; 2024 年 10 月 19 日 下午 2:21
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50