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

Macro Question

There are times, as a GM, that I want to hide what my NPC's to hit bonus is, but I still want to be able to show the players that they have been hit or missed. Is there a way to create a GM macro that hides the roll and to hit bonus, but still shows the player whether or not it's a hit or miss?
You could use the @selected and @target to compare. There should be some examples floating around
Problem is any macro renders the numbers out on the screen currently, with the possible exception of a rollable table. Hmm, that might work actually. Create a rollable table with one value in it that's the roll of the NPC. That should return just the final value, I think. Don't quote me on that though, as I haven't played with them all that much.
Half-assed, but you could roll it secretly first and just use a different Hit or Miss macro, manually. Inelegant but technically gets the job done. Might even have fun with it with a few different flavor text describing how badly they missed.
Yeah, Mark, I'm probably going to have to run a hit/miss macro. Second question: Using the @selected and @target macro, can I get it to compare one against the other? For example: I'd think that this would show if it's a success or failure for this macro /roll 1d20+@{selected|AttackAC}>@{target|AC}, However, it doesn't. It shows the roll, and it shows the relevant attributes, but no success or failure.
You're missing a bracket on the first half to combine the dice roll and the attribute into a single value to be compared in the ">" expression.. /roll {1d20 + @{selected|AttackAC} }>@{target|AC}