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

Been awhile - cant seem to add [[Ability_mod]] inline to my macro

June 03 (10 months ago)

normally when I create attacks & Spellcasting, In the description box I tend to add any other info and sometimes additional inline rolls.

So let's pretend I have a homebrew ability, I create the attack, put in the relevant info on the attack but there are few other things I cant add, so I will put it in the description. example

Natural healing
1d12+2
 
description - players within 10 ft of you also receive temp. HP equal to your constitution modifer
[[@(constitution_mod)]]

and when I test the attack - it would show the con mod #

I also remember never ever using the selected|constitution_mod format.

is this no longer possible?

June 03 (10 months ago)
Gauss
Forum Champion

So it may just be how you wrote it here, but the correct way is to write @{constitution_mod} rather than @(constitution_mod) . 

Which character sheet are you using? Without that information we cannot determine if the attribute is named correctly.

June 03 (10 months ago)

Edited June 03 (10 months ago)

5e OGL

edit - removed.

June 03 (10 months ago)
Gauss
Forum Champion

So [[@{constitution_mod}]] should work. If it doesn't please let me know.

June 03 (10 months ago)

Yep, as Gauss says, it looks like you're using parentheses instead of curly braces around the attribute.

I just quickly mocked this up in the description field and it worked correctly:

Players within 10 ft of you also receive [[@{constitution_mod}]] temporary hit points. 


June 03 (10 months ago)

I could have sworn I tried those brackets too lol. Thanks.

now how do I get athletics_roll to show up?

Trying to set an attack macro for grappling. I am a battlerager, so when I do grapple, they take 3 piercing damage. Trying to include in the description my contested athletics_roll they need to beat. 

the [[@{athletics_roll}]] doesnt work

June 03 (10 months ago)

Edited June 03 (10 months ago)
Gauss
Forum Champion

@{athletics_roll} is a templated roll, so you cannot use that as you are already inside another template (the attack's description is inside the attack template).

You will have to create the roll from scratch. Example: [[1d20 +@{athletics_bonus}]]