Difference between revisions of "AddForm - LeveledItem"
→Notes
imported>JustinOther |
imported>JustinOther (→Notes) |
||
Line 25: | Line 25: | ||
== Notes == | == Notes == | ||
*Currently (v1.5.26.0), forms added to leveled items in this manner will not persist in save games, unlike [[AddForm - FormList]]. This can be demonstrated or even exploited with the below | *Currently (v1.5.26.0), forms added to leveled items in this manner will not persist in save games, unlike [[AddForm - FormList]]. This can be demonstrated or even exploited with the below, a jury rigged GetGameLoaded() function. | ||
<source lang="papyrus">Bool Function GetGameLoaded(LeveledItem akLeveledItem = None, Form apItem = None, ObjectReference akContainer = None) | <source lang="papyrus">Bool Function GetGameLoaded(LeveledItem akLeveledItem = None, Form apItem = None, ObjectReference akContainer = None) | ||
akContainer.AddItem(akLeveledItem, 1, True) | akContainer.AddItem(akLeveledItem, 1, True) | ||
Line 36: | Line 36: | ||
EndIf | EndIf | ||
EndFunction</source> | EndFunction</source> | ||
== See Also == | == See Also == | ||
*[[LeveledItem Script]] | *[[LeveledItem Script]] | ||
*[[Revert - LeveledItem]] | *[[Revert - LeveledItem]] |