Save.game

From AGI Wiki
Jump to: navigation, 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:
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