Difference between revisions of "A beginner's guide, lesson 1 - The Construction Set Primer"

imported>Bruneauinfo
(→‎Creating a New Persistent Reference: Added note about using number to start EditorID)
imported>Kaelvala
Line 284: Line 284:


====Creating a New Persistent Reference====
====Creating a New Persistent Reference====
Generally, giving a thing a persistent reference is necessary when you want some process to be able to refer to that thing from somewhere else. Specifically, flagging a reference as persistent means that Oblivion will always keep it in memory (it persists.)  The advantage to being flagged persistent is that scripts, quests or AI packages can use that reference even when the player is in a different cell. If a script, a quest, or an AI package, will possibly need the thing outside of the cell in which it is given its reference, then that reference needs to be a persistent reference. Oblivion only loads a certain number of cells at a time, and calling upon anything that is not loaded or persisting in memory will cause a crash.  The disadvantage to making all references persistent is that the persistent references occupy memory. If 500,000 references that did not need to persist were, in fact, made persistent and each used 4 bytes that would require about 2 MB of memory and a corresponding use of disk space for each save.  After all, to persist they must be reloaded upon resumption of the game.
#Open the cell you wish to add the Persistent Reference to, so you can see it in the [[Render Window]]
#Open the cell you wish to add the Persistent Reference to, so you can see it in the [[Render Window]]
#*Double-click the cell in the [[Cell View Window]]
#*Double-click the cell in the [[Cell View Window]]
Anonymous user