Associate reserved pointers directly to their values, rather than referencing magic SDFs

- String buffer referencing is no longer done via a pointer but instead by a magic value separate from the pointer system (it's still -8 though)
- String buffer now stored in universe instead of scenario
This commit is contained in:
2015-06-07 02:46:57 -04:00
parent 01d317b007
commit 543ccdc670
10 changed files with 81 additions and 105 deletions

View File

@@ -71,8 +71,6 @@ special node. In addition, there are a number of reserved pointers that are set
circumstances. Rather than referencing a Stuff Done Flag, these refer to special values of
the encounter itself. The reserved pointers are:</p>
<ol start=''>
<li value='5'>If the special node was called to determine the result of a custom trap
effect, this pointer refers to the trap level.</li>
<li value='8'>This can be used anywhere a scenario message is expected to refer to the
special string buffer. The contents of the special string buffer can be manipulated using
the Clear Buffer special node and various Append To Buffer special nodes.</li>
@@ -80,6 +78,8 @@ the Clear Buffer special node and various Append To Buffer special nodes.</li>
on.</li>
<li>This contains the Y coordinate of the space the special node was triggered on.</li>
<li>This contains the terrain type of the space the special node was triggered on.</li>
<li value='15'>If the special node was called to determine the result of a custom trap
effect, this pointer refers to the trap level.</li>
<li value='20'>When a special node is called during an attack, this contains the number of
the targeted creature, ready to be passed to a Select Target special node.</li>
<li>When a special node is called during an attack, this contains the X coordinate of the

View File

@@ -416,7 +416,10 @@ given in the Transform To What field, it is changed to that terrain type.
<dt>Extra 1a, Extra 1b:</dt><dd>The x and y coordinates of the space to
transform.</dd></dd>
<dt>Type 37: Clear String Buffer</dt><dd>Clears the string buffer.</dd>
<dt>Type 37: Clear String Buffer</dt><dd>Clears the string buffer. It's best to always do
this before you use the buffer. The buffer is never automatically cleared, but it is not
saved, so if the user reloads from a saved game, anything that was in the buffer may be
lost.</dd>
<dt>Type 38: Append String to Buffer</dt><dd>Appends a literal string to the string buffer.
<dl>