SpeakOneLinerConversation(string, object)

Immediately speak a conversation one-liner.

void SpeakOneLinerConversation(
    string sDialogResRef = "",
    object oTokenTarget = OBJECT_TYPE_INVALID
);

Parameters

sDialogResRef

(Default: "")

oTokenTarget

This must be specified if there are creature-specific tokens in the string. (Default: OBJECT_TYPE_INVALID)


Description

Causes the calling object to immediately speak the first non-branching conversation line in their dialogue. Since there is no second party to the conversation, oTokenTarget can be used to determine formatting of tokens contained in the one-liner.



Remarks

Note that if you have a script on a non-branching conversation line, GetPCSpeaker can not be used to get the PC.


Version

1.61

See Also

categories: Conversation Functions
constants: OBJECT_TYPE_* Constants


 author: Jeff Lindsey, editor: Lilac Soul