http://agiwiki.sierrahelp.com//index.php?title=Version&feed=atom&action=historyVersion - Revision history2024-03-28T14:03:55ZRevision history for this page on the wikiMediaWiki 1.35.9http://agiwiki.sierrahelp.com//index.php?title=Version&diff=13188&oldid=prevAndrew Korson: Created page with "The '''version''' command displays a window showing version information for AGI. == Syntax == version(); == Remarks == The phrase <code> Adventure Game Interpreter ..."2019-04-25T00:03:03Z<p>Created page with "The '''version''' command displays a window showing version information for AGI. == Syntax == version(); == Remarks == The phrase <code> Adventure Game Interpreter ..."</p>
<p><b>New page</b></p><div>The '''version''' command displays a window showing version information for AGI.<br />
<br />
== Syntax ==<br />
<br />
version();<br />
<br />
== Remarks ==<br />
<br />
The phrase <br />
<br />
<code><br />
Adventure Game Interpreter&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Version xxxx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
</code><br />
<br />
is displayed in the normal AGI message box (where 'xxxx' is the interpreter [[Interpreter Versions|version]]). The user can press ENTER or ESCAPE to dismiss the message and return to the game.<br />
<br />
This command is not particularly useful for normal game play, but it does allow a programmer to verify the version of AGI that a game is running on.<br />
<br />
== Possible Errors ==<br />
<br />
None.<br />
<br />
== Example ==<br />
<br />
<div class="CodeBlockHeader">Code:</div><br />
<syntaxhighlight lang="agi"><br />
if(said("show", "version")<br />
{<br />
version();<br />
}<br />
</syntaxhighlight><br />
<br />
== Technical Information ==<br />
<br />
{| border="1" cellpadding="2"<br />
| style="background-color: #efefef" width="200" | '''Required Interpreter Version:'''<br />
| width="175" | Available in all AGI versions.<br />
|-<br />
| style="background-color: #efefef" | '''Byte-Code Value:'''<br />
| 141 (0x8D hex)<br />
|}<br />
<br />
== See Also ==<br />
<br />
[[Debugging Commands]]<br />
[[AGI Debugging Information]]</div>Andrew Korson