Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Is it possible to edit previously sent sendChat messages through the API

1738342240

Edited 1738342261
Boli
Pro
API Scripter
I was setting up some random rumours I wanted to use and was thinking how they would be used in the game. And it made me think... could I create a 'creepy rumour' to help give a sense of unease to the players, say they are in he tavern drinking, I press the macro and out spits some flavour rumour text. "there is something happening at the old mill" "you hear that Kyrn is after Lyse again?" "fish prices rising again... why i do not know how Dreven sleeps at night!" "DIE DIE DIE you suddenly hear whispered across the room" "so anyways I roll a dice and got a 2 and a 4" "Yes I'll have another round for the table" wait what was that... DM: nothing (the text has already changed to the below) "there is something happening at the old mill" "you hear that Kyrn is after Lyse again?" "fish prices rising again... why i do not know how Dreven sleeps at night!" "I can't believe that Geryld is getting married again, for the fourth time." "so anyways I roll a dice and got a 2 and a 4" "Yes I'll have another round for the table" I'm sure I read something different then! DM, of course not.; it's all there. (20 seconds later it flips back for anotehr 2 seconds before reverting and staying 'normal'. That is one way to do it... but also for potential animation say putting script on a tomb which reads Speak Friend and Enter except after a few seconds it acually says Speak Fiend and Enter ... and it's actually a trap.
1738343295
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Other than posting a timed gif of the text, there's no way I know to alter the chat log. You can manually hide posts with the 3 dot popup menu to the right of every post, which might be able to achieve some of your goals.
1738343340
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Messages are static once sent with the sole exception of messages sent by beacon sheet, which the sheet can change.
1738343377
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Oh, you can also edit a handout. I believe this will live update the handout even if it is currently being viewed by another player.
1738343690
Boli
Pro
API Scripter
keithcurtis said: Other than posting a timed gif of the text, there's no way I know to alter the chat log. You can manually hide posts with the 3 dot popup menu to the right of every post, which might be able to achieve some of your goals. Yeah, i was thinking given you can hide it the message must have an id that can be referenced. So the chatlog won't just be a long list. I was thinking handouts, but thats more for another script idea I had.
1738343738
Boli
Pro
API Scripter
Scott C. said: Messages are static once sent with the sole exception of messages sent by beacon sheet, which the sheet can change. Becon sheets? How do they adjust chat messages?