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

Re-using roll queries in a macro

Hey guys, a newbie here. I'm trying to create a skill check macro for a HackMaster game to avoid looking up skill values on the character sheet, and to have a pretty output. The HM concept of a skill check is that a d100 throw modified with check difficulty shall be below the given skill mastery level of the character, so the backbone of a Listening check would be something like this: &{template:default} {{name=Skill Check}} {{outcome=[[{d100+?{Difficulty|Trivial,-90|Easy,-80|Average,-40|Difficult,0|Very_Difficult,10}}<@{ character |skill_listening}]] success}} I could extend this to include all relevant skills in a nice skill selector: &{template:default} {{name=Skill Check}} {{outcome=[[{1d100 + ?{Difficulty|Trivial,-90|Easy,-80|Average,-40|Difficult,0|Very_Difficult,10}}<?{Skill|Acting,16| long list here |Weather_Sense,22}]] successes}} Its output is something like this: Skill Check Outcome 1 successes It's almost there, but not quite yet 1. I tried to display the selected skill, the mastery level, and difficulty so that the output is something like this: Skill: Acting Mastery: 16 Difficulty: Average Outcome: 1 success but all my attemtps were in vain. How can I re-use the values selected in a previous query without putting up another? Can someone help me out on this? 2. I understand there is no way to display the two dropdown at the same time without using an API. Is that correct? 3. Is there a way to display only the word "success" or "failure" without the boolean resulting from the comparison? Many thanks for any help!
Zumukich said: How can I re-use the values selected in a previous query without putting up another? Here's one way to do this: &{template:default} {{name=Skill: ?{Skill|Acting, [Acting] (16)|Weather_Sense, [Weather_Sense] (22)|etc.} }} {{outcome=[[ {1d100 + ?{Difficulty}}<[[0 + ?{Skill}]] ]] successes}} There's also another way that involves Advanced Roll Queries . 2. I understand there is no way to display the two dropdown at the same time without using an API. Is that correct? Even the API is unable to change the fact that only one Roll Query can be worked through at a time. 3. Is there a way to display only the word "success" or "failure" without the boolean resulting from the comparison? Create two Rollable Tables ; one named Result-0 and another named Result-1. Give Result-0 one Table Item named "Failure". Give Result-1 one Table Item named "Success". Use {{outcome=[[ 1t[Result-[[ {1d100 + ?{Difficulty}}<[[0 + ?{Skill}]]] ]]]] ]] }} (for whatever reason, those extra closing inline roll brackets are needed.)
Thank you very much for your quick and most helpful reply! With this information I was able to come up with something like this: &{template:default}   {{name=Skill check}}   {{skill=?{Skill|Acting, [Acting] (16)| etc. etc. etc. |Weather_Sense, [Weather_Sense] (22)} }}   {{difficulty=?{Difficulty|Trivial, [Trivial] (-90)| etc. etc. |Very_Difficult, [Very Difficult] (10)}}}   {{outcome=[[ {1d100 + ?{Difficulty}}<[[0 + ?{Skill}]] ]] successes}} which indeed is very close to what I wanted originally (i.e. to re-use roll query results output to display the skill used and the difficulty along with the outcome). I haven't yet tried the rollable table (I guess I have to ask our GM to create it) for the last item, but I'm sure it will work like a charm too.
Great!