GetTlkTableString

From Dragon Age Toolset Wiki
Jump to: navigation, search

Returns a string from the tlk table.

string GetTlkTableString(
int nStrRef,
int nGender = GENDER_MALE
);
Parameters:
nStrRef
The string reference to get from the tlk table
nGender
The gender variation of the string
Returns:

Returns the string specified by the string reference. Returns an empty string on error.

Source:

script.ldf

Description

Returns a string from the tlk table based on the specified strref (String reference) and gender. It should be noted that there may be multiple genders in the tlk table depending on how the specific tlk table is generated.

"Gender" in this case refers to grammatical gender. For most of the lines of dialogue in the game plot flags are used to choose between different lines referring to the player, so this does not actually come up much.