Hi guys.
I tried googling the answer but no luck.
I don't want players to be able to use "shout" mode in my PW. If they use "shout" I'd like it to be automatically converted to "talk" mode after the player "enter". Can I do that?
Hi guys.
I tried googling the answer but no luck.
I don't want players to be able to use "shout" mode in my PW. If they use "shout" I'd like it to be automatically converted to "talk" mode after the player "enter". Can I do that?
Sure can. In your modules OnPlayerChat event script have it look something like so:
void main()
{
string sMessage = GetPCChatMessage();
object oPC = GetPCChatSpeaker();
int iVolume = GetPCChatVolume();
if (iVolume == TALKVOLUME_SHOUT)
{
SetPCChatVolume(TALKVOLUME_TALK);
SendMessageToPC(oPC, "SHOUTING is not permitted on this server.");
}
}
The message to PC is optional of course. Just an example. Good luck.
Thank you very much, GhostofGod
Or you can just modify the nwnplayer.ini on your server and change Disallow Shouting to 1. That will convert any non DM or DM possessed character's shout to standard chat.