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

Help convert this macro to work for my NPCs

So I use this macro perfectly fine on my PC when I am a player - I have one broken down for Snooping, Diplomacy, Knowledge &  Action related Skills. As well as Saving throws & Abilities Throws. Here is 1 example - my Action related skills.  &{template:default} {{name=Action Check}}{{Action Check ?{Save Modifier?| Acrobatics, [[1d20+@{npcd_dex_mod}]] [[1d20+@{npcd_dex_mod}]] Acrobatics+ [[1d4]] Guidance | Athletics, [[1d20+[[@{pb}]]+@{npcd_str_mod}]] [[1d20+[[@{pb}]]+@{npcd_str_mod}]] Athletics+ [[1d4]] Guidance | Sleight of Hand, [[1d20+@{npcd_dex_mod}]] [[1d20+@{npcd_dex_mod}]] Sleight of Hand + [[1d4]] Guidance | Stealth, [[1d20+@{npcd_dex_mod}]] [[1d20+@{npcd_dex_mod}]] Stealth + [[1d4]] Guidance | Survival , [[1d20+@{npcd_dex_mod}]] [[1d20+@{npcd_dex_mod}]] Survival + [[1d4]] Guidance}}} How - as a DM - I tried using this macro as a universal macro for my NPCs tokens and it is not work. Is there another way to set it up for NPCs? Since I have NPCs rogues - I don't want to create a single macro button for sleight of hands, stealth, Acrobats and just have a drop down menu. 
As global macros, ones called with #___, aren't saved in a particular character sheet they need to be told which sheet to get the attributes, the@{___} parts, from. You can do this by putting selected| at the the start of each attribute call, for instance, @{selected|pb} instead of @{pb}. Instead of selected you can use a character's name or target, if you want to select a token after calling the macro rather than before, if you'd prefer but generally selected is the most used method. Hope that helps.
1508274268
The Aaron
Pro
API Scripter
You might also consider marking that macro as a Token Action so it shows up in the token action bar when a token is selected.