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

Pathfinder NPC Macros for Spells

So, I'm running into an interesting problem. I'm trying to create a spell with a macro for an NPC/monster using the NPC sheet. However, it doesn't seem to be working for me. The spell in question does 1d6+Intelligence modifier+caster level (max 5) I've tried a few ways, but the most logical one I've figured: [[1d6 + @{INT-mod} + [[ {5,@{caster_level} }kl1 ]] ]] For whatever reason, it cannot find the intelligence modifier or caster level and gives a syntax error.
What happens if you select a character and put these in chat: @{selected|INT-mod}&nbsp; @{selected|caster_level}&nbsp; If you get an error message then those aren't the correct attribute names. E.g. <a href="https://wiki.roll20.net/Pathfinder_Community_Sheet" rel="nofollow">https://wiki.roll20.net/Pathfinder_Community_Sheet</a>. You should double-check which sheet is selected for the game and look up the relevant attributes.&nbsp; Keep in mind that there may be multiple character sheets for any specific game.
1650526736

Edited 1650565142
Mune
Pro
I checked the sheet, but it's not making a whole lot of sense. I've tried several times and tried changing some values. @{selected|npc_INT-mod} seemed to work, but @{selected|npc_caster_level} doesn't, nor either of the codes provided prior work. I'm wondering if I'm screwing up the formula or if the attributes are incorrect. The one most suspect is that second one, which is the same for both a PC and a NPC, even though the sheets are very different. I found the ones I used at <a href="https://wiki.roll20.net/Pathfinder_by_Roll20" rel="nofollow">https://wiki.roll20.net/Pathfinder_by_Roll20</a> [Edit] I think I'm struggling with this because I don't want to name the NPC, but use a general formula that could be applied to several NPC sheets quickly, as the same goes for several character sheet formulas. I would use the compendium instead, but the spells in question are a bit unique in their formula. If I could find an example of a spell that used something similar, I think I could figure this out quickly. [End Edit]
1650578174

Edited 1650578210
Mune
Pro
After much tinkering... 1d6+@{intelligence_mod}+[[{@{caster1_level},5}kl1]] Logic behind this is that the Pathfinder by Roll20 NPC sheets use "intelligence_mod", not "INT-mod" Problem solved.