Version
From AGI Wiki
Revision as of 19:03, 24 April 2019 by Andrew Korson (talk | contribs) (Created page with "The '''version''' command displays a window showing version information for AGI. == Syntax == version(); == Remarks == The phrase <code> Adventure Game Interpreter ...")
The version command displays a window showing version information for AGI.
Syntax
version();
Remarks
The phrase
Adventure Game Interpreter
Version xxxx
is displayed in the normal AGI message box (where 'xxxx' is the interpreter version). The user can press ENTER or ESCAPE to dismiss the message and return to the game.
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.
Possible Errors
None.
Example
Code:
<syntaxhighlight lang="agi"> if(said("show", "version")
{ version(); }
</syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 141 (0x8D hex) |