Hey all, don’t usually make topics on here, and I consider myself pretty resourceful, but I couldn’t find much for this:
-
What do you want to achieve?
I want to do more advanced stuff with TextChatService. I have a couple ideas of what I want to do:
a. Adding punctuation to users’ messages after they’re sent to the server but before they’re filtered (stuff like adding periods to the end of messages without a punctuation mark, or capitalizing the first letter in the message)
b. Proximity Chat that logs to the chatbox, (only messages within a certain vicinity of the player are sent to the client)
c. Different types of messages (maybe displaying in different colors or adding a string to the start of the message) -
What is the issue?
I think they could all be accomplished by sending the message as a system message? This would require me to somehow intercept the message and would break stuff like click to whisper, so I’m really hoping there’s a way to do something like this that’s not TOO hacky. -
What solutions have you tried so far?
I’ve done research on the API pages for TextChannel, TextChatService, and TextSource, and I couldn’t really find anything that looked helpful to me. There doesn’t seem to be a way to intercept a message from the server on the docs for those three classes.
To sum things up, the two problems I’m dealing with are:
- Modify messages serverside after they are sent
- Only show proximity messages in the chat window