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

Help with Blind Rolls

Hello! I've been looking to use the <a href="https://app.roll20.net/forum/permalink/9616944/" rel="nofollow">https://app.roll20.net/forum/permalink/9616944/</a> trick to make blind rolls, but it's not working for me. The macro seems to be working properly, but the stylus is not working, and i can't see the results of the roll. I need some help, please.
What does your Stylus extension manager page look like? It should look like this: What game are you playing and which character sheet are you using? The attributes that Oosh listed in the thread are for the 'D&amp;D 5E by Roll20' sheet.
1700732216

Edited 1700732289
I'm playing D&amp;D 5E using the 5E by Roll20 sheet. (So it should work right out of the box, but it doesn't.)
1700733806

Edited 1700735510
I use blind rolls but mine, which I thought came from the same source, has additional line breaks in it?&nbsp; Maybe that is the issue (don't know, not my forte) #userscript-broll { &nbsp;&nbsp;&nbsp; display: inline !important; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; } Try that maybe?&nbsp; Another thought - what sites is your style set to work on (I note mine says "everything" at the bottom of the screen)? EDIT: belay the last Number One, just looked at your screen shot again, that URLs starting with works fine and also, Jarren's style has no additional breaks.&nbsp; Got excited for a moment there
Tried doing both, did not work. For reference, this is what i get. (it's in yellow background because i used talk with myself command)
Does it work if you’re not using ‘talk to myself’?&nbsp;
1700774826

Edited 1700774963
No, i tried testing it with a dummy account, and it does not. To be clear, i used the macro, which posts the button in chat, i pressed the button with the dummy account, which sends the message to the GM, and on the GM account, with the Stylus activated, i didn't get the result. I also copied the macro directly from the link posted. There's also <a href="https://wiki.roll20.net/Hidden_Rolls" rel="nofollow">https://wiki.roll20.net/Hidden_Rolls</a> this link, which seems to be the same contribution by the same person.
1700775314

Edited 1700775413
The code for the macro in the link above and the code for the macro in the first link are different. The one in the first link works, the one in the community wiki does not. Thank you all for the help and sorry for the trouble.
The difference being spaces in this line by the looks display: inline !important; damn, should have spotted that.&nbsp; Useful for anyone else that comes this way
Simon G. said: The difference being spaces in this line by the looks display: inline !important; damn, should have spotted that.&nbsp; Useful for anyone else that comes this way Just to clarify, the issue is in the original Tips and Tricks post, there is a missing comma after the '!important': #userscript-broll { &nbsp; &nbsp; display:inline!important } Versus the wiki which includes it: #userscript-broll { &nbsp; &nbsp; display: inline !important; } Spaces do not matter in CSS code. :)&nbsp;
Hi Jarren, I did not know that about CSS, so thank you.&nbsp; I am still curious though, you mention the missing semi-colon after !important but Vincius S has a screen shot (3rd post in this thread) that contains that semi-colon, as does my post, but yours doesn't and yet it is the omission of that semi-colon that is critical?&nbsp; I am so confused :))))
1700864480

Edited 1700864653
In my screenshot I just pasted the code from the original post into Stylus, but I hadn’t actually tested it yet! It was when I tested it that I realized the semicolon was missing.&nbsp; There’s also a chance that a missing semicolon may be ‘ignored’ in some cases (if the browser or other software has any error catching logic built in)… similar to forgetting closing entities in html (&lt;p&gt; … &lt;/p&gt;).&nbsp;
1701213659

Edited 1701213756
Simon G. said: Hi Jarren, I did not know that about CSS, so thank you.&nbsp; I am still curious though, you mention the missing semi-colon after !important but Vincius S has a screen shot (3rd post in this thread) that contains that semi-colon, as does my post, but yours doesn't and yet it is the omission of that semi-colon that is critical?&nbsp; I am so confused :)))) Jarren said: In my screenshot I just pasted the code from the original post into Stylus, but I hadn’t actually tested it yet! It was when I tested it that I realized the semicolon was missing.&nbsp; There’s also a chance that a missing semicolon may be ‘ignored’ in some cases (if the browser or other software has any error catching logic built in)… similar to forgetting closing entities in html (&lt;p&gt; … &lt;/p&gt;).&nbsp; Actually, as stated on my last response to this thread, it was not the stylus script that was broken. The code for the MACRO on <a href="https://app.roll20.net/forum/permalink/9616944/" rel="nofollow">https://app.roll20.net/forum/permalink/9616944/</a> works, the code for the MACRO on <a href="https://wiki.roll20.net/Hidden_Rolls" rel="nofollow">https://wiki.roll20.net/Hidden_Rolls</a> doesn't. You can notice it pretty easily if you copy-paste one of them to a notepad, then copy the other one, select the entire code on the notepad and then paste (overwriting the code before). As you press ctrl-z to undo/redo the paste, you'll quickly notice the difference in the syntax of the codes. Another visual reference below. To me, it seems like a problem in syntax because of nested queries. The wiki code uses &amp;, the forum code &amp;amp; (which is used for nested queries).
1701214279

Edited 1701215724
I would also like to add a tip that should be obvious, but here it goes anyways: you can change the macros references to 'broll' to any other thing entirely (e.g. superroll), and then change the stylus code initial line to '#userscript-superroll' and that word will function essentially as a password. Even if your entire group has that same stylus code enabled, unless they have the same '#userscript-yaddayadda', it will not show it for them on that game, (since the id doesn't match) which can be useful if you're in a group with multiple DM's running different games with blind rolls in r20 for example. I should also add: The way the macro is coded currently is stupid for the current 5e sheet. Maybe it was different when it was first coded, but currently it doesn't work as intended in many ways. First of all, when you make an ability check (say, using Strength), it simply does not work and is wrong, because it calls for proficiency bonus (which ability checks never do) and it also calls 'attribute_bonus' which is not a thing. It should call 'attribute_mod', so unless you rewrite that part of the code to be _mod instead of _bonus, it will never work with ability checks. Next, it doesn't work with skills either, since it always calls and adds proficiency bonus. This is problematic because if the character is not proficient, then it shouldn't call for the proficiency bonus, and if the character IS proficient, the proficiency is already included in the _bonus attribute of that skill, which means you're adding proficiency twice. You can test this out yourself by putting in 10d1 (so it always results 10) and seeing the value of the things added there and what's on the sheet.
1701216275

Edited 1701216553
Should anyone care enough to want to see the code modifications i did so that it works properly, here they are: Blind Roll - Skill Checks and Saves ?{Whisper or Public?|Public, |Dummy,/w Dummy|X,/w X |Y,/w Y } **DM requests a Blind Roll:** [Roll for ?{Roll|Animal_Handling|Arcana|Deception|History|Insight|Intimidation|Investigation|Nature|Perception|Persuasion|Sleight_of_Hand|Stealth|Survival|Strength_Save|Dexterity_Save|Constitution_Save|Wisdom_Save|Intelligence_Save|Charisma_Save|Death_Save}](`/w gm &amp;amp;&amp;lcub;template:default&amp;rcub; &amp;lcub;&amp;lcub;name&amp;equals;?{Roll}&amp;rcub;&amp;rcub; &amp;lcub;&amp;lcub;&amp;commat;&amp;lcub;selected|character_name&amp;rcub; rolls...&amp;equals;&amp;quest;&amp;lcub;Advantage|Normal,1d20|Advantage,2d20k1|Disadvantage,2d20kl1&amp;rcub; + &amp;commat;&amp;lcub;selected|?{Roll}_bonus&amp;rcub;&amp;lsqb;Bonus&amp;rsqb;&amp;rcub;&amp;rcub; &amp;lcub;&amp;lcub;&amp;equals;&amp;lsqb;Result &amp;equals; &amp;rsqb;(&amp;num;&amp;quot; id&amp;equals;&amp;quot;password&amp;quot; style&amp;equals;&amp;quot;display:none&amp;rpar;&amp;lsqb;&amp;lsqb;&amp;lsqb;&amp;lsqb;&amp;lsqb;&amp;quest;&amp;lcub;Advantage&amp;rcub;&amp;rsqb;&amp;rsqb;d1 + &amp;commat;&amp;lcub;selected|?{Roll}_bonus&amp;rcub;&amp;rsqb;&amp;rsqb;&amp;rsqb;(#&amp;quot; id&amp;equals;&amp;quot;password&amp;quot; style&amp;equals;&amp;quot;display:none&amp;rpar;&amp;rcub;&amp;rcub;" style="color:darkred;background-color:white;border:solid 2px darkred;font-size:17px;border-radius: 5px;padding:2px;display:inline-block) Blind Roll - Ability Checks ?{Whisper or Public?|Public, |Dummy,/w Dummy|X,/w X |Y,/w Y } **DM requests a Blind Roll:** [Roll for ?{Roll|Strength|Dexterity|Constitution|Wisdom|Intelligence|Charisma}](`/w gm &amp;amp;&amp;lcub;template:default&amp;rcub; &amp;lcub;&amp;lcub;name&amp;equals;?{Roll} Check&amp;rcub;&amp;rcub; &amp;lcub;&amp;lcub;&amp;commat;&amp;lcub;selected|character_name&amp;rcub; rolls...&amp;equals;&amp;quest;&amp;lcub;Advantage|Normal,1d20|Advantage,2d20k1|Disadvantage,2d20kl1&amp;rcub; + &amp;commat;&amp;lcub;selected|?{Roll}_mod&amp;rcub;&amp;lsqb;Modifier&amp;rsqb;&amp;rcub;&amp;rcub; &amp;lcub;&amp;lcub;&amp;equals;&amp;lsqb;Result &amp;equals; &amp;rsqb;(&amp;num;&amp;quot; id&amp;equals;&amp;quot;password&amp;quot; style&amp;equals;&amp;quot;display:none&amp;rpar;&amp;lsqb;&amp;lsqb;&amp;lsqb;&amp;lsqb;&amp;lsqb;&amp;quest;&amp;lcub;Advantage&amp;rcub;&amp;rsqb;&amp;rsqb;d1 + &amp;commat;&amp;lcub;selected|?{Roll}_mod&amp;rcub;&amp;rsqb;&amp;rsqb;&amp;rsqb;(#&amp;quot; id&amp;equals;&amp;quot;password&amp;quot; style&amp;equals;&amp;quot;display:none&amp;rpar;&amp;rcub;&amp;rcub;" style="color:darkred;background-color:white;border:solid 2px darkred;font-size:17px;border-radius: 5px;padding:2px;display:inline-block) Stylus Script #userscript-password { display: inline !important; } You can change the 'password' instances in all 3 codes for anything you want, so other people that have the same stylus script activated can't see the blind rolls (intentionally or by accident)
1701248832

Edited 1701248867
Oosh
Sheet Author
API Scripter
Vincius S. said: I should also add: The way the macro is coded currently is stupid for the current 5e sheet. I'm glad you found the tip useful, and then said it's stupid. /eyeroll This is why Roll20 can't have nice things... I mean... you can't see the date on that post?
Oosh, dude, i meant no disrespect to you, i was talking about the code only, and only in reference to the *current* 5e sheet. As i mentioned, "Maybe it was different when it was first coded." I don't believe a stupid person could come up with a useful thing like this. I meant it was outdated for the way things are now. Don't take personally something that wasn't meant to be. Also, since you decided to manifest yourself here, let me take the opportunity to thank you for it. I've modified and changed what you did and now it works the way i want it to, to my own needs, but i wouldn't even have known where to start if i didn't have your code first. So thank you.
1701288124

Edited 1701288159
Gauss
Forum Champion
Vincius S. said: Oosh, dude, i meant no disrespect to you, i was talking about the code only, and only in reference to the *current* 5e sheet. As i mentioned, "Maybe it was different when it was first coded." I don't believe a stupid person could come up with a useful thing like this. I meant it was outdated for the way things are now. Don't take personally something that wasn't meant to be. Also, since you decided to manifest yourself here, let me take the opportunity to thank you for it. I've modified and changed what you did and now it works the way i want it to, to my own needs, but i wouldn't even have known where to start if i didn't have your code first. So thank you. Just a bit of advice here: When someone's work is called stupid that is almost the same as calling them stupid.&nbsp; I understand that it is common for people to call things "stupid" or other names, without intending to insult the creator. Simply as an expression to indicate "it doesn't work correctly" or whatnot. But that is a deviation of English rather than what it actually means. To many folks it is as above, an insult.&nbsp; Stating something like: "Maybe it was different when it was first coded" is not going to make it better or negate the insult.&nbsp; In the future, I suggest using less derogatory language.&nbsp;
Alright. English is not my first language, so sorry about that. As stated, not my intention to disrespect.
1701317366
vÍnce
Pro
Sheet Author
Just to add, the wiki is editable by anyone in the roll20 community. If you find information that is incorrect/outdated please update the wiki for the benefit of all.