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

[M&M] Hero Point Macro

1486690970
Fyndhal
Plus
Sheet Author
I want to set up a macro that returns the straight 1d20 die roll if the result is 11 or higher, or 1d20+10 if the result is 10 or lower. Any thoughts on how to do that?
Why not just do a flat 1d20+10, you would get everything in the range you are looking for, minus the extra chance to get 11 (11, or 1+10)?
1486691847
The Aaron
Pro
API Scripter
Not possible without the API (pro level perk).  You can't use the result of a die roll in two ways.  What you COULD do is: [[ round((1d20 * 101)+10)*.01 ]] That will give you the basic roll on the left side of the . and the +10 version on the right side.
1486691951
Fyndhal
Plus
Sheet Author
Kyle G. said: Why not just do a flat 1d20+10, you would get everything in the range you are looking for, minus the extra chance to get 11 (11, or 1+10)? Because that would results above 20. I could do 1d10+10 but the probability on that is different than the 1d20 roll...slightly. In any case, I'm trying to do it the way the book calls for.
1486692762
The Aaron
Pro
API Scripter
Another option would be to set up a Roll Table with: 10,11,12,13,14,15,16,17,18,19,20,10,11,12,13,14,15,16,17,18,19,20 That would be the right distribution.  If you wanted to be sure that you knew when the hero point was taking effect, you could put [Hero Point] after half the numbers.
1486693204
Fyndhal
Plus
Sheet Author
The Aaron said: Another option would be to set up a Roll Table with: 10,11,12,13,14,15,16,17,18,19,20,10,11,12,13,14,15,16,17,18,19,20 That would be the right distribution.  If you wanted to be sure that you knew when the hero point was taking effect, you could put [Hero Point] after half the numbers. Thanks, Aaron. I'm not the GM of this particular game, but I'll prod him to see if he'll set up a table for me.
1486693456
Fyndhal
Plus
Sheet Author
A suggestion: Min/Max operands would be very useful to me, I think.
1486695010
The Aaron
Pro
API Scripter
You can get min/max with groups and kh/kl: Minimum of 3: [[ {1d20,3d1}kh1 ]] Maximum of 12: [[ {1d20,12d1}kl1 ]] The types in a { } group need to be the same, hence the Xd1 syntax.
1486700797
Silvyre
Forum Champion
^ I like using X+0d0 instead of Xd1 to preserve Roll Highlighting and neaten the inline roll tooltip.
1486701005
The Aaron
Pro
API Scripter
Ooh, good point!
1486701369
Silvyre
Forum Champion
From the d20HeroSRD : One [Hero] point allows you to re-roll any die roll you make and take the better of the two rolls. On a result of 1 through 10 on the second roll, add 10 to the result, an 11 or higher remains as-is (so the re-roll is always a result of 11-20). So, it sounds like a simple [[ 10 + 1d10 ]] can emulate this.