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

Scaling damage dice as a macro

1576576438

Edited 1576621196
I am currently trying to make a macro for the halo of spores feature for the Spore druid. It scales dice size per level. Its 1d4 at lvl 1, 1d6 at 6th level, 1d8 at 10th level, and 1d10 at 14th level. I found an old solution and now I am currently at  1d[[4 + 2 * {6, 10, 14}<?{Level|1}]] The problem is that it gives me the correct dice size but doesnt roll and I also want to reference the level of the druid. The way it is currently it gives me a pop-up and ask for level instead of automatically rolling it from the character sheet. Can someone help me? Edit: 2: Solved! I just had to add brackets so its [[1d[[4 + 2 * {6, 10, 14}<@{charactername|druid_level}]]]] Thanks @GiGs
1576591229
GiGs
Pro
Sheet Author
API Scripter
are you putting /roll at the start of it? It should be like this /roll 1d[[4 + 2 * {6, 10, 14}<?{Level|1}]] or  using inline roll brackets  [[ 1d[[4 + 2 * {6, 10, 14}<?{Level|1}]] ]] If you want to draw the level from a character sheet, its easy enough, but you need to know what the level attribute is called, and whether this macro is an Ability on a character sheet or a universal macro. As an Ability, and assuming the attribute is called " level ":  /roll 1d[[4 + 2 * {6, 10, 14}<@{level}]] If in a universal macro, you need to supply the character name somehow. If the character is called frodo , you could use /roll 1d[[4 + 2 * {6, 10, 14}<@{frodo|level}]] If you want to use it with any character, replace the character name with selected  or target . E.g. /roll 1d[[4 + 2 * {6, 10, 14}<@{selected|level}]]
1576620137

Edited 1576620893
I am using shaped sheet and I am trying to put it into class features description, so he can just click on a macro linked to it to roll it. He is multiclassing so I have to refer to his druid level but when I try 1d[[4 + 2 * {6, 10, 14}<@{charactername|druid_level}]] I get an error that says: "There was an error with your formula. Please try again." Edit: I think i found the mistake. Shaped sheet doesnt recognize /roll in the content description I am trying to fix that currently. Edit: 2: Solved! I just had to add brackets so its [[1d[[4 + 2 * {6, 10, 14}<@{charactername|druid_level}]]]]
1576627545
GiGs
Pro
Sheet Author
API Scripter
Excellent!