PDA

View Full Version : Extensions interact with chat?



LillySprout
May 31st, 2020, 08:20
Having come recently from roll20, I've been putting my coding skills to work trying to replicate some functionality we're finding painful to do without, both from roll20 and from browser extensions that were a possibility due to roll20's web based nature. One player we have in particular is dyslexic and thus found it very helpful to make use of a browser extension that would highlight/make a noise when their character name and some other keywords were mentioned. I've gotten a pretty good start on extension coding but I've yet to be able to find any example of another extension doing such a thing, is there any option that I'm missing for:


Parse chat messages (on the player side) and do something when a particular substring is seen, and...
Bonus if possible: Actually intercept said messages and apply formatting before they're displayed to that particular player?

Kelrugem
June 1st, 2020, 04:29
Having come recently from roll20, I've been putting my coding skills to work trying to replicate some functionality we're finding painful to do without, both from roll20 and from browser extensions that were a possibility due to roll20's web based nature. One player we have in particular is dyslexic and thus found it very helpful to make use of a browser extension that would highlight/make a noise when their character name and some other keywords were mentioned. I've gotten a pretty good start on extension coding but I've yet to be able to find any example of another extension doing such a thing, is there any option that I'm missing for:


Parse chat messages (on the player side) and do something when a particular substring is seen, and...
Bonus if possible: Actually intercept said messages and apply formatting before they're displayed to that particular player?



You may want to look at https://www.fantasygrounds.com/forums/showthread.php?53459-MK-Syrinscape-Sound-Links-module or https://www.fantasygrounds.com/forums/showthread.php?53583-AudioOverseer-(Audio-Management-Extension) :)

For chat interactions: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/721186/Using+the+Chat+Window

And players can also use notes to parse specific texts in specific styles: (or they save them into hotkeys at the bottom) https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/885153/Managing+Campaign+Data+-+Stories+Tables+Categories+...

(many things there apply to FGC, too, except the new dice macros)

Otherwise you may want to be more specific, and mention also the ruleset :) Then we can provide more elaborated things :)