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 selected dropdown result in chatlog

1473147050

Edited 1473147111
Hi, I'd like to know if it's possible to display the word that is selected in the dropdown. I have a dropdown that shows the names of the various Attributes of a character. Then it shows a dropdown containing the various names of the Skills of the character. These are added to dice for a result. So far so good. I'd like to have the selected Attribute's name displayed in the output that shows up in the chat window. Right now it displays:  Thoth tries something ill-advised. Thoth: rolling 1d10+1d10+4 + 0 ( 9)+( 1)+4+0= 14 I'd like it to instead display: Thoth rolls Intelligence + Athletics. Thoth: rolling 1d10+1d10+4 + 0 ( 9)+( 1)+4+0= 14 Is this a thing?
1473162507
The Aaron
Pro
API Scripter
Not with the Roll Query. An API script could give you something similar by examining the attributes used in the expression. The best you can probably do without one is add labels to the values of the Roll Query. 
1473180597

Edited 1473181338
You could include the name of the skill in brackets when you build the roll query list. This way you could hover over the roll and see in the tooltip what skill(s) was chosen. For (a brief) example: @{selected|token_name} rolls [[ 1d10 + 1d10 + ?{First skill?|Acrobatics, [[@{selected|acrobatics}]] [Acrobatics]|Appraise, [[@{selected|appraise}]] [Appraise] } + ?{Second skill?|Jump, [[@{selected|jump}]] [Jump]|Stealth, [[@{selected|stealth}]] [Stealth] } ]] With a Pro subscription, you could add a Roll Template to a character sheet that might display this directly in chat. I will have to test more to see. EDIT: Modified example to add a second skill choice. Note that you want the roll query prompt of the second choice to be different from the first one, otherwise the roll query will use the first answer again.
Thanks. That worked really well.
1473237855

Edited 1473237964
Tetsuo
Forum Champion
You could use the power cards api and create a (rather long) script that looks like this !power {{ --name|?{What attribute?|acrobatics|bluff} check --?? ?{What attribute?|acrobatics|bluff} == acrobatics ?? Roll| [[1d20 + @{selected|acrobatics}]]  --?? ?{What attribute?|acrobatics|bluff} == bluff ?? Roll| [[1d20 + @{selected|bluff}]]  }} with a result of  or this is the pathfinder system, but I'm sure something similar could be made for whatever system you're using.
1473239148

Edited 1473239200
Ziechael
Forum Champion
Sheet Author
API Scripter
However it is worth noting that use of Power Cards does require the Creator of the game having a  Pro subscription and therefore access to the API!
1473239970

Edited 1473240000
Tetsuo
Forum Champion
Thats true. I just assumed as much since this was in the API forum. :P
1473241190
Ziechael
Forum Champion
Sheet Author
API Scripter
Franky H. said: Thats true. I just assumed as much since this was in the API forum. :P Always worth clarifying that point when the OP has a subscription level other than Pro... just to avoid confusion don't'cha'know :) Also helps others who may come seeking the same info ;) And a mod's job is to point out the obvious sometimes lol
the shame....