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

Displaying a label in /em but using macross for roll

Hi all, Again another hard to describe. I’ve done a macro that lets me choose modifiers to my rolls, for example, +10 willpower against magic as a query basically asking if I qualify. This is used in the /me bit of to give the value, so I’ve done 10 [for being against magic] so if I say yes it displays the modifier and then the text. This then also goes into the roll bu doesn’t effect it. Is it possible to just display the text in the chat before the roll and only the number in the roll without doing individual sets for each.  So the /em would say for example willpower 40 with a bonus against magic then in the roll it would be 40+10? Would using ! infront of the text work or does that block it from the chat totally?
This is what I currently have:  /me strikes out at @{target|character_name} with a skill of @{Furdil Rokinson|WS} with ?{Orc, Goblin or Hob|No, 0[no grudge]|Yes, 5 [thanks to grudge born fury]}, ?{Guarded|No,0 [not guarded]|Yes, -10 [guarded and ready to parry]}, ?{All out|No, 0[ normal attack]|Yes, 20 [an all out attack]} thats ?{Charge|No,0[already taking place]|Yes,10[he's charging into]} with @{target|character_name} ?{outnumber|No, 0 [on a 1 to 1]|2:1, 10 [already in a fight]|3:1, 20 [already upagainst it]}
1591138855
GiGs
Pro
Sheet Author
API Scripter
Where does the roll go in the above example? When you use a query, you can include the query again later in the macro and it will have the same value. You've set up the queries as valid in rolls, so you could just do something like /me strikes out at @{target|character_name} with a skill of @{Furdil Rokinson|WS} with ?{Orc, Goblin or Hob|No, 0[no grudge]|Yes, 5 [thanks to grudge born fury]}, ?{Guarded|No,0 [not guarded]|Yes, -10 [guarded and ready to parry]}, ?{All out|No, 0[ normal attack]|Yes, 20 [an all out attack]} thats ?{Charge|No,0[already taking place]|Yes,10[he's charging into]} with @{target|character_name} ?{outnumber|No, 0 [on a 1 to 1]|2:1, 10 [already in a fight]|3:1, 20 [already upagainst it]} /roll 1d100<[[   @{Furdil Rokinson|WS} +  ?{Orc, Goblin or Hob} +  ?{Guarded} +  ?{All out}   +  ?{Charge} +  ?{outnumber} ]] You'll have to check the math works out, i just guessed how it should go.  Did I understand the question?
That’s part one of the question I guess. In the text bit above the roll it’s displays in a really messy way. Is there a way to do the roll without having the text in [] initially so it just say + 10 due to Grudge born fury instead of displaying +10 [due to grudge born fury]?
For some reason it didn’t copy the roll across. Must be as I’m on my phone not a laptop. Cheers so far! 
1591156149

Edited 1591156427
Oosh
Sheet Author
API Scripter
Edward C. said: That’s part one of the question I guess. In the text bit above the roll it’s displays in a really messy way. Is there a way to do the roll without having the text in [] initially so it just say + 10 due to Grudge born fury instead of displaying +10 [due to grudge born fury]? If you want natural language and different text for whether or not there's a bonus, you would need to double up on queries - one set of questions for the number to use in the roll, and another for the text in the emote. The way you currently have it with the [Labels] is the best way to stop the text getting in the way of the roll. Another way to do it is to move the text outside the query, but then you get less natural language as you get "+0 bonus" and that kind of thing: /me strikes out at @{target|character_name} with a skill of @{Furdil Rokinson|WS} with +?{Orc, Goblin or Hob|No,0|Yes,5} grudge bonus, ?{Guarded|No,0|Yes,-10} guarded penalty, ?{All out|No, 0|Yes, 20} All Out bonus, etc. etc. It depends on how attached you are to that emote every time you swing, I guess. Since you have the text as [Inline Labels] you can read it on mouseover of the roll anyway. There is a way to pull the number out of the queries using $[[0]] and leave the flavour text behind. Unfortunately the numbers can't be used in a further operation this way, so you wouldn't be able to add your modifiers to the roll.
Could I do it off nester queries do you think? Tried this morning but can’t get it to work, something like, charge? If yes charges in for +10(this is where I came unstuck as it wouldn’t default the query to 10) against (target) with a grudge fury bonus of 0 (again wouldn’t let me enter a default. 
1591170449
Ziechael
Forum Champion
Sheet Author
API Scripter
With queries you need to remember one simple thing: the query is a direct replacement for a section of a macro . Whatever your result is going to be is what is going to be in the end result. For example: /me attack with a ?{What|Banana,3 [Banana]|Sharp wit,their scathing wit [7]} Would result in: /me attack with a 3 [Banana] or /me attack with a their scathing wit [7] So what you need to do is find the optimal point of divergence and place your query there. In your example it seems like you can only have one result so shouldn't need to endure the agony of query nesting. Could you give an example of an ideal result based on your current query results that we could reverse engineer to make suggestions? What do the rolls need to look like? What system is this for? What sheet are you using? :)
So we aren’t using a sheet sadly. Ideally I’d be looking for :- {charge?}Yes, charges in with {charge default to 10} /r 1D100<[[WS+{mod}
Here's what I have so far. I haven't built the roll as yet: ?{charge|yes, charges into @{target|character_name } for ?{chargebonus|+10} with weapon skill of @{Furdil Rokinson|WS} with grudge born fury bonus of ?{Orc, Goblin or Hob|No, 0|Yes, 5} ?{All out|No, with a normal attack|Yes, with a all out attack } bonus of (allouta|yes, +20|No, 0}}|no, stikes @{target|character_name } with weapon skill of @{Furdil Rokinson|WS} with grudge born fury bonus of ?{Orc, Goblin or Hob|No, 0|Yes, 5} and if outnumbered a bonus of ?{Out|1:2, 10|1:3, 20} Roll will probably be /r d100<([[ @{Furdil Rokinson|WS}+?{All out}+?{chargebonus}+?{orc, Goblin or Hob}+?{All out}+?{Out}]])