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

Can alternate values be assigned to a dice roll?

I'm thinking mainly in terms of random effects based on a d% roll, but the simplest example would be a coin flip. Perhaps a query that compares a dice roll to a set of preset values? In the case of a coin flip, maybe something like " {?1d2|1,tales|2,heads} " where a roll of 2 shows the result "heads." For a d% roll example, the values are set to the options of a given random result table: " {?1d100|<1,Item is intelligent|2~31,Item's function is more obvious|>32,No special traits} " Is this something that can already be accomplished, or could a feature like this be added easily?
Rollable Tables may be what you are looking for. <a href="https://wiki.roll20.net/Collections#Rollable_Tables" rel="nofollow">https://wiki.roll20.net/Collections#Rollable_Tables</a>
1552572891
Pat S.
Forum Champion
Sheet Author
If you want to go down the rabbit hole of rollable tables, there is an api script that is called (I think) recursive tables.
Thank you both for the info! I had the impression that rollable tables only worked with tokens, but this is just what I needed :)