Save.game

From AGI Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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:
if(said("save", "game"))
  {
   save.game();
  }

Technical Information

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

See Also

System Commands
restore.game
Saving Games