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

Display an Attribute value base off of a Random Table Roll

This seems like it should be easy enough to do but I am drawing a giant blank, even after looking through all the documentation again. What I want to do in a single macro is roll on a random table, take that result (which is a random attribute really), reference the rolled attribute, and display it for the selected token.
I am not sure if you can do this, but if you can it would be something like Your random table (tablename) would be made of @{selected|attribute1} @{selected|attribute2} etc etc Then your macro could consist of simply: [[ 1t[tablename] ]] It may or may not work
That doesn't work.  The Table Roll is really just a name, it doesn't seem to be referenceable.
1438725355
Ziechael
Forum Champion
Sheet Author
API Scripter
For reference this also doesn't work: [[ @{selected|[[ 1t[tablename] ]]} ]] with the table having things like token_name etc as entries. Tables just aren't meant to be used that way at present :(
The tables are parsed after everything else, the only way to make a table work in a math function is to have it be a real number, then it works. I do hope they change that.