Reference Editor ID

Post » Mon Jun 18, 2012 2:31 am

Hey guys,

I'm currently working with the CK and trying to get the scripting right, but there is one thing that bothers me: I can't figure out how to use the Reference Editor ID in a script. For people who dont know what I am talking about http://www.creationkit.com/Reference look under "Common". It says clearly:

Reference Editor ID: An optional text name that makes it easier to refer to this object in scripts and [...]

In Oblivion it was possible to then simply use that reference simply in a script. Lets say the Reference Editor ID of my placed NPC is "mySuperNpcRef" and I wanted to used it in a script, I could simply write "mySuperNpcRef.kill" or similar. But in Skyrim it doesnt seem possible. Long story short: I want to adress a reference without redefining it in the properties of each placed oject seperately.
User avatar
Baby K(:
 
Posts: 3395
Joined: Thu Nov 09, 2006 9:07 pm

Post » Mon Jun 18, 2012 11:14 am

You need to define a property, and assign the reference that you want to use as the default value of that property, which you can do in the script tag of the dialogue window of the form with the script attached to it in the Creation Kit.

Cipscis
User avatar
Karen anwyn Green
 
Posts: 3448
Joined: Thu Jun 15, 2006 4:26 pm

Post » Mon Jun 18, 2012 7:11 am

You need to define a property, and assign the reference that you want to use as the default value of that property, which you can do in the script tag of the dialogue window of the form with the script attached to it in the Creation Kit.

Cipscis
Ye I expected that... helps me a little though. Thanks
User avatar
Floor Punch
 
Posts: 3568
Joined: Tue May 29, 2007 7:18 am

Post » Mon Jun 18, 2012 4:19 am

Its a shame that you cant do it in the script ONLY, without involving the editor.
User avatar
Cagla Cali
 
Posts: 3431
Joined: Tue Apr 10, 2007 8:36 am

Post » Sun Jun 17, 2012 9:40 pm

You aren't completely helpless in the script, though - if you use the editorID as the name of your property then the Creation Kit can auto-fill it.

The key point here is that the compiler doesn't look inside any data files, so there's no way in which it can recognise any editorIDs. That's why you have to use the Creation Kit in order to set things like this up fully.

Cipscis
User avatar
Charlotte X
 
Posts: 3318
Joined: Thu Dec 07, 2006 2:53 am


Return to V - Skyrim