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

Convert numerical roll output to label

1484239628
GiGs
Pro
Sheet Author
API Scripter
I'm making a homebrew game hacked from Fudge, and I'd like to have a roll that gets a label from a lookup table. Like, a result of -3 or less = Terrible, -2 = Poor, -1 = Mediocre, 0 = Fair, 1 = Good, 2 = great, 3 = Superb, and 4 or more is Legendary.  Is there a way to do that without using the API, say with Sheet workers?
1484282108
Lithl
Pro
Sheet Author
API Scripter
You might be able to do some roll template magic. Have the fire roll with the fumble dice, and check each value on the ladder to show/hide the appropriate text in the roll template.
1484292474
GiGs
Pro
Sheet Author
API Scripter
That looks promising. I see rolltemplates have the option of checking greater than, or between values. Does rollTotal show its result only for exact matches?
1484296156
GiGs
Pro
Sheet Author
API Scripter
Thank you Brian, I got it working. For those maintaining Fate and Fudge character sheets, this is what you need for a standard Fate ladder: {{#rollLess() roll -2}} Beyond Terrible ({{roll}}) {{/rollLess() roll -2}} {{#rollTotal() roll -2}} Terrible ({{roll}}) {{/rollTotal() roll -2}} {{#rollTotal() roll -1}} Poor ({{roll}}) {{/rollTotal() roll -1}} {{#rollTotal() roll 0}} Mediocre (+{{roll}}) {{/rollTotal() roll 0}} {{#rollTotal() roll 1}} Average (+{{roll}}) {{/rollTotal() roll 1}} {{#rollTotal() roll 2}} Fair (+{{roll}}) {{/rollTotal() roll 2}} {{#rollTotal() roll 3}} Good (+{{roll}}) {{/rollTotal() roll 3}} {{#rollTotal() roll 4}} Great (+{{roll}}) {{/rollTotal() roll 4}} {{#rollTotal() roll 5}} Superb (+{{roll}}) {{/rollTotal() roll 5}} {{#rollTotal() roll 6}} Fantastic (+{{roll}}) {{/rollTotal() roll 6}} {{#rollTotal() roll 7}} Epic (+{{roll}}) {{/rollTotal() roll 7}} {{#rollTotal() roll 8}} Legendary (+{{roll}}) {{/rollTotal() roll 8}} {{#rollGreater() roll 8}} Beyond Legendary (+{{roll}}) {{/rollGreater() roll 8}}