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

Select Attribute and enter modifiers in blind roll macro?

I want an “In Bar” macro button that all my players can see, that will allow them to send me a blind roll (/broll) and based on one of their Attributes which they would select from a pop-up menu and then also allow them to enter a modified value of the skill in a second pop-up, then roll the dice and whisper to GM reporting the character who rolled, what skill they rolled and what the result was (under skill number = success, over skill number = failure). I already have simple macro that do the skill rolls — for example, here’s the one I use for  in my game Recognize skill: /emas studies the newcomer... !broll {1d20}<?{Modified skill level|@{rec}} But I have more skills that could be done with a blind roll than I want to feature as Token buttons. So I thought it would be cool if players could have a universal blind roll button where they could choose the skill from a pop-up, modify the skill level based on the situation, and then display the results to me (the GM) only. That’s because they’re all “inquiry” type skills and I may not want the players to know they’ve fumbled (especially). Doable? Thanks in advance, M.
1509812948

Edited 1509812966
Sure, you'll just need to write a Drop-Down Roll Query . I would use a second Roll Query to handle the modifier, e.g. !broll 1d20<[[?{Skill|Recognize, @{rec}|Perception, @{per}|Acrobatics, @{acr}|etc.} + (?{Modifier|0})]]
1509927944

Edited 1509928534
Alas! Doesn't work. Got the dreaded "TypeError: Cannot read property 'substring' of undefined" error. I substituted all of my skills and attributes in the string. Looks like this: !broll 1d20<[[?{Skill|Awareness, @{awa}|Recognize, @{rec}|Intrigue, @{int} + (?{Modifier|0})]] Sure looks like it should work. Any ideas? Maybe it doesn't like the !broll? Thanks so much for helping.
1509956500

Edited 1509956520
Malcolm W. said: Alas! Doesn't work. Got the dreaded "TypeError: Cannot read property 'substring' of undefined" error. I substituted all of my skills and attributes in the string. Looks like this: !broll 1d20<[[?{Skill|Awareness, @{awa}|Recognize, @{rec}|Intrigue, @{int} + (?{Modifier|0})]] Sure looks like it should work. Any ideas? Maybe it doesn't like the !broll? Thanks so much for helping. I could be wrong but looks like your are missing a bracket to close the query for Skill (unless its a html replacement needed item or !broll) !broll 1d20<[[?{Skill|Awareness, @{awa}|Recognize, @{rec}|Intrigue, @{int}} + (?{Modifier|0})]]
Thanks, I'll give it a shot tonight when I get home!
Bah! Still doesn't work — same error message as before. Thanks for trying, though!
Just making sure, are you using this as a character ability or a global macro? If a global macro, you are missing a keyword for each attribute. Use this instead !broll 1d20<[[?{Skill|Awareness, @{selected|awa}|Recognize, @{selected|rec}|Intrigue, @{selected|int}} + (?{Modifier|0})]]
1510018396

Edited 1510054843
Thanks, Kyle. That works — almost. The pop-ups behaved as expected now, but the result in the chat window did not. I got:  "(From GM): (GM) secret roll sent to GM (1d20<$[[0]])" The message is highlighted in yellow, as a secret roll should be, but the dice rolls are not shown. If there's a way I could indicate the character's name in the chat result, that would be even better. EDIT: I forgot to mention I've tried the above macro as both a global macro and a character ability and I get the same result in the chat widow regardless.