Quit: Difference between revisions
From Sierra WikiNew
Jump to navigationJump to search
m (2 revisions imported) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 00:11, 3 June 2024
The quit command ends the game.
Syntax
quit(); (VERSION 2.089 ONLY)
quit(byt MODE); (ALL OTHER VERSIONS)
Remarks
NOTE: In version 2.089, the quit command had no arguments.
If MODE is 1, the game will quit instantly. If it is any other number, a prompt is presented to the player, who can chose to quit or continue playing.
Possible Errors
Code using this command written for a version 2.089 game will crash AGI if run on other versions (and vice versa).
Example
Code:
quit(0); [ player can choose to cancel
quit(1); [ immediately quits the game
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 134 (0x86 hex) |