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

GM/Private Macro

So my GM is running a Pokemon 5e campaign, and with it, you have the catching mechanic, which asks for a lot of different numbers to be chucked into a formula to output a Catch Rate DC. Well, I was thinking, "I could make a macro for him to help him out," but there is surely a want to keep that score a secret. So I was wondering if there was a way that a macro could be made in a way that is always "GM/Self Only" without having to constantly flip TalkToYourself on and off constantly.
1725980938
timmaugh
Pro
API Scripter
Just put... /w gm ...at the start of the command.
1725992559
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Just remember that if there are multiple lines of output in your macro, you will need to put that whisper command at the beginning of each paragraph. If you are using the default template, all lines can go into a description field and you only need the whisper command at the very beginning.
1725998473

Edited 1725998593
Alright, seems like I'm running into a wall... So the formula that is used is:  10 + Pokémon’s Base SR (rounded down) +  Pokémon level + Remaining HP / 10 (rounded  down) So, in turn, I wrote up the following: /w gm &{template:default} {{name=Catch Rate DC}} {{[[10+{floor(?{Base SR|0.25})+(?{Level|1})+(?{HP|1})/10)]]}} Sadly, every time I run this, I just get that base 10 up front, so now I am scratching my head on where things are going wrong...
Try replacing the parentheses (other than the floor one) with double square brackets. The parser understands those better. 
1725999117
timmaugh
Pro
API Scripter
You have an opening brace before the floor, and you have a closing paren which isn't associated with anything... and the mathematical order of operations for the other parentheses you include render them unneeded... All of that said, this works as the inline roll: [[10+floor(?{Base SR|0.25})+?{Level|1}+?{HP|1}/10]] Put that into your template and you should get a result.
Thanks. Sometimes, with the piles of different types of brackets right next to each other, it can get really confusing lol
1726015016
Gauss
Forum Champion
MagusAndrus said: Thanks. Sometimes, with the piles of different types of brackets right next to each other, it can get really confusing lol Hi MagusAndrus,  One of the things that helps me when writing macros is to space them out so they are more visible.  Example: "[[{{" can be "[[ {{"
keithcurtis said: Just remember that if there are multiple lines of output in your macro, you will need to put that whisper command at the beginning of each paragraph. If you are using the default template, all lines can go into a description field and you only need the whisper command at the very beginning. Just gonna post your own tip as a reminder that you can post multi-line whisper messages if you wrap them in triple braces . :) Not relevant here as  MagusAndrus is using the Default template, but still a good tip for anyone who doesn't know! /w gm {{{Line 1 Line 2 Line 3 Line 4 Line 5}}}