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

[Help] Macro Function for a role with a variable number of dice that requires only different results

Hello new to scripting and need some help for a topic to that I find no example. In our campaign we are using a homebrew initiative system using ten sided dice for each action. Every char has a variable number of ten sided die (up to five) to determine when he will act. I need a generic macro with the following restrictions 1. Use the selected token 2. Ask the user for the number of dice 3. roll x ten sided dice until each die displays a different number 4. Display the result in the chat log i.e. 4 die resulting 1,2,5,9 Can that possible with the roll20 macro language? rgds JT
1457422117

Edited 1457422223
/roll ?{Number of Dice|1|2|3|4|5}d10sd The sd at the end sorts the dice from high to low. If you wish to sort low to high... change it to sa instead. However, you cannot re-roll until each shows a different number. That is not possible without using the API.