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 .
×
🍵 What is a cleric’s favorite hot drink? Divini-tea. 🍵
Create a free account

[Help Scripting] MOD to call the GM hide chat message feature

I am working on a mod that posts lists of inventory to the chat.  Once the player clicks a chat button to affect the number of  items listed, the list reposts with a revised list of inventory.  Depending on the list length this can flood the players chat as the lists refreshes.  Is there a way to call the hide/unhide GM feature on specific chat messages to clean up the chat view for the player? This would need to happen through api\mod and not the GM physically clicking the hide option. Thanks in advance.
I did something similar, but tied it to a handout that refreshes.  A nice feature of handouts is they refresh in realtime, so players can see updates initiated by mods.  Will M.
1693754857
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Somewhat related, it's a good idea for any sort of Mod that produces temporary data, to use the "noarchive" option on sendChat, so that the posts do not show after a refresh or clutter up the archive. And yeah, agreed on the handout approach. I use that in Reporter and Supernotes.
Thank you for the replies.  To my understanding, updating the handout with the inventory and then have the chat button open the new handout link with the updated inventory and quantities.  This gives rise to the issue that I believe that I would need a handout per player since this mod deals with each players inventory and the GM would have the inventory access to all players and a universal "GM" inventory to trade players items.  Excellent idea, though it might bloat the handouts section a little. I will check out Reporter and Supernotes as well to see how they can help. Thank you. To my original question, the GM function that let's you hide\unhide various chat messages I'm guessing is not accessible from the API side?     
1693839397
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
This is correct. That feature has not been exposed to the API.