Restart.game

From Sierra Wiki
Revision as of 16:58, 16 February 2025 by Andrew Branscom (talk | contribs) (2 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The restart.game command restarts a game from the beginning.

Syntax

restart.game();

Remarks

Restarting a game resets AGI and starts the game over from the beginning. See the Restarting Games topic for details on what happens when AGI restarts the game.

Possible Errors

None.

Example

Code:
if (said("restart"))
  {
  restart.game();
  }

Technical Information

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

See Also

System Commands
Restarting Games