Difference between revisions of "Talk:Reference Variables"

Jump to navigation Jump to search
991 bytes added ,  12:44, 14 November 2010
no edit summary
imported>Antares
(→‎Isolation?: Thanks DragoonWraith)
imported>Diarrhoe
Line 157: Line 157:
::Thanks DragoonWraith, no I wasn't familiar with the dot construction.... Your explanation and the link in cooperation have provided a good answer though. In my case I don't think any limitations will be a problem as I am simply recreating a more robust version of something that is already perfectly functional by Bethesda in-game. Had I read the [[UseReference]] page without your explanation I doubt I would have found it very helpful. I think some more information should be added to articles both here and there.
::Thanks DragoonWraith, no I wasn't familiar with the dot construction.... Your explanation and the link in cooperation have provided a good answer though. In my case I don't think any limitations will be a problem as I am simply recreating a more robust version of something that is already perfectly functional by Bethesda in-game. Had I read the [[UseReference]] page without your explanation I doubt I would have found it very helpful. I think some more information should be added to articles both here and there.
::--[[User:Antares|Antares]] 22:26, 8 September 2008 (EDT)
::--[[User:Antares|Antares]] 22:26, 8 September 2008 (EDT)
== Problem with object references? ==
I have a problem with the use of reference variables. To me, it seems that the references can be used in script with any function, but I'm unable to access variables on these references.
That means, while
<pre>ref refVAR
set refVAR to anyReference
refVAR.activate
refVAR.pms effectShield
refVAR.setDestroyed
;and so on</pre>
works as expected,
<pre>ref refVAR
set refVAR to anyReference
set refVAR.anyVariableStoredInTheReferencesScript to x</pre>
does not even compile and neither does
<pre>ref refVAR
short anyVariable
set refVAR to anyReference
set anyVariable to refVAR.anyVariableStoredInTheReferencesScript</pre>
I always get a message of an "unknown variable" and a missed parameter. It's not the message itself, which I don't understand, but the reason for that behaviour, especially since
<pre>set anyReference.anyVariableStoredInTheReferencesScript to x</pre>
compiles at least.-[[User:Diarrhoe|Diarrhoe]] 12:44, 14 November 2010 (EST)
Anonymous user

Navigation menu