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

Critical/Fumbler API Whisper Help

I have the Critical and Fumbler APIs both installed to my game and they both work perfectly fine.  I would like to make the result only show up to me though (the gm).  Some of the results are a bit brutal and I might have to pull a punch or two with the results without the players knowing that I am being lenient.   I made a macro for each that simply runs the !critical and the !fumbler commands respectively.  I just can't seem to figure out a way to add the /w gm chat function to it.  I am not proficient at coding in any way, so I figured this would be a fast and easy thing for someone to solve on here.  Thanks in advance for your help.
1567607675
The Aaron
Roll20 Production Team
API Scripter
That modification would need to be made in the script. Many scripts have a way of specifying a whisper result, but these might need modification. Can you post links to the source scripts?
<a href="https://github.com/Roll20/roll20-api-scripts/blob/master/Critical/0.1.0/Critical.js" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/blob/master/Critical/0.1.0/Critical.js</a> I'm guessing this is it.
<a href="https://github.com/Roll20/roll20-api-scripts/blob/master/Fumbler/0.2.0/Fumbler.js" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/blob/master/Fumbler/0.2.0/Fumbler.js</a> This is the link to the other code, but I imagine they would both require an identical change since they are pretty much the same code with different results.
1567611430
The Aaron
Roll20 Production Team
API Scripter
On this line:&nbsp; sendChat ( ' Critical Hit ' , rolled . toString () + " % &lt;b&gt; " + smash . result + " &lt;/b&gt;&lt;br&gt;&lt;i&gt;&lt;b&gt;Slash: &lt;/b&gt; " + smash . slash + ' &lt;/i&gt;&lt;br&gt;&lt;i&gt;&lt;b&gt;Blunt: &lt;/b&gt; ' + smash . blunt + ' &lt;/i&gt;&lt;br&gt;&lt;i&gt;&lt;b&gt;Pierce: &lt;/b&gt; ' + smash . pierce + ' &lt;/i&gt; ' ); Insert "/w gm " + like this: sendChat ( ' Critical Hit ' , "/w gm " + rolled . toString () + " % &lt;b&gt; " + smash . result + " &lt;/b&gt;&lt;br&gt;&lt;i&gt;&lt;b&gt;Slash: &lt;/b&gt; " + smash . slash + ' &lt;/i&gt;&lt;br&gt;&lt;i&gt;&lt;b&gt;Blunt: &lt;/b&gt; ' + smash . blunt + ' &lt;/i&gt;&lt;br&gt;&lt;i&gt;&lt;b&gt;Pierce: &lt;/b&gt; ' + smash . pierce + ' &lt;/i&gt; ' );
1567611584
The Aaron
Roll20 Production Team
API Scripter
And similar changes to other sendChat() calls you want to go to the GM.&nbsp;
Perfect.&nbsp; This works exactly how I was hoping.&nbsp; Thanks for the fast and easy response.&nbsp; You were a TON of help!
1567618498
The Aaron
Roll20 Production Team
API Scripter
No worries! =D