http://agiwiki.sierrahelp.com//index.php?title=Word&feed=atom&action=historyWord - Revision history2024-03-28T23:27:45ZRevision history for this page on the wikiMediaWiki 1.35.9http://agiwiki.sierrahelp.com//index.php?title=Word&diff=989&oldid=prevAndrew Branscom at 20:49, 2 August 20132013-08-02T20:49:30Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 20:49, 2 August 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l7" >Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Data types ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Data types ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>{{Data <del class="diffchange diffchange-inline">types</del>}}</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{{Data <ins class="diffchange diffchange-inline">Types</ins>}}</div></td></tr>
</table>Andrew Branscomhttp://agiwiki.sierrahelp.com//index.php?title=Word&diff=988&oldid=prevAndrew Branscom: Created page with "This data type refers to an array of numbers and a matching array of text entries that correspond to the parsed list of words that are typed by a player. Word values are repre..."2013-08-02T20:49:20Z<p>Created page with "This data type refers to an array of numbers and a matching array of text entries that correspond to the parsed list of words that are typed by a player. Word values are repre..."</p>
<p><b>New page</b></p><div>This data type refers to an array of numbers and a matching array of text entries that correspond to the parsed list of words that are typed by a player. Word values are represented in source code by the letter 'w' and their index (i.e. w1, w2, etc.)<br />
<br />
This data type should not be confused with the vocabulary words list that is provided in the WORDS.TOK resource file, although it is related. The parser puts the text of each parsed word in the word text array and compares them to the words in [[WORDS.TOK|WORDS.TOK]]. The word number array is filled with the numbers that correspond to entries in the WORDS.TOK file. The words number data array is used internally by the interpreter when the said command is processed. Arguments in the said command are compared against the numbers in the words array to determine if player input matches.<br />
<br />
The words data arrays are filled by the interpreter's parser each time the player presses the enter key. The arrays can hold up to 10 words; if more than 10 are entered, only the first 10 are kept; the rest are discarded. In AGI commands, word values are referenced by their index, with the first word being index 0, the second being index 1, etc. This is somewhat confusing, since the print command format code for words starts with the first word being "w1", not "w0". ([[WinAGI|WinAGI]] handles this by requiring word arguments to be 'one-based', and then converts them to 'zero-based' on compilation, to maintain consistency with the print command format codes.)<br />
<br />
== Data types ==<br />
<br />
{{Data types}}</div>Andrew Branscom