Difference between revisions of "Talk:Reference Variables"
Jump to navigation
Jump to search
update note
imported>DragoonWraith (fixing width stuff) |
imported>DragoonWraith (update note) |
||
Line 1: | Line 1: | ||
== Update: Terminology Discussion == | |||
This article needs to be updated to reflect the changes decided in the Terminology Discussion. First of all, it should be moved to Record Variables, and then the difference and reasons should be explained. I will probably do this myself, but I cannot at this moment, so I'm just leaving a note.<br /> | |||
[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 21:04, 27 January 2008 (EST) | |||
== Technical Workings of Ref Variables? == | |||
How are reference variables stored internally. I'm having issues reliably accessing my reference variables when there get to be more than 16 user created ones in a cell. I get correct behaviour sometimes but not all the time. I can provide an ESP and simple instructions to replicate the problem. It is possible it is my code however which is why I would like to try and eliminate as many issues as possible, since you certainly don't have time to be debugging my scripts. | How are reference variables stored internally. I'm having issues reliably accessing my reference variables when there get to be more than 16 user created ones in a cell. I get correct behaviour sometimes but not all the time. I can provide an ESP and simple instructions to replicate the problem. It is possible it is my code however which is why I would like to try and eliminate as many issues as possible, since you certainly don't have time to be debugging my scripts. | ||
Line 9: | Line 16: | ||
(EDT) | (EDT) | ||
== Unnecessary Caveats == | |||
CAVEAT: Objects created by leveled lists do not process in low, if you set a reference variable from a leveled list, if your script tries to refer to that reference variable when that actor isn't loaded, bad things will happen. So don't ever do a "set myRefVariable to myXmarker.placeAtMe myLeveledList". Instead create an if-then section in a script which checks the player level, pick an appropriate base object for the players level, then do a "set myRefVariable to myXmarker.placeAtMe SpecificBaseObjectID".--[[User:Jduvall|Jduvall]] | CAVEAT: Objects created by leveled lists do not process in low, if you set a reference variable from a leveled list, if your script tries to refer to that reference variable when that actor isn't loaded, bad things will happen. So don't ever do a "set myRefVariable to myXmarker.placeAtMe myLeveledList". Instead create an if-then section in a script which checks the player level, pick an appropriate base object for the players level, then do a "set myRefVariable to myXmarker.placeAtMe SpecificBaseObjectID".--[[User:Jduvall|Jduvall]] | ||
Line 18: | Line 26: | ||
:You can't use ANY variables this way.--[[User:JOG|JOG]] 17:19, 24 May 2006 (EDT) | :You can't use ANY variables this way.--[[User:JOG|JOG]] 17:19, 24 May 2006 (EDT) | ||
== Persistence? == | |||
Looking at this description from the article: | Looking at this description from the article: | ||
Line 28: | Line 38: | ||
:::Thanks. [[User:Scruggs|Scruggs]] 10:45, 20 July 2006 (EDT) | :::Thanks. [[User:Scruggs|Scruggs]] 10:45, 20 July 2006 (EDT) | ||
== Quest as Function Reference? == | |||
[[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? | ||