RestoreGameSlot (int slot)
Restores the game position saved into slot number SLOT. You might want to
use these specific slot functions if for example you only want to allow the
player to have one save game position rather than the usual 20. If this slot
number does not exist, an error message is displayed to the player but the
game continues. To avoid the error, use the GetSaveSlotDescription function
to see if the position exists before restoring it.
NOTE: The game will not be restored immediately; instead, it will be
restored when the script function finishes executing.
Example:
RestoreGameSlot(30);
will restore game slot 30 if this slot number exists.
See Also: Game.GetSaveSlotDescription,
RestoreGameDialog, SaveGameSlot
|