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

[5e OGL] I need help for a Macro

Hi, I'm still noob with macros. I've taken from a tutorial this macro for perception checks, both passive and active: %{Selected|npc_perception} @{selected|wtype}&{template:npc} {{normal=1}} {{name=@{selected|npc_name}}} {{rname=Passive Perception}} {{mod=}} {{r1=[[@{selected|npc_perception}+10]]}} It seems that this macro has something wrong as I noticed that Wisdom modifier is never taken from the selected token sheet. Could somebody help me? Thanks.
Try this instead %{Selected|npc_perception} @{selected|wtype}&{template:npc} {{normal=1}} {{name=@{selected|npc_name}}} {{rname=Passive Perception}} {{mod=}} {{r1=[[@{selected|npcd_wis_mod}*{1@{selected|npc_perception}0,0}=10+0@{selected|npc_perception}]]+10]]}}
Hi, Your macro works well, thank you (maybe it has two unnecessary square brackets before the "+10" at the end). 
Agreed, that was a mistake in my copy-paste