9.1 Destiny object

Description

The Destiny object represents the Destiny.dll and can be used to query the version of the Destiny.dll, setting up the language, as soon as saving/loading the scopes of Destiny.dll.

List of methods/properties

NameTypeShort description
VersionMajorPropertyThe integer part of the used Destiny.dll version
VersionMinorPropertyThe decimal part of the used Destiny.dll version
DllVersionMajorPropertyThe integer part of the available Destiny.dll version
DllVersionMinorPropertyThe decimal part of the available Destiny.dll version
LanguagePropertyThe used language of the Destiny.dll
SaveMethodSaves the values of all scopes of the Destiny.dll
LoadMethodLoads the values of all scopes of the Destiny.dll

VersionMajor

Description

Returns the integer part of the used Destiny.dll version. For example if a version 3.4 whould be available and the version 1.2 whould be used this property whould return 1.

Syntax

1
Destiny.VersionMajor

Data type

Dword

Type

Property, read-only

Example

1
2
$
v[1] = Destiny.VersionMajor
On Destiny.dll version 1.0 v[1] whould be at end: 1

VersionMinor

Description

Returns the decimal part of the used Destiny.dll version. For example if a version 3.4 whould be available and the version 1.2 whould be used this property whould return 2.

Syntax

1
Destiny.VersionMinor

Data type

Dword

Type

Property, read-only

Example

1
2
$
v[1] = Destiny.VersionMinor
On Destiny.dll version 1.0 v[1] whould be at end: 0

DllVersionMajor

Description

Returns the integer part of the available Destiny.dll version. For example if a version 3.4 whould be available and the version 1.2 whould be used this property whould return 3.

Syntax

1
Destiny.DllVersionMajor

Data type

Dword

Type

Property, read-only

Example

1
2
$
v[1] = Destiny.DllVersionMajor
On Destiny.dll version 1.0 v[1] whould be at end: 1

DllVersionMinor

Description

Returns the decimal part of the available Destiny.dll version. For example if a version 3.4 whould be available and the version 1.2 whould be used this property whould return 4.

Syntax

1
Destiny.DllVersionMinor

Data type

Dword

Type

Property, read-only

Example

1
2
$
v[1] = Destiny.DllVersionMinor
On Destiny.dll version 1.0 v[1] whould be at end: 0

Language

Description

This is the chosen language of the Destiny.dll. If you change this value you change the language of the error messages, too.

Syntax

1
Destiny.Language

Data type

Dword

Type

Property

Range

0: Language German
1: Language English

Example

1
2
$
Destiny.Language = 1
At the end all error messages whould be english.

Save

Description

Saves all scopes of the Destiny.dll (dwords, doubles and strings) into a file. The file will be stored into the game directory and has the name SaveXX.dsd (XX will be replaced with the slot in two digit format).

Syntax

1
Destiny.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
$
Destiny.Save(1)
At the end all d[...], f[...] and a[...] scopes whould be saved in the file Save01.dsd.

Load

Description

Loads the scopes of the Destiny.dll (dwords, doubles and strings) from a file. The file is stored into the game directory and has the name SaveXX.dsd (XX will be replaced with the slot in two digit format).

Syntax

1
Destiny.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
$
Destiny.Load(1)
At the end all d[...], f[...] and a[...] scopes whould be loaded from the file Save01.dsd.