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 macro help

1585281735
Alex C.
Marketplace Creator
Evening, all. I've been trying to set up the macro found here (the one suggested by Kyle G. in the replies):&nbsp; <a href="https://app.roll20.net/forum/post/5233069/d-and-d-5e-passive-perception-macro" rel="nofollow">https://app.roll20.net/forum/post/5233069/d-and-d-5e-passive-perception-macro</a> I've triple-checked my code and made several revisions to try and find the problem, but I still only get a&nbsp; TypeError: c is undefined error in the chat window. Can you look over my code to see what I might be missing? Thank you in advance for the help. I have a character sheet named All and with the following Attributes assigned (I've tried replacing the PCX in the Current field with either the PC1-4, or with the specific character name to no avail): Name: prefix; Current:&nbsp;@{; Max: blank Name: PC1 ; Current:&nbsp;@{prefix}@{All|Gareth Leigant|max}| ; Max: Gareth Name: PC2 ; Current:&nbsp;@{prefix}@{All|Lux Particula|max}| ; Max: Lux Name: PC3 ; Current:&nbsp;@{prefix}@{All|Strandfynd|max}| ; Max: Strandfynd Name: PC4 ; Current: @{prefix}@{All|Thoradin of Clan Fireforge|max}| ; Max: Thoradin And then this code for the actual macro: /em is rolling dice, the result of which has nothing to do with you, and certainly not be involved in the destruction of your characters. /w gm @{wtype} &amp;{template:default} {{name=Passive Perception }} {{@{All|PC1|max}=[[[[@{PC1}passive_wisdom}]][Passive Wisdom]]] }} {{@{All|PC2|max}=[[[[@{PC2}passive_wisdom}]][Passive Wisdom]]] }} {{@{All|PC3|max}=[[[[@{PC3}passive_wisdom}]][Passive Wisdom]]] }} {{@{All|PC4|max}=[[[[@{PC4}passive_wisdom}]][Passive Wisdom]]] }}
1585313621

Edited 1585314170
So if you are looking for a macro to get your Player's Perceptions, I have 2 Macros that I use depending on the type of character sheet your using. If your are using the 5e Shaped sheet you will need to first Click on the Gear Icon for the sheet settings and there you will see Passive Skills with a check box beside it, click the box to turn on Passive Skills. With this macro you just have to replace the names in the macro with the names of the characters you want. It will Roll their perception skill and also give you their passive perception. /w gm &amp;{template:5e-shaped} {{title=Perception}} {{text= **Gashnahk:** Rolled =[[@{Gashnahk|shaped_d20}+@{Gashnahk|repeating_skill_$11_total}]] Passive = [[@{Gashnahk|repeating_skill_$11_passive}]] **Sable:** Rolled = [[@{Sable|shaped_d20}+@{Sable|repeating_skill_$11_total}]] Passive = [[@{Sable|repeating_skill_$11_passive}]] **Arzire:** Rolled = [[@{Arzire Krenkendreath|shaped_d20}+@{Arzire Krenkendreath|repeating_skill_$11_total}]] Passive = [[@{Arzire Krenkendreath|repeating_skill_$11_passive}]] **Nari:** Rolled = [[@{Nari|shaped_d20}+@{Nari|repeating_skill_$11_total}]] Passive = [[@{Nari|repeating_skill_$10_passive}]] **Dorver:** Rolled = [[@{Dorver Folker|shaped_d20}+@{Dorver Folker|repeating_skill_$11_total}]] Passive = [[@{Dorver Folker|repeating_skill_$11_passive}]] }}
This second macro I use in another game that uses the Roll20 5e OGL sheet. This macro is same adjustment, just replace the names with your character names that you want. It will also roll their perception and display their passive perception. /w gm &amp;{template:npcaction} {{rname=Perception}} {{description= **Ryt:** Passive = [[10+@{Ryt Estrol|perception_bonus}]] Rolled = [[1d20+@{Ryt Estrol|perception_bonus}]] **Name:** Passive = [[10+@{Name|perception_bonus}]] Rolled = [[1d20+@{Name|perception_bonus}]] **Name:** Passive = [[10+@{Name|perception_bonus}]] Rolled = [[1d20+@{Name|perception_bonus}]] **Name:** Passive = [[10+@{Name|perception_bonus}]] Rolled = [[1d20+@{Name|perception_bonus}]] }}
Another alternative would be the GroupCheck API.&nbsp; Simply draw a square around the tokens you want to run any check on and get a nicely formatted result: This if for active rolls as you can see.&nbsp; But passives are not really a roll anyway, they're a static number checked against someone else's roll or a DC.&nbsp; I use a handout for my player's passives:
1585323421
Alex C.
Marketplace Creator
Thanks for the suggestions! I should have mentioned that we're using the OGL. I really like the clean output and single-button click usage of the one I'm trying to get to work, but I'll keep the other ones in mind in case it's not possible. Thanks again!