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 .
×

Adding Ability Check to NPC Action

1786940521

Edited 1786944004
Hi!  I'm attempting to homebrew a feature where a PC's custom resource is added to the damage roll of certain NPC actions in battle of certain NPC's.  It would work something like this:  On Hit: 1d10 + nd4 (where n is the target PC's other_resource value). Said resource is unique to each Character Sheet. In this case, said move would admittedly only calculate correctly if the PC in question were selected at the time that the Action was used. (Ideally it would function like a Token Action macro, but on the NPC character sheet instead).  The resource in question is meant to be a mixed blessing: one wherein the higher the value, the easier certain rolls get BUT the more deadly certain NPC attacks are.  I've tried every way I can think of to add that value to the NPC's Damage Roll (specifically in the "On Hit" section), but it's apparently being stored as text rather than a value, and thus isn't affecting the rolls' outcome. I'm sure there's a simple solution that I'm just not seeing - please let me know what that is or, failing that, your thoughts. Thanks! EDIT: For the record, I'm playing DND 5e (2014), and using the default character sheet. 
What game are you playing?  Which character sheet is selected for the game? it’s impossible to give you an answer without knowing which character sheet is selected for the game. If you’re not sure, please post a screenshot. 
Thanks for asking! I just edited my initial post. It's DnD 5e (2014) with the default character sheet. :)
1786953658

Edited 1786953841
Gauss
Forum Champion
Hi G.Dream,  There is no single "default character sheet" for D&D anymore. There are now two "defaults". Please post a screenshot of the sheet you are using, although based on "other_resource" the PCs are using the D&D 5e (Classic) (formerly the D&D 5e 2014) sheet.  That said, most likely what you want is:  1d10 +@{target|other_resource}d4
Ooh, awesome! It is indeed  D&D 5E (Classic) sheet.  Now, so we're clear: these will be NPC actions ONLY, as only PC's will have the resource on their character sheets. Hence why this would (ideally) be an Attack Action rather than a Macro. Can I include that "1d10 +@{target|other_resource}d4" into the Attack Action itself somehow? And if so, how? 
1787002935

Edited 1787002961
Asking because just adding that into the damage slot isn't working: 
You are showing the Attack Roll, not the Damage Roll. 
Oh! You're right!  My bad! Thanks!  I'd specifically entered "1d10+@{target|other_attribute}" into the "On Hit" damage box. 
1787006387

Edited 1787006469
Gauss
Forum Champion
Either turn on auto-roll damage, or you have to click to activate the damage.  Also, you said you wanted it to go to other_resource, not other_attribute. As a final note: I'd also stick a 0 in front of @{target|other_resource} as a safety step in case that attribute is ever empty.  1d10 + 0@{target|other_resource}d4
As Gauss mentioned, there is no 'other_attribute' attribute on the D&D 5E Classic (2014) sheet. There is 'other_resource', 'class_resource', and then repeating resources (which have a specific way of being called). 
Aah, typos are fun, ain't they?  And after I fixed that, it worked like a charm. Thank you everyone!  For the curious, my final version is as follows:  Name: Know This Type: Ranged Reach: 300ft To Hit: NPC Wisdom Modifier On Hit: 1d10+0@{target|other_resource}d4 (Psychic Type) Description: @{selected|character_name} reveals a terrible secret to @{target|character_name}, tearing at the soft fabric of their mind.