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

Whisper Passive Perception Scores

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?
1498596191
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
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)
1498596847

Edited 1498596903
The Aaron
Pro
API Scripter
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.
1498596913

Edited 1498596933
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
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 ;)
1498597256
The Aaron
Pro
API Scripter
Yup, but also switched to the default template. =D
Now we're cookin'!  Thanks guys.
1498597680

Edited 1498598035
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.&nbsp; 1. If you go to github you'll find the character sheet here:&nbsp; <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&nbsp; line 1174 :&nbsp; &lt;input type="text" name="attr_passive_wisdom" title="@{passive_wisdom}" value="(10+@{perception_bonus}+@{passiveperceptionmod})" disabled="true" &gt;&lt;span&gt;&lt;/span&gt; 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:&nbsp; That gives me enough of a lead to start messing with the API and macros. Hope it helps.&nbsp;
1498598149
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
@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!
1498598988
The Aaron
Pro
API Scripter
I live in the command line too. &nbsp;Try out Silver Searcher/ag &nbsp;same grep syntax (mostly) and much faster.
The Aaron said: I live in the command line too. &nbsp;Try out Silver Searcher/ag &nbsp;same grep syntax (mostly) and much faster. I didn't know about Silver Searcher. Wow, looks awesome and it even has vim integration. Thanks!
1498599713
The Aaron
Pro
API Scripter
ah.. vim.. speaking my language... =D