Restart.game

From AGI Wiki
Revision as of 20:26, 19 April 2019 by Andrew Korson (talk | contribs) (Created page with "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 th...")
(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