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

Token Mod Question - rerolls

1642712363

Edited 1642712762
Does Token Mod support die rolls with rerolls.   Like 3d6r1?    This rerolls 1s. I'm using this.  Will that work?   Also, is there a way to show the dice rolls for this? !token-mod {{   --set     Bar3_value| +[[3d6r1]]!   --report     all|"{name} is healed from channel energy and regains {bar1_value:abschange} hp."     gm:control|"{name} hp change: {bar3_value:before} -> {bar3_value} (+{bar3_value:abschange}hp)" }} Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0in; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}
1642726803
timmaugh
Forum Champion
API Scripter
Yes, TokenMod can handle that. It pulls the value out of the inline roll, no matter what that value is (all rolls have a value, no matter their equation). As for the second question, you can list the dice using Plugger (a metascript) and embedding it in the TokenMod line. The basic syntax is: {&eval}getDiceByVal($[[0]] <7 all list|,){&/eval} ...where $[[0]] represents the roll position of the roll you want to evaluate. With only one roll in your example, that will be the 0 th roll. That whole line says, "get all the dice from the 0 th  roll that are under 7 and show them in a comma separated list." Put that somewhere where you'll recognize it, like in the "all" line: all|"{name} is healed from channel energy and regains {bar1_value:abschange} hp. Dice rolled: {&eval}getDiceByVal($[[0]] <7 all list|,){&/eval}"