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] NPC Skills

Hi, I have this macro for NPCs (this is an example for Athletics Checks, but they are all the same)  [[1d20 + @{selected|npc_athletics}]] I use the 5e OGL sheet and the Monster Manual addon, so basically when I add the macro it "reads" from the abilities section if the  NPC or the monster has a bonus on a specific ability and add it to the d20 roll. The problem here is that if I want to use a skill where a monster or a NPC hasn't any bonus the macro just roll a d20 without taking in account the related modifier of the ability (i.e. strength for athletics checks). When a x monster sheet states that x has +5 in perception I assume that the bonus already includes the Wisdom mod. So how can I change the macro to let it takes the right modifier when there are no skill bonuses on the sheet? Let's assume that x has + 0 in perception but a +1 as Wisdom modifier... I want that the +1 is added to the die roll. What if I do this: [[1d20 + @{selected|npc_athletics} + @{npcd_wis_mod}]] Hope the question is clear. 
It's actually a pretty complicated math problem because the NPC either has the skill or does not, so we need to do some special math. I stole this from smarter people but you need to use: [[ [[@{selected|npcd_str_mod} * {1@{selected|npc_athletics}0, 0}=10 + 0@{selected|npc_athletics}]] ]]
[[ [[@{selected|npcd_str_mod} * {1@{selected|npc_athletics}0, 0}=10 + 0@{selected|npc_athletics}]] ]] I've tried it but the output is always 0... maybe I'm doing something wrong?
What's the value of @{selected|npcd_str_mod} and @{selected|npc_athletics}?
Gianmarco V. (Ravencroma) said: [[ [[@{selected|npcd_str_mod} * {1@{selected|npc_athletics}0, 0}=10 + 0@{selected|npc_athletics}]] ]] I've tried it but the output is always 0... maybe I'm doing something wrong? Right, that just outputs the modifier. You still need the 1d20 part, sorry I didn't include that. so [[ 1d20 + [ [@{selected|npcd_str_mod} * {1@{selected|npc_athletics}0, 0}=10 + 0@{selected|npc_athletics} ]] ]]
Thank you very much, this is a very useful macro!