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 .
×

Dropbox for Attribute Use

Greetings! A quick question.  I have looked around, googled and checked through the help files/forums, but couldnt find any information.  I am looking to use a drop down list ?{Attribute Selection|Strength|Agility} etc for the selection of a character specific attribute to use in a roll.  I can't seem to nest them properly.  For example: /roll ((@{Selected|?{Attribute Selection|Strength|Agility} + ?{modifier|0})-1d100)/10 Anyone dealt with this before?  Thanks in advance.
I tinkered around with it a bit, and it looks like, as is, the nesting won't work. However, if you look at the  Macros Reference , you can, instead, give the dropdown values that differ from the text display, so something like this should work. Tested it out myself. /roll ((?{Attribute Selection|Strength,@{Selected|Strength}|Agility,@{Selected|Agility}} + ?{modifier|0})-1d100)/10 Basically, you get both the Strength and Agility Attributes, and let those be the values of the dropdown.
You are awesome man
One additional on that.  Is there a way to print something on the next line that states what Attribute was selected?
Hm. Not sure on that one. The only thing I can think of is having two separate queries, one for the name, and one for the attribute, but that's not ideal. Someone else might have an idea.
Try using Inline Labels , e.g. ?{Attribute Selection|Strength, @{Selected|Strength} [Strength]|Agility, @{Selected|Agility} [Agility]}