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

Roll linked to another

Is there any way to make a roll dependent on others? I explain.... I'm running the Waterdeep Dragon Heist, and i create my homebrew business table for the Trollskull Manor.  My question is as follows.... is there any way to associate dependent rolls with others? Here in my homebrew table....... Example if I roll 1d100 (the macro must ask before, to add a modifier "renown" to the roll that i can fill manually entering a value)..... then.... depending on the result...... shows a message or makes another roll based on the d100 + "renown" result. Example roll..... 1d100 + renown = 33  (then the macro should display the following message: The bussiness loses 10 gold dragons) Example roll 2.... 1d100 + renown = 94 (then the macro should roll 4d10 x 5 gold dragons)  Thx in advance.
I have discovered it myself..... here is the code, i think it works..... &{template:simple}{{rname=Business}}{{normal=1}}{{r1=[[1d100 +?{Renown|}]]}} &{template:desc} [[{{desc=**1 - 20** loses``40`` gp  **21 - 30** loses ``20`` gp **31 - 40** loses ``10`` gp **41 - 60** cover máx. ``20`` gp expenses **61 - 80** profit ``[[(3d6)*5]]`` gp **81 - 00** profit  ``[[(5d6)*5]]`` gp **91 - 110** profit  ``[[(4d10)*5]]`` gp  **111 - 120** profit  ``[[(5d10)*5]]`` gp  **211+** profit  ``[[(6d10)*5]]`` gp  }} it is somewhat rudimentary, because I have to check the table below, but it works ..... I can't get only the chosen result to come out of a single roll, but hey ...
1608653046
The Aaron
Roll20 Production Team
API Scripter
That's probably the best you can do without access to the API. 
1608684541

Edited 1608684644
Oosh
Sheet Author
API Scripter
If you're using the 5e by Roll20 sheet, the little-known mancerroll template does a heap of conditional displays based on a die roll: &{template:mancerroll} {{title=Business}} {{c1=[[ {[[ceil((1d100 + ?{Renown|0})/10)]],13}kl1 ]]}} {{option1=Loses 40gp}} {{option2=Loses 40gp}} {{option3=Loses 20gp}} {{option4=Loses 10gp}} {{option5=20gp expenses}} {{option6=20gp expenses}} {{option7=[[3d6*5]]gp profit}} {{option8=[[3d6*5]]gp profit}} {{option9=[[5d6*5]]gp profit}} {{option10=[[5d6*5]]gp profit}} {{option11=[[4d10*5]]gp profit}} {{option12=[[5d10*5]]gp profit}} {{option13=[[6d10*5]]gp profit}} I think I've got your math right... it needs to be divided by 10 and rounded to work with the template (and any result above 121 is the same, so it caps at 13). It might be a wee bit slow - it's going to roll everything on there, the roll template just chooses what to display, rather than stopping the roll from happening.
Oosh  you are a god xD
1609024529
Oosh
Sheet Author
API Scripter
Sadly, no :(  .... Otherwise the oceans and seas of the world would variously be made of beer, cider, gin, whisky etc.