Difference between revisions of "Talk:Reference Variables"
Jump to navigation
Jump to search
→Isolation?: uh... that's how the dot works?
imported>Antares (Reference Isolation? Bethesda seem to know a way to circumvent this issue. I wanna know!) |
imported>DragoonWraith (→Isolation?: uh... that's how the dot works?) |
||
Line 147: | Line 147: | ||
It seems to me that the above line uses a reference from the other script. Ideas anyone, how is this achieved?<BR> | It seems to me that the above line uses a reference from the other script. Ideas anyone, how is this achieved?<BR> | ||
--[[User:Antares|Antares]] 08:31, 8 September 2008 (EDT) | --[[User:Antares|Antares]] 08:31, 8 September 2008 (EDT) | ||
:I'm confused. You are familiar with the dot construction for referencing the local variables of other objects, yes? Actually... This is one of those things that is really basic and therefore poorly elucidated on the Wiki. See [[UseReference|here]] for what I am talking about. That should (I think) answer your question. | |||
:The short answer is, though, that this is just how it works. You can use the variable from another object (as long as it is in memory, so it has to be a quest or a persistent reference) by using ''quest.variable'' or ''persistent_reference.variable''. This includes reference variables. | |||
:The important point is that you cannot do something like ''quest.ref_variable.function'', you need to do something more like ''set local_ref to quest.ref_variable / local_ref.function''. This does introduce some frustrating limitations, unfortunately. | |||
:[[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>]] 11:26, 8 September 2008 (EDT) |