Save.game

From AGI Wiki
Revision as of 12:56, 20 April 2019 by Andrew Korson (talk | contribs) (Created page with "The '''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 fi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The 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)

See Also

System Commands
restore.game
Saving Games