jkeller
October 4th, 2025, 15:06
Hi! I'm trying to create an extension (for 5E) that redacts certain text from messages. Specifically, it's for table roll results, but I think any messages would be fine.
I've tried overriding deliverChatMessage. When I roll on a table, that function gets called multiple times (once for the table name, once for each column); that's fine. But it gets called where the roll was made; or at least, that program's console is where I see my trace messages (via print).
I want to treat the message differently (for the DM/host vs the players/clients). In other words, I want the host to see the unredacted messages, but the clients to see the redacted version.
I can't figure out what I should be overriding.
Thanks!
I've tried overriding deliverChatMessage. When I roll on a table, that function gets called multiple times (once for the table name, once for each column); that's fine. But it gets called where the roll was made; or at least, that program's console is where I see my trace messages (via print).
I want to treat the message differently (for the DM/host vs the players/clients). In other words, I want the host to see the unredacted messages, but the clients to see the redacted version.
I can't figure out what I should be overriding.
Thanks!