SpeakOneLinerConversation

From NWN Lexicon
Revision as of 18:09, 24 December 2017 by Fp (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SpeakOneLinerConversation(string, object)

Immediately speak a conversation one-liner.

void SpeakOneLinerConversation(
    string sDialogResRef = "",
    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

constants: 

OBJECT_TYPE_* Constants



 author: Jeff Lindsey, editor: Lilac Soul