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

[Request/Search] Randomly Name Token from Table

1534981794

Edited 1534981820
Hey everyone, I am searching for a script that would let me set a Variable in a Default Tokens Name, which randomly chooses an entry in a weighted table, when the token is dragged and dropped on the map. Just like TokenNameNumber does with the %%NUMBERED%% variable, only that it does not add a number, but rather a string from a table (possibly %%[1t[Names]]]%% or something like that). I have tried looking far and wide (okay, mostly in this forum and the github), but couldn't find a script that would let me do this. Have I overlooked something (very much a possibility)? Cheers
1534988715
The Aaron
Pro
API Scripter
Such a script does not exist, to my knowledge.  It could be written and we were actually discussing it in another thread only a few days ago.
That's a shame, but thanks for clarifying. I looked into the TokenNameNumber Script, to see how stuff like that is done, but my programming knowledge doesn't go above simple if-then-else statements, so I quickly abandoned that thought. Welp, seems like I have to just do it by hand, instead. Not that big of a deal.