Submenu Terminal Unlocking/Locking Door?

Post » Thu Jan 13, 2011 12:00 am

Hello,

(I tried using the correct terminology, so, if I got anything wrong, please let me know)

The main question is such: for a submenu door unlocking terminal, instead of setting the variable (the door) through the GetLinkedRef function, how would I set it by giving its EditorID?

The context is that I am creating a submenu terminal that would unlock a door. Because it is submenu (and won't be present in the cell), I can't use the GetLinkedRef function. So, I thought there must be a way where I could state the
variable (the door) by giving the door's EditorID. But, I don't know how to go about this (i.e. is it a command, function, et cetera)?


As a note, I do think I realize that one could keep the submenu terminal present and just hide it, but I would much rather go about this through scripting (for which I am much so a beginner, at the moment, :P).

Oh, and much appreciation!
User avatar
Rob
 
Posts: 3448
Joined: Fri Jul 13, 2007 12:26 am

Post » Wed Jan 12, 2011 9:30 pm

You don't give it the 'Editor ID', you give it the 'Reference Name' in the script.

Double-click the door in the RENDER WINDOW.
At the top is a blank box to give that object, and that object only, a Reference ID name. Give it a name, but NEVER under any circumstance use a numeric as the first character because it will not work.
For example: MyDoor001REF
That would be a good example of a Referene Name on an object. Note that I put 'REF' at the end of it so you know what it is when you see it in a script.

In the submenu script, you then use the unlock command.
MyDoor001REF.Unlock

User avatar
StunnaLiike FiiFii
 
Posts: 3373
Joined: Tue Oct 31, 2006 2:30 am

Post » Wed Jan 12, 2011 11:54 pm

You don't give it the 'Editor ID', you give it the 'Reference Name' in the script.

Double-click the door in the RENDER WINDOW.
At the top is a blank box to give that object, and that object only, a Reference ID name. Give it a name, but NEVER under any circumstance use a numeric as the first character because it will not work.
For example: MyDoor001REF
That would be a good example of a Referene Name on an object. Note that I put 'REF' at the end of it so you know what it is when you see it in a script.

In the submenu script, you then use the unlock command.
MyDoor001REF.Unlock



Ah, excellent. This resulted in complete success. I do now understand.

Thank you very much for your help!
User avatar
adam holden
 
Posts: 3339
Joined: Tue Jun 19, 2007 9:34 pm

Post » Wed Jan 12, 2011 6:11 pm

Glad it helped.
Using reference names will open many doors for your mods.
(pun intended) :rofl:
User avatar
..xX Vin Xx..
 
Posts: 3531
Joined: Sun Jun 18, 2006 6:33 pm


Return to Fallout 3