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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
I'd like to be able to see all my player's passive perception scores whispered to me in Chat for quick reference. Using OGL by Roll20 character sheet. Are there any good APIs or Macros for this?
API wise, groupcheck could probably be made to do this, but I don't think you actually need the API, assuming your PCs don't change all that frequently: /w gm &{template:desc} {{desc=Passive Perceptions Some Character's Name: @{Some Character's Name|Passive Perception attribute name} }} You should be able to get the passive perception attribute name by just hovering over that section of the sheet.
That macro seems to have some issues when I use it. Here is what I have: /w gm &{template:desc} {{desc=Passive Perceptions Quill: @{Quill|passive_wisdom}}} passive_wisdom is the attribute name when I hover over the Passive Perception score on the character sheet. This is the output into chat: Passive Perceptions Quill: (10+((floor((14-10)/2))+(((0 + 0) + abs(0 - 0)) / 2)+0)+0)
Give this a try: /w gm &{template:default} {{name=Passive Perceptions}}{{
Quill=[[@{Quill|passive_wisdom}]]}}
Edit: added inline roll [[ ]] around the attribute to evaluate it.
Matt M said: That macro seems to have some issues when I use it. Here is what I have: /w gm &{template:desc} {{desc=Passive Perceptions Quill: @{Quill|passive_wisdom}}} passive_wisdom is the attribute name when I hover over the Passive Perception score on the character sheet. This is the output into chat: Passive Perceptions Quill: (10+((floor((14-10)/2))+(((0 + 0) + abs(0 - 0)) / 2)+0)+0) Ah, it's a formula. You just need to inline roll it (which is what I think Aaron meant to do in the above post): /w gm &{template:desc} {{desc=Passive Perceptions Quill: [[@{Quill|passive_wisdom}]]}} EDIT: Yes, that was indeed what Aaron meant to do ;)
I wanted to add the way I usually work through macros I want to create because what I want is sometimes not an attribute I can see within the campaign. What I do is find the character sheet on github and do a ctrl+f to search for the attribute I want to use. I've done this with a lot of other systems. 1. If you go to github you'll find the character sheet here: <a href="https://github.com/Roll20/roll20-character-sheets/" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/</a>... 2. ctrl+f and searched for "passive" and found this on line 1174 : <input type="text" name="attr_passive_wisdom" title="@{passive_wisdom}" value="(10+@{perception_bonus}+@{passiveperceptionmod})" disabled="true" ><span></span> 3. Now that I have what I think is the right attribute I started playing around with it and came up with: /w gm @{selected|character_name} has a passive perception score of [[ 1d0 + @{selected|passive_wisdom} ]] Which gives me a nice clean: That gives me enough of a lead to start messing with the API and macros. Hope it helps.
@Muhthulhu An easier way, at least from the standpoint of being able to do it in game, is to right click on whatever attribute or button you want to reference and click "inspect" (in chrome at least). This will bring up the html code on the right, attributes are in the format: attr_Some_Attribute_name Sheet rolls (sheet created abilities) are in the format: type="roll" name="roll_Spell-Class-0-CL-Check" (may have to scroll up to see this)
Scott C. said: @Muhthulhu An easier way, at least from the standpoint of being able to do it in game, is to right click on whatever attribute or button you want to reference and click "inspect" (in chrome at least). This will bring up the html code on the right, attributes are in the format: attr_Some_Attribute_name Sheet rolls (sheet created abilities) are in the format: type="roll" name="roll_Spell-Class-0-CL-Check" (may have to scroll up to see this) Oh wow. I didn't know you could do this. So much easier. I just got used to grepping through the character sheets since I live at the command line anyways. Thanks for the tip!
The Aaron said: I live in the command line too. Try out Silver Searcher/ag same grep syntax (mostly) and much faster. I didn't know about Silver Searcher. Wow, looks awesome and it even has vim integration. Thanks!