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

[MACRO REQUEST] Rolling dice, exploding them then launch a table for succes

1443279750

Edited 1443281790
Hi everyone, I had difficulties making a macro for my system for a specific use. - the character search for shards, he gets 1 shards by roll higher than 3 and he can re-roll on 6, he rolls  /desc @{selected|nickname} is searching shards... /r @{selected|OccultEducation}d6! After that, i have a table for knowing the color of the shard he find and i would like a function to launch the table according to the number of success. Does it exist ?
1443280478

Edited 1443285883
/desc @{selected|nickname} cherche le sol... /r [[@{selected|OccultEducation}d6>4!]]t[Recherche-de-shards]
[[  [[ { @{selected|OccultEducation}d6!  }>4 ]]t[TableName]  ]] Just make sure your table has enough entries to accomodate the potential craziness you can get with exploding dice.  Testing with 2d6! I ended up with a couple of success counts of 5 and 6 from exploding.
1443281802

Edited 1443281994
Mark G., This works but only display the last results of the table, i have to hover it to see all the results from the table, which is sometimes not convenient as the inline result goes outside my windows sometimes
If you enclose it in a Template, it should condense and format it for you. &{template:default} {{name=Shard Search}}{{ [[ [[ { @{selected|OccultEducation}d6! }>4 ]]t[TableName] ]] }}
1443285589

Edited 1443285687
Still doesn't work, what i get : As you can see, it display the first result of the table only, and hovering on big rolls make it goes out the windows. Is there a macro function that counts success ? For my case, it would be the numbers of rolls higher than 3, something that would display like : "you find 3 shards" which could be "you find @{selected|OccultEducation}d6!+macro counting success". Does this function exist?
Try this. /r [[@{selected|OccultEducation}d6>4!]]t[Recherche-de-shards]
Yep this is it! exactly what i needed Silvyre! Works great! :D Thanks guys!