http://agiwiki.sierrahelp.com//index.php?title=Special_Variables&feed=atom&action=history
Special Variables - Revision history
2024-03-29T01:10:30Z
Revision history for this page on the wiki
MediaWiki 1.35.9
http://agiwiki.sierrahelp.com//index.php?title=Special_Variables&diff=6433&oldid=prev
Andrew Branscom: /* Data types */
2013-12-26T04:20:18Z
<p><span dir="auto"><span class="autocomment">Data types</span></span></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 04:20, 26 December 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l148" >Line 148:</td>
<td colspan="2" class="diff-lineno">Line 148:</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="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 colspan="2"> </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><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </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><ins style="font-weight: bold; text-decoration: none;">&nbsp;</ins></div></td></tr>
<tr><td colspan="2"> </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><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </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><ins style="font-weight: bold; text-decoration: none;">[[Category:Variables]]</ins></div></td></tr>
</table>
Andrew Branscom
http://agiwiki.sierrahelp.com//index.php?title=Special_Variables&diff=950&oldid=prev
Andrew Branscom at 19:02, 2 August 2013
2013-08-02T19:02:22Z
<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 19:02, 2 August 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l147" >Line 147:</td>
<td colspan="2" class="diff-lineno">Line 147:</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 Branscom
http://agiwiki.sierrahelp.com//index.php?title=Special_Variables&diff=949&oldid=prev
Andrew Branscom at 19:01, 2 August 2013
2013-08-02T19:01:50Z
<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 19:01, 2 August 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l133" >Line 133:</td>
<td colspan="2" class="diff-lineno">Line 133:</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>* 4 = MCGA</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>* 4 = MCGA</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>'''Note:''' In real CGA with composite monitor, the game displays 160x200 with 16 color but the texts are weird. It's more like playing an <del class="diffchange diffchange-inline">agi </del>game on apple2. On CGA with color monitor, the game displays black and white. On EGA and more recent graphic card, CGA displays black-cyan-magenta-white CGA palette.</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>'''Note:''' In real CGA with composite monitor, the game displays 160x200 with 16 color but the texts are weird. It's more like playing an <ins class="diffchange diffchange-inline">AGI </ins>game on apple2. On CGA with color monitor, the game displays black and white. On EGA and more recent graphic card, CGA displays black-cyan-magenta-white CGA palette.</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;"><div>|}</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>|}</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>
</table>
Andrew Branscom
http://agiwiki.sierrahelp.com//index.php?title=Special_Variables&diff=948&oldid=prev
Andrew Branscom: Created page with "Some variables have special meaning to the interpreter<nowiki>: </nowiki> {| style="border: gray solid 1px; border-collapse: collapse; text-align..."
2013-08-02T19:01:25Z
<p>Created page with "Some <a href="/index.php/Variable" title="Variable">variables</a> have special meaning to the <a href="/index.php/Interpreter" title="Interpreter">interpreter</a><nowiki>: </nowiki> {| style="border: gray solid 1px; border-collapse: collapse; text-align..."</p>
<p><b>New page</b></p><div>Some [[Variable|variables]] have special meaning to the [[Interpreter|interpreter]]<nowiki>: </nowiki><br />
<br />
{| style="border: gray solid 1px; border-collapse: collapse; text-align: left" width="100%" border="1" cellspacing="5" cellpadding="5"<br />
|- style="background: #ececec"<br />
! Var<br />
!<br />
Name in [[defines.txt|defines.txt]]<br />
! Description<br />
|-<br />
| v0<br />
| <code>room_no</code><br />
|<br />
Number of the current [[Room|room]]<br />
|-<br />
| v1<br />
| <code>prev_room_no</code><br />
| Number of the previous room<br />
|-<br />
| v2<br />
| <code>ego_edge_code</code><br />
|<br />
Which [[Screen edges|edge of the screen]] [[Ego|ego]] is touching<br />
<br />
* 0 = not touching edge<br />
* 1 = horizon<br />
* 2 = right edge<br />
* 3 = bottom edge<br />
* 4 = left edge<br />
|-<br />
| v3<br />
| <code>score</code><br />
| Current score<br />
|-<br />
| v4<br />
| <code>object_touching_edge</code><br />
|<br />
Number of an [[Animated Object|object]] other than ego that is touching the edge<br />
|-<br />
| v5<br />
| <code>object_edge_code</code><br />
| See <code>ego_edge_code</code><br />
|-<br />
| v6<br />
| <code>ego_dir</code><br />
|<br />
Direction of ego's motion (see [[Moving objects|Moving objects]] for a list of directions)<br />
|-<br />
| v7<br />
| <code>max_score</code><br />
| Maximum score<br />
|-<br />
| v8<br />
| <code>free_memory</code><br />
| The number of 256-byte lots of free memory available for resources<br />
|-<br />
| v9<br />
| <code>unknown_word_no</code><br />
| If the player has entered an unknown word, this is set to the number of that word (i.e., 2 if it's the second word entered). Otherwise, this is 0.<br />
|-<br />
| v10<br />
| <code>cycle_delay</code><br />
| Delay between interpreter cycles, in 1/20 second increments.<br />
|-<br />
| v11<br />
| <code>clock_seconds</code><br />
| Number of seconds on the interpreter's clock (the clock is reset when the game starts)<br />
|-<br />
| v12<br />
| <code>clock_minutes</code><br />
| Number of minutes on the interpreter's clock<br />
|-<br />
| v13<br />
| <code>clock_hours</code><br />
| Number of hours on the interpreter's clock<br />
|-<br />
| v14<br />
| <code>clock_days</code><br />
| Number of days on the interpreter's clock<br />
|-<br />
| v15<br />
| <code>joystick_sensitivity</code><br />
| Sensitivity of the joystick<br />
|-<br />
| v16<br />
| <code>ego_view_no</code><br />
| Number of the view assigned to ego<br />
|-<br />
| v17<br />
| <code>error_code</code><br />
| What type of error has occurred<br />
|-<br />
| v18<br />
| <code>error_information</code><br />
| Extra information about the error<br />
|-<br />
| v19<br />
| <code>key_pressed</code><br />
| The ASCII code of the key that has just been pressed, if any<br />
|-<br />
| v20<br />
| <code>computer_type</code><br />
| Type of computer (0 = PC)<br />
|-<br />
| v21<br />
| <code>window_close_time</code><br />
| Number of half-seconds to wait before closing a window (if 0, the window remains on screen until the user presses a key)<br />
|-<br />
| v22<br />
| <code>sound_type</code><br />
| Number of sound channels (PC = 1, Tandy = 3)<br />
|-<br />
| v23<br />
| <code>sound_volume</code><br />
| Volume of the sound (0 = loudest, 15 = quietest)<br />
|-<br />
| v24<br />
| (not defined)<br />
| Specifies the maximum number of characters that the player may enter on the input line. Defaults to 41.<br />
|-<br />
| v25<br />
| <code>selected_inventory_item</code><br />
| If the player has selected an inventory item from the inventory screen, this is set to the number of that item (or 255 if ESC was pressed)<br />
|-<br />
| v26<br />
| <code>video_mode</code><br />
|<br />
Video mode:<br />
<br />
* 0 = CGA (black-cyan-magenta-white CGA palette)(see note)<br />
* 1 = RGB (blue-yellow-red--green CGA palette)<br />
* 2 = Hercules<br />
* 3 = EGA<br />
* 4 = MCGA<br />
<br />
'''Note:''' In real CGA with composite monitor, the game displays 160x200 with 16 color but the texts are weird. It's more like playing an agi game on apple2. On CGA with color monitor, the game displays black and white. On EGA and more recent graphic card, CGA displays black-cyan-magenta-white CGA palette.<br />
|}<br />
<br />
== See also ==<br />
<br />
* [[Special Flags|Special flags]]<br />
* [[Variable|Variable]]<br />
<br />
== Sources ==<br />
<br />
* [[AGI Studio|AGI Studio]] help file<br />
<br />
== Data types ==<br />
<br />
{{Data types}}</div>
Andrew Branscom