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

Descriptive text in my Attribute Roll when using Queries

1550966717
Rogue
Pro
Marketplace Creator
So with help I have been able to have the query look up the attribute and roll the correct dice for the character's attribute roll, but I am having a hard time with adding descriptive txts to the roll result.  ?{Attribute Check|Strength,[[@{strength_dice}]]|Dexterity,[[@{dexterity_dice}]]|Body,[[@{body_dice}]]|Perception,[[@{perception_dice}]]|Intelligence,[[@{intelligence_dice}]]|Willpower,[[@{willpower_dice}]]|Charisma,[[@{charisma_dice}]]} This works here to roll the correct dice but I would love for each one to actually tell you what we are rolling for, like the normal one I have integrated into the Demon Gate sheet like this one does... &{template:default} {{name=@{character_title} Attribute Roll}}{{Body Result = [[@{selected|body_dice}]]}} Can anyone assist please? 
1550968476
Wes
Pro
Sheet Author
You can label an inline roll (the double square brackets) by using single square brackets inside of the inline roll. This becomes visible when you mouse over the roll result in the chat panel. ?{Attribute Check|Strength,[[ @{strength_dice} [Strength Dice] ]]|Dexterity,[[ @{dexterity_dice} [Dexterity Dice] ]] } For use with a roll template you will have to just label the roll after the result. Roll templates work off of a static apples=apples format. So you could do something like: &{template:default} {{name=@{character_title} Attribute Roll}} {{Attribute Check = ?{Attribute Check|Strength,[[ @{strength_dice} [Strength Dice] ]] **Strength**|Dexterity,[[ @{dexterity_dice} [Dexterity Dice] ]] *Dexterity*} }} Image showing the above:
1550968717
GiGs
Pro
Sheet Author
API Scripter
You should just be able to add text before each pipe |, or after the comma, like ?{Attribute Check|Strength,[[@{strength_dice}]] This is a Strength Roll|Dexterity,This is a DEX roll [[@{dexterity_dice}]]|Body,[[@{body_dice}]]|Perception,[[@{perception_dice}]]|Intelligence,[[@{intelligence_dice}]]|Willpower,[[@{willpower_dice}]]|Charisma,[[@{charisma_dice}]]} Have you tried it? What descriptive text do you want to add?
1550976929
Rogue
Pro
Marketplace Creator
Thanks so much guys. Yep Wes has it right, that is pretty much all I was trying to show was the description in the chat roll.