Difference between revisions of "Hidden Rolls"
From Roll20 Wiki
Andreas J. (Talk | contribs) m |
Andreas J. (Talk | contribs) m |
||
(4 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | {{revdate}} | + | {{revdate}}{{clear}} |
− | + | {{NavMacroDocs}} | |
Roll20 doesn't a straightforward way to create '''hidden/blind rolls''', where the player wouldn't see the result, only the [[GM]]. There are still a few methods to work around it. | Roll20 doesn't a straightforward way to create '''hidden/blind rolls''', where the player wouldn't see the result, only the [[GM]]. There are still a few methods to work around it. | ||
+ | |||
+ | * [https://app.roll20.net/forum/permalink/4922089/ GMRolls that are hidden even from the player that makes the roll.] - vote on the requested feature | ||
=Alternatives= | =Alternatives= | ||
Line 10: | Line 12: | ||
The nature of the macro makes the tooltip information unavailable and avoids rolling 3D dice (because... obviously). It does show the roll expression for both [[player]] and [[GM]], though - so you can see if someone is rolling with advantage or not, or if their bonus doesn't look right, or they suddenly have 200 proficiency bonus. | The nature of the macro makes the tooltip information unavailable and avoids rolling 3D dice (because... obviously). It does show the roll expression for both [[player]] and [[GM]], though - so you can see if someone is rolling with advantage or not, or if their bonus doesn't look right, or they suddenly have 200 proficiency bonus. | ||
− | So I've made this [[macro]] as simple as possible. The players don't need to do anything. The GM needs to: | + | So I've made this [[macro]] as simple as possible. The players don't need to do anything. |
− | + | ||
− | + | The GM needs to: | |
− | + | # install [[Stylus]] | |
+ | # create a Style approximately 3 lines long | ||
+ | # run the macro | ||
− | The Stylus style | + | The Stylus style: |
<pre> | <pre> | ||
#userscript-broll { | #userscript-broll { | ||
Line 43: | Line 47: | ||
==API== | ==API== | ||
{{pro only|section}} | {{pro only|section}} | ||
+ | There are some API that can make hidden rolls: | ||
+ | * [[Script:ScriptCards#Hidden_Roll|ScriptCards - Hidden Roll]] | ||
* [[API:Short_Community_Scripts#Blind_Roll_.28TheAaron.29|Blind Roll]] - by [[TheAaron]] | * [[API:Short_Community_Scripts#Blind_Roll_.28TheAaron.29|Blind Roll]] - by [[TheAaron]] | ||
* [[API:Short_Community_Scripts#Blind_Roll_.28Stephen.29|Blind Roll]] - by Stephen | * [[API:Short_Community_Scripts#Blind_Roll_.28Stephen.29|Blind Roll]] - by Stephen | ||
Line 49: | Line 55: | ||
[[Category:Tips]] | [[Category:Tips]] | ||
[[Category:Macros]] | [[Category:Macros]] | ||
+ | [[Category:Unreleased/Highly Requested features]] |
Latest revision as of 18:03, 5 December 2021
Page Updated: 2021-12-05 |
Macro Creation
- Complete Guide to Macros & Rolls
- q Text Chat
- Dice Reference
- Order of Operations
- Macros
- Token Reference
- Character Reference
- Roll Templates
- Roll Table
Advanced
- Formatting
- HTML Replacement
- Chat Menus
- Hidden Rolls
- Advanced Macro Tips
- API Commands
- Char Sheet Creation
- External tools
Misc.
Roll20 doesn't a straightforward way to create hidden/blind rolls, where the player wouldn't see the result, only the GM. There are still a few methods to work around it.
- GMRolls that are hidden even from the player that makes the roll. - vote on the requested feature
[edit] Alternatives
Contents |
[edit] Blind Rolls(Stylus)
Blind Roll (requires Stylus for GM) by Oosh
The nature of the macro makes the tooltip information unavailable and avoids rolling 3D dice (because... obviously). It does show the roll expression for both player and GM, though - so you can see if someone is rolling with advantage or not, or if their bonus doesn't look right, or they suddenly have 200 proficiency bonus.
So I've made this macro as simple as possible. The players don't need to do anything.
The GM needs to:
- install Stylus
- create a Style approximately 3 lines long
- run the macro
The Stylus style:
#userscript-broll { display: inline !important; }
And the macro, set up for Roll20 5e:
**DM requests a blind roll:** [Roll for ?{Roll|Stealth|Strength|Dexterity|Constitution|Wisdom|Intelligence|Charisma}](`/w gm &{template:default} {{name=?{Roll} Check}} {{@{selected|character_name} rolls...=?{Advantage|Normal,1d20|Advantage,2d20k1|Disadvantage,2d20kl1} + @{selected|?{Roll}_bonus}[Bonus] + @{selected|pb}[Prof]}} {{=[Result = ](#" id="broll" style="display:none)[[[[[?{Advantage}]]d1 + @{selected|?{Roll}_bonus} + @{selected|pb}]]](#" id="broll" style="display:none)}}" style="color:darkred;background-color:white;border:solid 2px darkred;font-size:17px;border-radius: 5px;padding:2px;display:inline-block)
I've kept the Ability list short, I just did the primary Attributes for 5e then threw Stealth in for fun. Most skills are unlikely to see much blind action... I'd assume Stealth is the big one at most tables.
To add skills for the 5e by Roll 20 sheet, all you need to change is the very first Roll Query - put in the skills you want, in the order of usefulness you want. This could be as short as ?{Roll|Stealth|Perception}
. Be mindful of Animal Handling & Sleight of Hand: you'll need to either have the underscores visible in the drop-down, or use a comma: |Animal Handling,animal_handling|
For other systems, it might need some tweaking. You might need to get rid of the Advantage, or tweak how the Attributes are referenced: it's currently set up for [[5e attributes, which is @{selected|<skillname>_bonus}
.
Some other tweaks which would be easy to apply: wrap the button inside a 5e template (npcaction or traits) to prettify it, or chuck a whisper Query in front of it ?{Whisper or public?|Public, |Alice,/w alice |Bob,/w bob |Carly,/w carly }
.
If you haven't popped your head into any of the threads where we've been poking around with nesting entire templates inside API command buttons, you may have noticed a handy little Stupid Trick inside this Stupid Trick - namely, using a Roll Query to fill in an Attribute reference. This is usually a big no-no, but in this case it works. We've escaped the absolute brains out of the Attribute reference, so it's just a jumble of escaped entities and unresolved Roll Queries. But we don't need it to be a working Attribute reference until an entire round of parsing has.... errr.... passed. It's a nifty little trick which does have a big downside - you have to manually click the button after it's created. But I can see it saving a ton of macro code in the right situation.
Anyway, sing out if you need any help adapting this... I know it's hard to read. A tip if you want to make more sense of the macro: paste it into chat, then mouse-over the button it creates. Right click => Copy link location => paste into Notepad. The escaped HTML will all have been parsed into regular macro code, and the button its wrapped in will be gone. Much sanerer!
[edit] API
This section is about a Roll20 feature exclusive to Pro-subscribers (and often to players in a Game created by a Pro-subscriber). If you'd like to use this feature, consider upgrading your account. |
There are some API that can make hidden rolls:
- ScriptCards - Hidden Roll
- Blind Roll - by TheAaron
- Blind Roll - by Stephen