Difference between revisions of "LeveledItem Script"
added Notes about how various SKSE functions interact and behave between session and saves/reloads
imported>CraftySentinel (Added SKSE 1.7.0 functions) |
imported>Taleden (added Notes about how various SKSE functions interact and behave between session and saves/reloads) |
||
Line 63: | Line 63: | ||
None | None | ||
== Notes == | |||
# List entries added via AddForm() do persist through a save and reload, and do not leak to other saves during the same play session. | |||
# Conversely, SetChanceNone() and SetChanceGlobal() '''do not''' persist through a save and reload (so they must be manually restored on each reload), and they '''do''' leak to other saves during the same play session (the same way i.e. SetGoldValue() does). | |||
# If a LeveledItem has a global variable defined for chance none (whether it's via SetChanceGlobal() or in the CK), the numeric chance none is ignored and only the global variable is considered. | |||
# SetChanceNone() does not automatically clear SetChanceGlobal(), so you may have to explicitly call SetChanceGlobal(None) to ensure that a new numeric chance none takes effect. | |||
# Revert() does remove all entries added via AddForm(), but (as of SKSE 1.7.1) '''does not''' revert the chance none (numeric or global)! | |||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category:Papyrus]] | [[Category:Papyrus]] | ||
[[Category:Script Objects]] | [[Category:Script Objects]] |