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 .
×

Question about roll queries and modifiers

Hi there ! I tried to find the answer for this, I'm pretty new with all this, but I was able to get a good beginner grasp on how Roll20 works with his html. But I'm in a pinch right now. One of my player would like to be able to enter a free-text query, which I'll do using ?{Number|} and then [[?{Number}d4!+@{attributes}]] But it should be inside another query that'll list every skills his character have, so I don't really get how to make it functionnal. It works when I do it alone tho Here's what it looks like right now : /em launch ?{Skill| Data Link, Data Link on ?{Who ?|   Player1, Player1 ! |   Player2, Player2 ! |   Player3, Player3 ! } | Virus Exploit, an Explosion of ?{Virus|  } Virus for [[?{Virus}d4!+@{Magic}]] !  } It seems to ask for how many, but then, whenever I try to make the calcul process, it cant. I'm fully aware that the problems lie here :    [[?{Virus}d4!+@{Magic}]] But even if I try to write it like that : [[?{Virus}d4!+@{Magic}]] it doesn't work.. Sorry if it's dumb, but it's been bugging me for a day and I can't seem to find the answer on my own. Thanks for your time !
1620722635

Edited 1620722819
Ziechael
Forum Champion
Sheet Author
API Scripter
If this: [[?{Virus}d4!+@{Magic}]] is nested within a query you'll only need to escape the } of the Virus query: [[?{Virus}d4!+@{Magic}]] The problem you'll have is that if the result of the original ?{Virus} query is text you won't get the option to then define a number for the roll so you'll either need to have the query be a number based result or two queries (FYI: I defaulted the Virus Dice to 1): Virus Exploit, an Explosion of ?{Virus|  } Virus for [[?{Virus Dice|1}d4!+@{Magic}]] !  Side note: when you are wanting a query with a blank input box (free-text) you don't need to do ?{Query|}, simply running ?{Query} will give the same result with less html when nested ;)
Ziechael said: If this: [[?{Virus}d4!+@{Magic}]] is nested within a query you'll only need to escape the } of the Virus query: [[?{Virus}d4!+@{Magic}]] The problem you'll have is that if the result of the original ?{Virus} query is text you won't get the option to then define a number for the roll so you'll either need to have the query be a number based result or two queries (FYI: I defaulted the Virus Dice to 1): Virus Exploit, an Explosion of ?{Virus|  } Virus for [[?{Virus Dice|1}d4!+@{Magic}]] !  Side note: when you are wanting a query with a blank input box (free-text) you don't need to do ?{Query|}, simply running ?{Query} will give the same result with less html when nested ;) Thanks a bunch, it was really understandable for me ! It's kind of hard when you know nothing haha. Thanks again for answering :)
1620807705
Ziechael
Forum Champion
Sheet Author
API Scripter
Happy to help, this stuff can get pretty complex, pretty quickly! Enjoy :)