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

Texts according to dice rolls ?

Hi everyone, I would like a macro for a last chance roll : I would roll a d20 and then -when equal or less than 5 "not this time" -when less than 10 but greater than 5 "you will need a little push" -when equal or greater than 10 but less than 15 "you are saved from death by..." -when equal or greater than 15 "you are saved by the gods" In resume, i would have 4 outcome from 0to5, 6to9, 10to14 and 15to20. Is that possible? 
1442908993
Gen Kitty
Forum Champion
What you're asking for is quite possible.  Please read through the guide for Rollable Tables , experiment, and let us know if you have any questions about setting them up.
Thaks, i created a rollable table with 4 items with 25% chances each, but when i roll it i get that : Wich is not very pretty, can i inline roll tables, or do something to improve the way it looks?
1442920271

Edited 1442920691
Ziechael
Forum Champion
Sheet Author
API Scripter
You certainly can: [[1t[Last-chance]]] should give you a nicer output. You could also use the templates to make it neater although you'll still get the highlighted text from the inline table roll: &{template:default} {{name= Last Chance}} {{[[1t[Last-chance]]]}} Depending on what sheet you are using there may be prettier templates available too...
I wish there was an option to tie dice rolls to tables. Simple adding weights isn't usable in many cases. E.g. a system I run has a table that uses 2d8 rolls. The probability curve is shown here <a href="http://anydice.com/program/859" rel="nofollow">http://anydice.com/program/859</a> . Simply using percentage would lose some of the results from the lowest and highest rolls.
1442921654
Ziechael
Forum Champion
Sheet Author
API Scripter
With regards to weighting, it doesn't have to be a percentage. In your example you would need to create a table with 15 entries each weighted as 1 as regardless of the probability curve the chances of rolling two 1's is the same as rolling two 8's as is any combination in between?
1442939735
Lithl
Pro
Sheet Author
API Scripter
Ziechael said: With regards to weighting, it doesn't have to be a percentage. In your example you would need to create a table with 15 entries each weighted as 1 as regardless of the probability curve the chances of rolling two 1's is the same as rolling two 8's as is any combination in between? They wouldn't be the same weight, because while the odds of rolling 2 are equal to the odds of rolling 16, the odds of rolling 3 are not the same as rolling 2.
1442951158
Ziechael
Forum Champion
Sheet Author
API Scripter
Brian said: Ziechael said: With regards to weighting, it doesn't have to be a percentage. In your example you would need to create a table with 15 entries each weighted as 1 as regardless of the probability curve the chances of rolling two 1's is the same as rolling two 8's as is any combination in between? They wouldn't be the same weight, because while the odds of rolling 2 are equal to the odds of rolling 16, the odds of rolling 3 are not the same as rolling 2. I bow, of course, to your expertise as usual Brian. My point was that a correctly set up table can effectively recreate any potential dice output.