9.2 Game object

Description

The Game object represents the RPG_RT.exe and can be used to save/load the game or even quit it.

List of methods/properties

NameTypeShort description
SaveMethodSaves the game
LoadMethodLoads the game
QuitMethodQuits the game

Save

Description

Saves the current game into a file. The file will be stored into the game directory and has the name SaveXX.lsd (XX will be replaced with the slot in two digit format). The scopes of the Destiny.dll won't be saved with this method. If the game can't save the RPG_RT.exe will display an error message and crash. Something more specific can be found at known bugs.

Syntax

1
Game.Save(Slot)

Return value

None

Type

Method

Parameter: Slot

Description

The number of the save slot.

Data type

Dword

Range

0 to 99

Example

1
2
$
Game.Save(1)
At the end the game whould be saved (except the destiny scopes) into the file Save01.lsd.

Load

Description

Loads the current game from a file. The file is stored into the game directory and has the name SaveXX.lsd (XX will be replaced with the slot in two digit format). The scopes of the Destiny.dll won't be loaded with this method. If the game can't be loaded the RPG_RT.exe will show an error message and crash. Something more specific can be found at known bugs.
Information
It's strongly recommended that you use an actual version of the Destiny.dll, because this command doesn't work reliably on older versions of Destiny.dll!

Syntax

1
Game.Load(Slot)

Return value

None

Type

Method

Parameter: Slot

Description

The number of the save slot.

Data type

Dword

Range

0 to 99

Example

1
2
$
Game.Load(1)
At the end the game whould be loaded (except the destiny scopes) from the file Save01.lsd.

Quit

Description

Quits the current game and returns to Windows.

Syntax

1
Game.Quit()

Return value

None

Type

Method

Example

1
2
$
Game.Quit()
At the end the game whould exit.