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

[Script] Randomtoken

1674722400

Edited 1674722922
This script will pick 1 random token from a selection useful if you want to chose a random player. just drag a box or shift click any number of tokens and type !randomtoken <a href="https://github.com/RadBlaster/RandomToken/blob/main/RandomToken" rel="nofollow">https://github.com/RadBlaster/RandomToken/blob/main/RandomToken</a> <a href="https://gist.github.com/RadBlaster/62dcae76aa5863d6755946303371fd53" rel="nofollow">https://gist.github.com/RadBlaster/62dcae76aa5863d6755946303371fd53</a>
1674746354
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Can you give a little more detail? I currently use Token Fate from the repo for this, but if it has other or different functionality, I'd be intrigued. Does it report to the chat?
It looks like it's a very simple script that just randomly outputs the name of one of a selection of tokens, but it also doesn't have any error checking (for accidentally selecting non-token images, such as lines). It's a great idea, Rob, but there's already another script that does the same thing: TokenFate . You might want to check it out and see if there's any functionality missing there that you'd want to add on. :)
1675001839
Surok
Roll20 Production Team
I wasn't totally satified with the TokenFate output because it didn't let myself or the players know which tokens were selected. So to solve this with conjunction GroupCheck I add the following: !group-check-config --add { "Target" : { "name" : "Fate Randomly Chose From", "formula" : " "} } Then made this macro !group-check --Target --title Fate Randomly Chose From !token-fate
1675017216
David M.
Pro
API Scripter
Neat, Surok! I may have to try that.