5. Strings

Defining strings

Strings are not numbers. However its content must be able to declare in DestinyScript without creating mistakes (e. g. a string could contain numbers which should not be interpreted like numbers). The solution is to write down the content of the string into quotes (").
1
2
$
a[1] = "Content of a string"
Information
If you want to use quotes inside of a string then you must use the QUOTE constant (e. g. a[1] = "Hello with " + QUOTE + "quotes" + QUOTE).

Concatentation of strings

If you want to concatenate some strings you must use the add operator. A more specific description can be found at 6. Operators.

Strings with multiple lines

If a string should contain multiple lines then you must use the CRLF constant.
1
2
$
a[1] = "Line 1" + CRLF + "Line 2"
If you display this string into a MessageBox you will have some trouble, because the MessageBox of the RPG_RT processes lines on an other way than the Destiny.dll. A more specific description can be found at the string placeholder of the MessageLink.