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

Multiple select with only one query help

1587644190

Edited 1587646393
Hello everyone, i'm trying to make a macro which allows me to make only one query and then create a roll based on that. the one i wrote is this: &{template:pc} {{showchar=[[1]]}} {{charname=Ike}} {{name=Prova di ?{Prompt:|Acrobazia, Acrobazia | Percezione, Percezione | Con-Natura, Conoscenze Natura}}} {{type=skill}} {{roll=[[d20+ ?{Prompt:|Acrobazia, @{Ike|acrobatics}  | Percezione, @{Ike|perception}  | Con-Natura, @{Ike|knowledge_nature}} ]]}} {{descflag=1}} {{desc=Prova di Abilità}} {{shownotes=[[1]]}} {{notes=notes}} I found on forum that if i assign the same name to a query the script assume is the same, but it assign the first value in the beginning and never change. so the result is a d20 roll plus a string of text instead of the numeric value. Is there a way to solve this or i have to multiple prompt everything in this kind of macro? i would still like to use this template Thank you
1587646685
The Aaron
Roll20 Production Team
API Scripter
Repeated Roll Queries will use the same "value" for each identical prompt, they won't choose a new value based on the previous choice's label.  Your only option for having a single prompt is to make the value work for both situations.  The usual way to do this is by making the text a Roll Tag and including the number: &{template:pc} {{showchar=[[1]]}} {{charname=Ike}} {{name=Prova di ?{Prompt:|Acrobazia, [Acrobazia] (@{Ike|acrobatics}) | Percezione, [Percezione] (@{Ike|perception}) | Con-Natura, [Conoscenze Natura] (@{Ike|knowledge_nature})}}} {{type=skill}} {{roll=[[d20+ ?{Prompt:} ]]}} {{descflag=1}} {{desc=Prova di Abilità}} {{shownotes=[[1]]}} {{notes=notes}}
1587648424

Edited 1587648665
It works!!!. Unfortunately the template doesn't work. I have to find out why Thank you EDIT: as unsaid, missing one bracket. Thank you again