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

Putting a template as a result of the selection in a query.

1518018954

Edited 1518019006
Not sure else how to describe what i'm doing but nothing i've tried to make this Ability work, works. This is an example of how it'd work with 1 option, i'd add one for each skill once this one works, but right now it just doesn't do anything but show a dialog with no drop down saying "Acrobatics, &template:simple" ?{Skill Check|Acrobatics, &{template:simple}{{mod=@{Test Bon Bugs|acrobatics_bonus}}} {{rname=**ACROBATICS** }} {{rnamec=Acrobatics }} {{r1=[[{d20,0d1+10}kh1+@{Test Bon Bugs|acrobatics_bonus}]]}} {{normal=1}} }]]
1518019727
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
This is possible, just a pain. If you have to do roll queries for this, then you need to use advanced roll query syntax : ?{Skill Check|Acrobatics, &{template:simple } {{mod=@{Test Bon Bugs|acrobatics_bonus} }} {{rname=**ACROBATICS** }} {{rnamec=Acrobatics }} {{r1=[[{d20 , 0d1+10 } kh1+@{Test Bon Bugs|acrobatics_bonus}]] }} {{normal=1 }} } ]]
Take a look at this&nbsp; <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for</a>... The main problem you are running in to is that each } needs to be HTML encoded as &amp;#125; but this also applies to the , (&amp;#44;) and could further apply to the attributes you are using.
1518019868

Edited 1518019965
I tried what you just posted but I essentially get the same result except it shows "Acrobatics, &{template:simple}{{mod=5}} {{rname=**ACROBATICS** }} {{rnamec=Acrobatics }} {{r1=[[{d20,0d1+10}kh1+5]]}} {{normal=1}}"&nbsp; Essentially the same but with the entire thing.
1518020169
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
I would highly recommend looking into making this as an ability or api command button (depending on if the roll you are attempting exists as an ability on the sheet, or you need to reference global macros or put the macro text straight into the button - note this last option requires some other finagling, but is still much easier) chat menu: &{template:simple} {{name=Skills}} {{desc=[Acrobatics](~CHAR NAME|acrobatics) Put the character's name in place of CHAR NAME or you can put @{selected|character_name} in there to have it be dynamic.
1518020247
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
KidMessiah said: I tried what you just posted but I essentially get the same result except it shows "Acrobatics, &{template:simple}{{mod=5}} {{rname=**ACROBATICS** }} {{rnamec=Acrobatics }} {{r1=[[{d20,0d1+10}kh1+5]]}} {{normal=1}}"&nbsp; Essentially the same but with the entire thing. Yes, because you only have a single option at the moment. Roll query dropdown options don't work with only a single possibility (they display as a text input in that case)
Thanks for your help, took me a while but I ended up with this working monstrosity. Which is essentially a fancy way to do Reliable Talent for DnD Rogues. ?{Skill Check|Acrobatics, &{template:simple&#125;{{mod=@{Test Bon Bugs|acrobatics_bonus}&#125;&#125;{{rname=**ACROBATICS** &#125;&#125;{{rnamec=Acrobatics&#125;&#125;{{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|acrobatics_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Animal Handling,&{template:simple&#125;{{mod=@{Test Bon Bugs|animal_handling_bonus}&#125;&#125; {{rname=**ANIMAL HANDLING** &#125;&#125; {{rnamec=Animal Handling &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|animal_handling_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Arcana,&{template:simple&#125;{{mod=@{Test Bon Bugs|arcana_bonus}&#125;&#125; {{rname=**ARCANA** &#125;&#125; {{rnamec=Arcana &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|arcana_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Athletics,&{template:simple&#125;{{mod=@{Test Bon Bugs|athletics_bonus}&#125;&#125; {{rname=**ATHLETICS** &#125;&#125; {{rnamec=athletics &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|athletics_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Deception,&{template:simple&#125;{{mod=@{Test Bon Bugs|deception_bonus}&#125;&#125; {{rname=**DECEPTION** &#125;&#125; {{rnamec=deception &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|deception_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|History,&{template:simple&#125;{{mod=@{Test Bon Bugs|history_bonus}&#125;&#125; {{rname=**HISTORY** &#125;&#125; {{rnamec=history &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|history_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Insight,&{template:simple&#125;{{mod=@{Test Bon Bugs|insight_bonus}&#125;&#125; {{rname=**INSIGHT** &#125;&#125; {{rnamec=insight &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|insight_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Intimidation,&{template:simple&#125;{{mod=@{Test Bon Bugs|intimidation_bonus}&#125;&#125; {{rname=**INTIMIDATION** &#125;&#125; {{rnamec=intimidation &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|intimidation_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Investigation,&{template:simple&#125;{{mod=@{Test Bon Bugs|investigation_bonus}&#125;&#125; {{rname=**INVESTIGATION** &#125;&#125; {{rnamec=investigation &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|investigation_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Medicine,&{template:simple&#125;{{mod=@{Test Bon Bugs|medicine_bonus}&#125;&#125; {{rname=**MEDICINE** &#125;&#125; {{rnamec=medicine &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|medicine_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Nature,&{template:simple&#125;{{mod=@{Test Bon Bugs|nature_bonus}&#125;&#125; {{rname=**NATURE** &#125;&#125; {{rnamec=nature &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|nature_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Perception,&{template:simple&#125;{{mod=@{Test Bon Bugs|perception_bonus}&#125;&#125; {{rname=**PERCEPTION** &#125;&#125; {{rnamec=perception &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|perception_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Persuasion,&{template:simple&#125;{{mod=@{Test Bon Bugs|persuasion_bonus}&#125;&#125; {{rname=**PERSUASION** &#125;&#125; {{rnamec=persuasion &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|persuasion_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Religion,&{template:simple&#125;{{mod=@{Test Bon Bugs|religion_bonus}&#125;&#125; {{rname=**RELIGION** &#125;&#125; {{rnamec=religion &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|religion_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Sleight of Hand,&{template:simple&#125;{{mod=@{Test Bon Bugs|sleight_of_hand_bonus}&#125;&#125; {{rname=**SLEIGHT OF HAND** &#125;&#125; {{rnamec=sleight_of_hand &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|sleight_of_hand_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Stealth,&{template:simple&#125;{{mod=@{Test Bon Bugs|stealth_bonus}&#125;&#125; {{rname=**STEALTH** &#125;&#125; {{rnamec=stealth &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|stealth_bonus}]]&#125;&#125;{{normal=1&#125;&#125;|Survival,&{template:simple&#125;{{mod=@{Test Bon Bugs|survival_bonus}&#125;&#125; {{rname=**SURVIVAL** &#125;&#125; {{rnamec=survival &#125;&#125; {{r1=[[{d20&#44;0d1+10&#125;kh1+@{Test Bon Bugs|survival_bonus}]]&#125;&#125;{{normal=1&#125;&#125; }]]
1518023095
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Congrats
There's a few formatting things you can do to make that more manageable, by the way. -&nbsp; Set your Template and common flags at the beginning before you start the query; then you don't need to repeat it each time. ie: &{template:simple} {{normal=1}} ?{Skill Check - You can place each "|" on its own line. The drop-down query ignores carriage returns, so you can space it out for easy reading. ie: ?{Skill Check |Acrobatics, ..... |Animal Handling, ..... etc. I have some extreme examples over at PATHFINDER_SHEET_TEMPLATES_USING_SHEET_VALUES