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

Passive Perception Dashboard Macro: Help Please!

Hey everyone,  I'm trying to put together 2 macros for my D&D games on Roll20.  1. The first is a Passive Perception Macro to show all of my PCs Passive Perception Score on one click, maybe in a template? Not sure the best way to set this up so it dynamically updates as they level up and things like Proficiency Bonus/Modifiers change over time. 2. The second is a Passive Perception Report (maybe in a template?) where it returns the Passive Perception score of any tokens I have selected. I could really see myself using this for enemy/npc tokens and just being able to say to my players "roll a stealth check" and then while they do that, I can select all my monsters and click "passive perception report" or something like that.  Any help?! 
1. Here's a pretty basic one I just threw together for the D&D 5E by Roll20 sheet (you'll have to switch out all the PLAYERNAMEs for your PC's names):  /w gm &{template:npcaction} {{rname=Party Perception}} {{description= **Passive Perception** PLAYERNAME1 = @{ PLAYERNAME1 | passive_wisdom } PLAYERNAME2 = @{ PLAYERNAME2 | passive_wisdom } PLAYERNAME3 = @{ PLAYERNAME3 | passive_wisdom } }} 2. You'll need to use a Mod script to be able to use a group of selected tokens. I'd suggest reading through  this thread  for some other ideas and a way to select tokens and run a Passive Perception report using Metascripts (Timmaugh's response there).
For the 2nd part, the passive perception report, here is an example using  ScriptCards  which will list all the NPC tokens on the page with the player ribbon to where you don't need to select any. This example whispers the results to the GM. !scriptcard {{ --/|Display the passive perception for all NPC tokens on the page with the player ribbon --/|VARIABLES TO SET --&perception_attribute|npc_perception --&calculate_passive|true --&passive_base|10 --#title|Passive Perception Report --#whisper|gm --~tokenCount|array;pagetokens;NPCArr;[*C:playerpageid];npc --%npcTID|foreach;NPCArr --?"[*[&npcTID]:[&perception_attribute]]" -inc "wisdom_mod"|[ --=passive_perception|[&passive_base] + [*[&npcTID]:wisdom_mod] --]|[ --=passive_perception|[&passive_base] + [*[&npcTID]:[&perception_attribute]] --]| --+[*[&npcTID]:t-name]|Passive Perception:[$passive_perception] --%| }} I tend to do a lot with ScriptCards and things that don't require me to select a series of tokens. The example output is like so:
These are clutch! Thank you both