Difference between revisions of "Linked List Tutorial"

237 bytes added ,  15:25, 23 June 2012
Byline removed
imported>Gregbert
m ({{Unfinished}})
imported>QQuix
(Byline removed)
{{Unfinished}}
{{Errors}}
{{Byline}}
See [[Dynamic Storage]] for error reason.
 
Preamble note: Since OBSE has added array manipulation to Oblivion script language, the implementation described in this article is only meaningful for modders that don't want to use OBSE in their mods.
By [[User:Tegid|Tegid]] 23:48, 4 May 2006 (EDT)
 
 
 
==Unfortunate Realities==
Previous tutorial: [[Dynamic Storage]]
Before we get started, let me address some unfortunate realities. The code I wrote earlier won't work. You can't call▼
 
▲Before we get started, let me address some unfortunate realities. TheAs mentioned, the code Iin the previous tutorial is just wroteconceptual earlierand won't work. You can't call
<pre>
set Curr.Child to Something
</pre>
Because you cannot access the script variable ''Child'' thru a ref var ''Curr''.
On a non-persistent reference. That means I can't call it on any of the objects I create in game. So that causes a serious problem. Fortunately there is a way to address it.▼
 
▲On a non-persistent reference. That means I can't call it on any of the objects I create in game. So that causes a serious problem. Fortunately there is a way to address it.
 
==Creating a Real World Linked List==
end</pre>
 
In both versions,version we still need to handle someone ASKING for data. , Soso we also add this if block inside the OnActivate block.
<pre>
if (dataRequest)
Anonymous user