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

How to make a query that will label an inline roll?

1722319077

Edited 1722319153
Hey yall! Very new to making macros so please be nice. I'm trying to make a macro for basic skill tests in Shadowrun 5E.  I'm stuck on how to make a query that defines the inline label for the roll. I.E. when the player clicks the macro they will input their dice pool, modifiers, and which skill they are rolling.  I've gotten the rolling/math part working but I can't figure out how to query for the label. [[((?{Ranks|0}+?{Attribute|1}+?{Modifiers|0})d6>5)]] Any help would be greatly appreciated!
Can you elaborate on what exactly you're trying to do? Querying an inline label should be as simple as placing the query within single square brackets in the inline roll, but I'm not sure if that's what you're after.
Tuo said: Can you elaborate on what exactly you're trying to do? Querying an inline label should be as simple as placing the query within single square brackets in the inline roll, but I'm not sure if that's what you're after. as i said i'm very new to making macros so i imagine there is a very simple solution.  What i'm trying to do is make a macro that when the players use it, they will type in the name of the skill they are using and the relevant dice pools, and the macro will spit out the dice result and label the roll with whatever the player typed in as the name of the skill they are using. Hope that clarifies well enough :)
Tony M. said: Tuo said: Can you elaborate on what exactly you're trying to do? Querying an inline label should be as simple as placing the query within single square brackets in the inline roll, but I'm not sure if that's what you're after. as i said i'm very new to making macros so i imagine there is a very simple solution.  What i'm trying to do is make a macro that when the players use it, they will type in the name of the skill they are using and the relevant dice pools, and the macro will spit out the dice result and label the roll with whatever the player typed in as the name of the skill they are using. Hope that clarifies well enough :) Something like this, then?  &{template:default} {{name=?{Skill name}}} {{Successes:=[[((?{Ranks|0}+?{Attribute|1}+?{Modifiers|0})d6>5)[?{Skill name}]]]}}
Tuo said: Tony M. said: Tuo said: Can you elaborate on what exactly you're trying to do? Querying an inline label should be as simple as placing the query within single square brackets in the inline roll, but I'm not sure if that's what you're after. as i said i'm very new to making macros so i imagine there is a very simple solution.  What i'm trying to do is make a macro that when the players use it, they will type in the name of the skill they are using and the relevant dice pools, and the macro will spit out the dice result and label the roll with whatever the player typed in as the name of the skill they are using. Hope that clarifies well enough :) Something like this, then?  &{template:default} {{name=?{Skill name}}} {{Successes:=[[((?{Ranks|0}+?{Attribute|1}+?{Modifiers|0})d6>5)[?{Skill name}]]]}} DUDE! Thank you so much. That worked perfectly. The {{name=?{skill name}} with the template was the part that was eluding me.  You're a hero <3