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

1d20+ability with macros

I guess that I am not the first to ask this, but I can't find an answer (maybe I am not looking for the right keywords?) So, here's what I want to do: I am playing 13th Age and I use the (wonderful) character sheet provided. I want to create a initiative roll for one of my players, and store it as a token action. In 13th Age, initiative = 1d20 + dexterity mod. + level. The creator of the sheet, has named the dex mod. + level as "DEXMODLEVEL". So, I created the following macro: /me Initiative [[1d20+@{DEXMODLEVEL}]] The numbers are OK, it just does what it's supposed to do . But when I pass my mouse over the result, I see something like this: 1d20+floor(12/2)-5+1 This, also happens when I type /roll 1d20+... instead of [[...]] Could it be a problem of the character sheet, or am I doing something wrong?
1412369284
Gen Kitty
Forum Champion
You're seeing the reason I avoid the character sheets as much as I can. The macros turn into unholy gibberish because of the math being used to derive numbers. I've never played 13th Age, but I'm guessing the stat mods are calculated as 'stat divided by 2, round down the result, subtract five'. Would I be correct that the character in question is 1st level and has a Dex of 12, for a +1 to DexBased things?
1412369429
Gauss
Forum Champion
There is no problem. @{DEXMODLEVEL} is probably referencing the calculation for the Dexterity Modifier ("floor(12/2)-5") and the Level ("1"). They cannot be summed before being placed in @{DEXMODLEVEL} so you will never see them as just the sum ("2").
That's how your dex mod is determined. your Dex score (12) divided by 2, minus 5, all rounded down = Your dex mod. To have it automatically add to the tracker instead of just displaying on the chatwindow, you'll want to do something like this: /me leaps into action! [[1d20 + @{DEXMODLEVEL} &{tracker} ]] Edit: And apparently everyone is just a liiiitle bit quicker than I am, today. But Look! I bring Shinies! Lots of Macro Examples
1412370297
vÍnce
Pro
Sheet Author
But Look! I bring Shinies! Lots of Macro Examples Thank you!