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

Help with an html replacement roll

I've looked at the advanced usage for roll queries , and it's a little over my head, so I'm seeing if someone can help show me what I'm doing wrong. I'm wanting to make an inline roll which adds a character's Survival skill to a 1d20 roll.  But I'm wanting to do this without using "selected" or "target," but rather from a list of player names.  So, with an individual character, the roll looks like this: [[1d20+@{Varcan|survival}]] This works just fine, but then I want to make a roll where I can choose from the characters with a dropdown query.  So I came up with this: [[1d20+@&#123?{Who?|Varcan|Dorian|Fitstan|Lucian}|survival}]] But then I only get the d20 roll, it doesn't add the bonus. Where am I going wrong? EDIT:  Looking at the above code, there should be a "&125;" after "survival."  Seems that the forum ate some of my HTML replacements.
1505393015

Edited 1505393066
Did some poking around and was ending up with the same results as yourself. While I'm no macro genius, it's looking like it may not be feasible. That being said, there is a work around that can be done: rolling each character's check and putting in a template for organization purposes: /w gm &{template:default} {{name=Survival Checks}}{{Varcan:=[[1d20+@{Varcan|survival}]]}}{{Dorian:=[[1d20+@{Dorian|survival}]]}}{{Fitstan:=[[1d20+@{Fitstan|survival}]]}}{{Lucian:=[[1d20+@{Lucian|survival}]]}} You'll end up with an output something like below. Then you can just reference the desired character you wanted to roll for.
Due to the order of operations in the chat window, you cannot use a query to determine part of an attribute or ability. You will need to use ?{Who? |Varcan,@{Varcan|survival} |Dorian,@{Dorian|survival} |Fitstan,@{Fitstan|survival} |Lucian,@{Lucian|survival} }
Ok, that seems to be working, thanks, Kyle!