Save.game
From AGI Wiki
Jump to navigationJump to searchThe save.game command saves the game to a file.
Syntax
save.game();
Remarks
Saving a game writes all the information about the current game state to a file so it can be restored later with the restore.game command.
See the Saving Games topic for more information.
Possible Errors
None.
Example
Code:
<syntaxhighlight lang="agi"> if(said("save", "game"))
{ save.game(); }
</syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 125 (0x7D hex) |