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

extract information of a roll query

Hi, I play the german rpg "Splittermond" (=splinter-moon) with official designed character sheets and templates. Now I want to create a macro, that lists and executes all existing standard skills in my character sheet in a roll query, because I don't want to switch between my character sheet popup and the game board all the time. I have a roll query such as ?{Skills|skill A, value A|skill B, value B} with almost 20 skills and values in one big macro with much extra informartion. When I execute the macro, I get the right values depending on my picked skill, so the math and parsing works. Now I want to embed this into the special template, which needs a name. I'd like to have the name of the skill I chose. I know, that when you use the same roll query in one macro again, you get the infos of the first roll query and don't be asked again. I tried something like {{name=?{Skills}}} , but then I only get the specific values as the name. Is there a way to get i.e. "skill A" instead of "value A", when I repeat that roll query for the name? Or is there another solution I didn't think about?
1584600745
GiGs
Pro
Sheet Author
API Scripter
See my reply to this question early tonight:&nbsp; <a href="https://app.roll20.net/forum/post/8248209/show-my-players-which-attribute-i-rolled" rel="nofollow">https://app.roll20.net/forum/post/8248209/show-my-players-which-attribute-i-rolled</a> This works for simple expressions. But if you end up nesting any special text inside a query (anything containing the symbols },| ) you'll run afoul of html entities, as described here . In that case, you might want to use a Chat Menu . But if your macro is simple, the post I linked at the start should show you how to do it.
Your first link is a good solution if you&nbsp;just use a text for describing your actions.&nbsp; The Chat Menu could be a solution. But can I change those (ugly) big pink buttons as a non-pro member? I didn't really understand that section... More likely I want to use a direct macro for the template with the skill name in the header and the result of the formula in the body. Of course I can use a roll query for the skill-name and another for the formula of the skill, but that's exactly the step I want to avoid. (The html symbols are not my problem and I understood how to manage them...the roll query itself works fine)
As for changing the pink buttons, you can install Stylus and change them to pretty much everything you want to. See here .
1584643634
GiGs
Pro
Sheet Author
API Scripter
Puffke said: Your first link is a good solution if you&nbsp;just use a text for describing your actions.&nbsp; The Chat Menu could be a solution. But can I change those (ugly) big pink buttons as a non-pro member? I didn't really understand that section... More likely I want to use a direct macro for the template with the skill name in the header and the result of the formula in the body. Of course I can use a roll query for the skill-name and another for the formula of the skill, but that's exactly the step I want to avoid. (The html symbols are not my problem and I understood how to manage them...the roll query itself works fine) Unfortunately as a free user you usually cant change those pink boxes. If the character sheet you're using has a rolltemplate,, you could try replacing template:default &nbsp;with the appropriate rolltemplate for that sheet, and the button style might change.&nbsp; To get the skill name in the header, and the result in the formula, you use the same principle as in the linked post: you have to put the header and the result in each 'row' of the query. You will also likely have to deal with html entities that way, but if you know how to manage them, thats okay.