ActionSpeakStringByStrRef(int, int)

Causes the creature to speak a translated string.

void ActionSpeakStringByStrRef(
    int nStrRef,
    int nTalkVolume = TALKVOLUME_TALK
);

Parameters

nStrRef

Reference of the string in the talk table

nTalkVolume

TALKVOLUME_* (Default: TALKVOLUME_TALK)


Description

Causes the calling creature to speak a translated string with the nStrRef index from the Talk Table.



Remarks

The StrRef is an index number into the user's dialog.tlk file, which is a language specific file. Since Hordes of the Underdark, it's become possible to easily make your own tlk file and include with your module. Note that you must add 16777216 to the index in your file, so if you want entry 1 in your custom tlk file, you'll need use 16777217 for the nStrRef in this function.

More detailed information on talktables can be found here:
http://ccg.dladventures.com/index.php/TalkTables


Version

1.62

See Also

functions: ActionSpeakString | FloatingTextStrRefOnCreature
categories: Action on Object Functions | Conversation Functions
constants: TALKVOLUME_* Constants


 author: Troels Therkelsen, editor: Lilac Soul, additional contributor(s): Lilac Soul