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

Setting Up NPC Attack Roll on Pathfinder NPC Sheet

I apologize ahead of time for what's likely a very easy, newbie question and one, I have no doubts, has been answered many times before.  I've tried searching in the forum - and through a broader browser search - but haven't quite found an answer.  I'm new to DMing as well as Roll20 and have been slowly getting my bearings.  I've been working on using the bestiary in my campaign and trying to add the abilities token actions, which look wickedly useful.  I've managed to figure most of them out but I can't get the attack one to work.  I suspect I'm not getting the coding right for identifying the referenced attack.  I've copied the code from the pathfinder character sheet information page and have tried different variations of adding the attack roll name "gore" but can't get it to work.  How should I be wording the roll command?  Again, thank you for any help with what I'm sure is a boringly simple challenge!
1638655284
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
At first glance, the problem is likely $id. That's not a valid construction. It needs to be an ordinal reference like $0, $1, $2 and so on. This refers to their position on the sheet, with $0 being the first. Alternatively, the whole thing can be replaced by a 16(?) character id number.
Thank you so very much!  I'd tried replacing the $id with a number but didn't realize it started with 0 rather than 1.  My first try only had one form of attack so $1 also didn't work, which led me astray.  Thank you for the help - I appreciate it!