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

No ability mod attribute field for NPC's?

December 09 (10 years ago)
So rather new to roll20, and I've been messing around with stuff and trying to flesh out a campaign. I recently grabbed one of the macro's on the site to do initiative.

/em rolls some dice.
Initiative [[1d20 + @{selected|DEX Mod} [Dexterity Mod] &{tracker}]]


Now, I haven't tried it with a PC yet, but with an NPC just testing it out it cannot find the DEX mod. It seems the NPC sheets dont generate a field for modifiers. I'm not sure if this is an error in the way it's worded and there is a way to grab the mod without it making a field in the attributes page, or if it's a bug and it's supposed to be populating a field and not.... If this is in the wrong forum sorry! wasn't sure.... I'd prefer not to have to make a DEX mod field for every single NPC I plan on using in a fight... but i will... also! kinda related, but if it's not dont worry i'll make a new topic, but is there a way to grab ATK bonus as well? currently manually populating that as well=P Thanks!
December 09 (10 years ago)

Edited December 09 (10 years ago)
vÍnce
Pro
Sheet Author
Hi Zach. The macro's you grab from where ever might have to be adjusted to your particular character sheet. There are many different gaming systems on Roll20, so you will see lot's off different macros that fundamentally perform the same task, but are looking for specific attributes.

What sheet are you using? My guess is that there isn't a "Dex Mod" attribute for your sheet or it should be called "Dex-Mod" in the macro...? You need to find the attribute used for Initiative and adjust the macro to use it.

For example, the Pathfinder Sheet uses the attribute @{init} for the initiative modifier, so I could use [[1d20 + @{selected|init} &{tracker}]]

As far as ATK bonus... It depends on your sheet. :-) You usually can mouse over a field or sheet roll on your character sheet to see the attributes name. So, look for the field on the sheet, mouseover and the hover text will say something like "@{ATK-bonus}" You can use that in your macros. You can also look at the list of attributes created for your character sheet/journal by looking at the Attributes & Abilities tab.

Hope this helps.
December 09 (10 years ago)
Sorry! should have thought about the character sheet info, I'm using D&D 5E. And the list of attributes in that tab does not have any Mods, or ATK bonus=P I did try to see if there was hover text but it doesnt seem to be popping up? As well, the attack bonus isn't on NPC sheets for 5E, it's only in calculated numbers so there is no distinct field... do you have any suggestions as to what I can do to fake it or....? I grabbed the macro from the D&D 5E wiki page for monsters so I'm not sure why it's not working...
December 09 (10 years ago)
I read through the D&D 5E post a little more closely and saw that you do have to populate it yourself=P I'd still like to know if there is maybe a better way but I now know it's not just me!
December 09 (10 years ago)
vÍnce
Pro
Sheet Author
Thanks Zach. Disregard what I said about the mouse-over, above. It doesn't apply to this sheet.
Make sure to read Actoba's awesome DnD 5e Character Sheet guide on the wiki https://wiki.roll20.net/DnD5e_Character_Sheet
Attributes are created when you enter info on the sheet.

the Initiative for the Character's sheet roll/macro for the 5e sheet is
@{selected|token_name} rolls a [[1d20 + @{selected|initiative_overall} [Initiative Mod] &{tracker}]] for initiative!
the Initiative for the NPC's sheet roll/macro for the 5e sheet is
/w GM @{selected|token_name} rolls a [[1d20 + @{selected|npc_initiative_overall} [Initiative Mod] &{tracker}]] for initiative!
All the attributes for the NPC version of the sheet are uniquely named, seperate from the character version. note the "npc_" added to the attribute name.

A trick you can use to figure out what commands were passed to chat from a macro is to use a sheet roll, then go to the chat window, click in the window and use the up/down arrow keys to cycle thru the chat output. Useful for seeing what is actually happening.
December 09 (10 years ago)
wow! thanks for the help! that link is awesome and the macro's are super helpful! Thank you soooo much! I wish I could upvote you so i could make 5 separate accounts and upvote you 5 times!
December 09 (10 years ago)
vÍnce
Pro
Sheet Author
Glad to help Zach. Have fun.
December 09 (10 years ago)
Gauss
Forum Champion
Moved to the Character Sheet forum.
December 09 (10 years ago)
Actoba
Pro
Sheet Author
Just to confirm the NPC stat mod attributes are :

npc_strength_mod
npc_dexterity_mod
npc_constitution_mod
npc_wisdom_mod
npc_intelligence_mod
npc_charisma_mod