Talk:Reference

From the CreationKit Wiki
Jump to navigation Jump to search

Starts Dead[edit source]

This flag simply kills the actor when the cell is loaded and it prevents Resurrect - Actor from reviving the actor. One way to tell if an actor was loaded with this flag set is that they will always have full health and will not return a killer from GetKiller - Actor. --Rasikko (talk) 2021-08-01T05:31:08 (EDT)

Reference Editor ID in the (old) CS[edit source]

Hello.

I have some questions to understand the new scripting language.

In the CK you could make an persistent reference by using the Editor ID and activating the Persistent Ref option.

How do I do that now?

For example I place a unique NPC with a Reference Editor ID in the editor. How can I now reference to him in, let's say a script attached to an item (not in NPC inventory), since there are no persisent references?

Now for quests. I read the alias tutorial. I have a hard time to understand something there. If I have various quests that basically never stop and the scripts in them also should never stop, imo, it is easier to do that with persistent reference and use it inside the quest script like in the CK. Because alias won't be useful in this scenario. As the alias would never end. Wouldn't it conflict if two quests and two aliases on the same unique NPC are in effect?

Dog 02:46, 9 February 2012 (EST)

Unless the quests are applying conflicting scripts on the npc, multiple aliases to the same unique NPC are fine, and in fact, is done numerous times by the game itself without modification. A great example would be Delvin Mallory of the Thieves Guild, who can have aliases from the Dark Brotherhood quest line, The Litany of Larceny, and one of his small job Radiant Quests all at the same time, and that's only considering quests that you actually see in the journal, and even then there's probably the possibility of a few more. Tails 21:08, 2 May 2012 (EDT)

Reference Editor ID in Scripts[edit source]

I found this, don't know if anybody else knew.

When you open the reference window, you can give the object a id/name.

Lets say you call it "MyReferenceEditorIDName"

Now if you have a script that uses that object or many other objects, it can be a big job to pick each object with the pick reference tool.

but if you call your reference the same as the EditorID in the script.

like so:

ObjectReference Property "MyReferenceEditorIDName" Auto

then the only thing you need to do is hit the "Auto-Fill All" button in the script's properties window and wupti! all your ObjectReferences are filled out.

This is very similar to the way ReferenceIDs were handled in the GECK.

--VampireMonkey (talk) 2014-04-21T20:25:29 (EDT)