SendMessageToPCByStrRef

From NWN Lexicon



Contents

[edit] SendMessageToPCByStrRef(object, int)

Send a message to a player

void SendMessageToPCByStrRef(
    object oPlayer,
    int nStrRef
);

[edit] Parameters

oPlayer

Player to send message to

nStrRef

StrRef of the message to send


[edit] Description

Send a server message (szMessage) to the oPlayer.



[edit] 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


[edit] Version

1.61

[edit] See Also

functions: 

SendMessageToPC



 author: Lilac Soul
 

Personal tools
Categories