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

Using proficiency and cha modifier in a macro

Basically, the title. I can't find anything about using attribute modifiers or proficiency of my character in a macro. How do I do that? How do I say: Roll a d20 + proficiency + cha for example?
1631826319
GiGs
Pro
Sheet Author
API Scripter
Here are several ways: This needs to be an Ability on the character: /roll 1d20 + @{PROFICIENCY_NAME} + @{cha} This can be a macro, and will work for any character linked to a token - you must select a token first: /roll 1d20 + @{selected|PROFICIENCY_NAME} + @{selected|cha} This will work anywhere - you need to supply the character name or token name: /roll 1d20 + @{NAME|PROFICIENCY_NAME} + @{NAME|cha} This uses an Inline Roll (the [[ ]]) to include a roll within text. I make a @{selected|PROFICIENCY_NAME} roll and roll [[1d20 + @{selected|PROFICIENCY_NAME} + @{selected|cha}]] If there are all CAPS, replace them with words with the appropriate for your character. The wiki does cover these options.
GiGs said: If there are all CAPS, replace them with words with the appropriate for your character. The wiki does cover these options. Just to clarify GiGs’ point: each character sheet (such as the D&D 5E by Roll20) have different attribute names. The 5E sheet uses ‘charisma_mod’ and ‘pb’ for those attributes. 
1631836309
GiGs
Pro
Sheet Author
API Scripter
Good point - I assumed that since OP said cha, that was the correct attribute name. But that will vary with character sheet.