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

Spell tracking whispers [5E OGL by Roll20 Companion]

Normal 0 21 false false false DA X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabel - Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;} Hi. I was wondering if it is possible to set the 5E OGL by Roll20 Companion API to do its announcements in whisper chat to the player in question and the GM?.  For example, when Player A uses a 1-level spell, it now shows the "spell slots used" or "all spell slots expended" message for all players and the GM. This can be altered by the “quiet” setting. However, when there are no spell slots to take from, it still sends out a global “all spell slots expended” message. So, my question is whether it is possible to set it up in such a way that when set to quiet (or some other setting), then the messages would only be send to the specific player in question and the GM.   My players are all about immersion and they think it's breaking the immersion a bit, that they can keep track of how many heals the cleric has left and the amount fireballs left for the wizard or when they are all spend.  
1589371002
The Aaron
Roll20 Production Team
API Scripter
The logic for that part of the script is pretty convoluted.  It's on line 313: if(wtype === "" || (wtype === "@{whispertoggle}" && wtoggle === "") || (wtype === "?{Whisper?|Public Roll,|Whisper Roll,/w gm }" && msg.type === "general")) { sendChat(msg.who, "<div class='sheet-rolltemplate-simple' style='margin-top:-7px;'><div class='sheet-container'><div class='sheet-label' style='margin-top:5px;'><span style='display:block;'>SPELL SLOT LEVEL " + spellslot + "</span><span style='display:block; color:red;'>ALL SLOTS EXPENDED</span></div></div></div>"); } else if(wtype === "/w gm " || (wtype === "@{whispertoggle}" && wtoggle === "/w gm ") || (wtype === "?{Whisper?|Public Roll,|Whisper Roll,/w gm }" && msg.type === "whisper")) { sendChat(msg.who, "/w gm <div class='sheet-rolltemplate-simple'><div class='sheet-container'><div class='sheet-label' style='margin-top:5px;'><span style='display:block;'>SPELL SLOT LEVEL " + spellslot + "</span><span style='display:block; color:red;'>ALL SLOTS EXPENDED</span></div></div></div>"); } You could replace those lines with: sendChat(msg.who, `/w "${player.get('displayname')}" <div class='sheet-rolltemplate-simple' style='margin-top:-7px;'><div class='sheet-container'><div class='sheet-label' style='margin-top:5px;'><span style='display:block;'>SPELL SLOT LEVEL ${spellslot} </span><span style='display:block; color:red;'>ALL SLOTS EXPENDED</span></div></div></div>`); sendChat(msg.who, `/w gm <div class='sheet-rolltemplate-simple' style='margin-top:-7px;'><div class='sheet-container'><div class='sheet-label' style='margin-top:5px;'><span style='display:block;'>SPELL SLOT LEVEL ${spellslot} </span><span style='display:block; color:red;'>ALL SLOTS EXPENDED</span></div></div></div>`); to get the effect you want, but you wouldn't be getting updates as Roll20 updates that script.
1589378639

Edited 1589378651
Hmm yeah okay. That's true. I'll try it out and see if it works. Otherwise i'd just have to manually change the script everytime they update it i guess? Thanks mate!
1589379029
The Aaron
Roll20 Production Team
API Scripter
Yeah, or see if you can get the developers to update it with more options.  Or get someone in the community to make those changes and send a pull request.
I'll try and look at the weekend
Not sure of the process beyond creating a Pull Request.&nbsp; However that is done ( <a href="https://github.com/Roll20/roll20-api-scripts/pull/971" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/pull/971</a> ) I have added a new option of player &nbsp;to the following commands ammotracking !deathsavetracking !spelltracking
1590145886

Edited 1590159544
Slowglass said: Not sure of the process beyond creating a Pull Request.&nbsp; However that is done ( <a href="https://github.com/Roll20/roll20-api-scripts/pull/971" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/pull/971</a> ) I have added a new option of player &nbsp;to the following commands ammotracking !deathsavetracking !spelltracking I'm not sure what a "pull request" is? But thanks buddy!