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 ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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:
if(said("show", "version")
  {
  version();
  }

Technical Information

Required Interpreter Version: Available in all AGI versions.
Byte-Code Value: 141 (0x8D hex)

See Also

Debugging Commands AGI Debugging Information