Difference between revisions of "Talk:Reference Variables"
Jump to navigation
Jump to search
...
imported>DragoonWraith (quest as a reference? How's that work?) |
imported>JOG (...) |
||
Line 28: | Line 28: | ||
---- | ---- | ||
[[User:DragoonWraith|<font face="Oblivion,Daedric Runes" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 11:51, 14 August 2006 (EDT): JOG, you just added this: "Uninitialized reference variables act as if they referred to the scripted object '''or quest itself'''" - what do you mean? What functions can take a quest as the calling object? | [[User:DragoonWraith|<font face="Oblivion,Daedric Runes" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 11:51, 14 August 2006 (EDT): JOG, you just added this: "Uninitialized reference variables act as if they referred to the scripted object '''or quest itself'''" - what do you mean? What functions can take a quest as the calling object? | ||
:All of them, of course there is no useful effects. | |||
set MyReference.myvariable to 1 | |||
:On the other hand refers to the variable in the quest until it's set. | |||
:You can also set Reference-Variables to Base Objects and cells and use them as placeholder for the EditorIDs in the appropriate commands: | |||
If GetIncell Referencevariable | |||
Ref Currentammo | |||
Set Currentamo to Arrow1Iron | |||
Player additem Currentammo 1 |