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

Damage not rolling /appearing for some NPC's (token actions not working as well for some NPCs)

October 16 (1 year ago)
Luke
Pro

Hey! I was searching around online and couldn't figure out how to fix this or what's even causing it, but some of my tokens aren't rolling damage at all. This is only an issue for a small collection of tokens. the tokens that don't roll damage, also are failing to use any sort of token action. attached is a screenshot showing the issue. any help would be awesome! we are one session away from the end of my campaign and I want to make sure this combat goes smoothly!

October 16 (1 year ago)

Do you have more than one character with the same name (such as Veteran)? That would cause rolls to reference the wrong sheet, which may not have the proper information in the attacks.

Are the tokens linked to the correct character? 

Those are my first guesses because the sheet looks correct at a glance.


For the Token Actions not working, your code is not referencing the correct thing there. That is not how to reference repeating actions. You are trying to reference an Ability (on the Attributes and Abilities tab) named 'Shortsword', which there is none.


Actions on the D&D 5E by Roll20 'NPC' sheet are listed as 'repeating actions', and to roll the Shortsword from the Veteran character sheet, you'll need to reference the 4th repeating action, which is done as %{Veteraan|repeating_npcaction_$3_npc_action} 


You may be interested in using my Universal Statblock Macromule to use a chat menu for NPC rolls instead of opening character sheets.

October 16 (1 year ago)

Edited October 16 (1 year ago)

It also looks like the 'damage' entry can be removed, but still show up on the display portion of the sheet, so edit the attack and make sure the damage field isn't blank:

'Longsword (One-Handed)' looks correct: 

But it actually has a blank 'on hit' field:

And this is the output into chat:


October 16 (1 year ago)
Luke
Pro



Jarren said:

Do you have more than one character with the same name (such as Veteran)? That would cause rolls to reference the wrong sheet, which may not have the proper information in the attacks.

Are the tokens linked to the correct character? 

Those are my first guesses because the sheet looks correct at a glance.


For the Token Actions not working, your code is not referencing the correct thing there. That is not how to reference repeating actions. You are trying to reference an Ability (on the Attributes and Abilities tab) named 'Shortsword', which there is none.


Actions on the D&D 5E by Roll20 'NPC' sheet are listed as 'repeating actions', and to roll the Shortsword from the Veteran character sheet, you'll need to reference the 4th repeating action, which is done as %{Veteraan|repeating_npcaction_$3_npc_action} 


You may be interested in using my Universal Statblock Macromule to use a chat menu for NPC rolls instead of opening character sheets.


that looks like it was it! as for the NPC actions, i am using an API to auto make the NPC actions with a commend which is working well, but failed for a few of these. I will also take a look at that other one you mentioned. thank you so much!