Separate Global and Whisper Chat Bubbles

Hello!

I have been customizing chat and everything around it recently, I have disabled the chat history and here comes the problem. Whenever someone whispers to anyone else, They can’t tell if someone is actually whispering or using the global chat, because chat bubbles appear the same.

I need a way to separate the global and whisper chat bubbles, by text color for example. But I have no idea how to do it, any help would be appreciated. Thanks!

I don’t think theres an easy way.

You could try setting new BubbleChatSettings when every message is sent, however this function only works on the client and probably won’t be great practice to do this every new message.

Probably the easiest option would be to make your own bubble chat, then work with that :person_shrugging:

If anyone finds an easier more reliable solution to this i’m quite curious too :weary: chat seems very restrictive sometimes

It looks like you already have a whisper system and it is supposed to know which players are taking to each other so make it say
[playerName] his messge

How would this be done? I am trying to find something in the chat modules, can’t seem to find anything.

I never missed with the chat so idk alot but basically when he send a message you will have it a variable so that messge the Player name then the message

Hi, I have found a way of separating global and whisper bubbles by adding string to the whisper bubbles.

In ChatModules, PrivateMessaging module, there’s this line:
toSpeaker:SendMessage(message, fromSpeakerChannelId, fromSpeaker, extraData)

By adding string (ex. "Whispered: "), you can change the way receiver sees the message:
toSpeaker:SendMessage("Whispered: ".. message, fromSpeakerChannelId, fromSpeaker, extraData)

image_2022-07-11_002619652

However, other people can just fake the message, that’s why i’m not satisfied and started working on custom chat system.