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 from table without repeating?

Is there any way to roll from a table and then remove that entry easily from it so you cant roll duplicates?
1642891634
David M.
Pro
API Scripter
I've used scriptcards for this. The scriptcard below rolls 3x on a table named "EyeRays", ignoring duplicates. You can just change the table name to your table by editing this line near the end --=Roll|[T#EyeRays] Here's the scriptcard: !scriptcard {{ --#title|Beholder Rays --:Initialize Roll Vars| --=NumRolls|3 --=RollCount|0 --&ValidResults| --:Loop| --=RollCount|[$RollCount] + 1 -->RollTable| --+|[$Roll.tableEntryText] --?[$RollCount] -lt [$NumRolls]|Loop --X| End macro --:FUNCTIONS| --:RollTable| --:RollLoop| --=Roll|[T#EyeRays] --?"[&ValidResults]" -inc "[$Roll.tableEntryText]"|Loop --&ValidResults|+[$Roll.tableEntryText] --<| }}