Restart.game

From AGI Wiki
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