set.simple

Category

Extra commands

Syntax

set.simple(A);

Description

This command modifies the behavior of the commands restore.game() and save.game().

After calling set.simple(n), where n is a string number (ie: if n == 2 then s2) restore.game() will automatically (without any prompt) restore a savegame with the name stored in string number n and save.game() will automatically save a savegame with the name of string number n.

Note: make sure that at least one savegame is present when you call restore.game() or save.game() (that is, when saving a game too).

Example:

set.string(s1,"test");
set.simple(1);

This will automatically load the savegame named "test".

See also

restore.game

save.game