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 Community] NPC Attacks

I'm not sure how to use the NPC actions section. I want to create a macro that automatically executes the first slot of the NPC's action. But I'm not sure how to write the macro. And particularly, I'm not sure what to put in the "effect" block. I write /r 1d20+3 but it doesn't recognize that. Thanks for your help!
Hi, Steven K. Which Character Sheet are you using?
Woops sorry. DnD 5th Edition Community Contributed.
1465714396

Edited 1465714450
Thank you. Roll Templates (including those which are output by the 5e Community's sheet buttons) use Inline Dice Rolls instead of /rolls, so try [[ 1d20 + 3 ]] instead.
1465722095
Kryx
Pro
Sheet Author
API Scripter
NPC attacks on the community sheet was something that Actoba was never able to fully implement. Since the sheet is no longer supported I'd suggest updating to the Shaped or OGL sheet. They both handle attack, damage, and second damage. The Shaped sheet handles some additional items such as saving throws and healing (in traits).
You can make the macro in there as simple or complicated as you wish. The Community sheet gives you a lot of flexibility in how you wish to use the provided sections. You could simply have in the attack rolls in the Description section like this: [[ 1d20 + 4 ]] | [[ 1d20 + 4 ]] and in the Effect section have the damage rolls  [[ 1d6 +2 ]] piercing To make an ability for the first NPC attack with a token action reference it by %{selected|NPCAction1} Advanced usage below I choose to make mine a little more formated so I added in bits of roll template code.  I put this in my Effects section  }} {{attack=[[(1d20cs>20+4+?{Additional Modifiers +|0})]] }} {{attackadv= [[(1d20cs>20+4+?{Additional Modifiers +|0})]] to hit [[@{target|bar2}d1]] }} {{damage= [[1d6+2]] Piercing}} {{critdamage=Additional [[1d6]] Piercing}} The Description section I reserve for saves and such.  When I call it on a token action I add in a little more formatting  /emas @{selected|token_name} swings at @{target|token_name} %{selected|NPCAction1} {{subheader2=Reach 5'}} {{subheaderright2=One Target}} {{emote= @{selected|token_name} is attacking @{target|token_name}...}} looks like such  and I get an output that looks like this I have a basic NPC saved with the macros already entered, so when I need a new NPC, I just copy the generic one and change the attack rolls and damage. It doesn't take much time at all to set up an NPC this way.  I hope that helps and Happy Gaming!