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

3d d20 failure

Hi, this is my very first post, & please forgive me if i am repeating a covered issue. Yes, i did peruse the topics but could not really tell if the problems encountered were the same as the one i am seeing. But it seems many of us are having fairly similar issue here  :)  I am pretty new to using macros, but have been working very hard at learning them.  Unfortunately i keep running into conflict with the 3d dice, particularly d20.  When a macro gets very complicated, certain 3d dice rolls just start disappearing.  Yes, they still get counted in the equation write up in chat, it is just that the dice doesn't roll on the VTT.  The particular dice that this seems to happen with 99% if not 100% of the time is d20.   I do not know why this happens, but my gut keeps telling me that the d20 has a longer roll animation than the other dice, and this some how may be related to the problem.   It also seems that sometimes i can correct this problem by streamlining my macro, or just deleting it & starting over from scratch after my testing is done.  It is as if the editing process is like erasing pencil marks on a piece of paper -each erasure mark dirties the sheet until it eventually becomes illegible. But some triggers -nothing seems to help.  I literally have to be careful about even including attack & damage in the same macro, because it appears to overwhelm the 3d d20 so easily! Sooo...  any insight here would be great! Goblintrain  :)
Could you provide an example of a macro where 3D dice are failing to roll? Thanks.
1451336959
Pat S.
Forum Champion
Sheet Author
Sorry to hear you are having problems. Can you post the macro you are having problems with? I'm going to move this thread to the specific use forum so that more eyes will take a look at it also.
sure. Lemme fish one up.  Unfortunately, several of the variables here are specific to the particular character sheet i am using, but hopefully it is still readable.  This is for an AD&D1e game. Twin-Strike /em -@{name} howls with bloodthirsty glee, swinging both morning stars simultaneously on the hapless @{selected|token_name} rolling... [[1d20cs20cf1 +@{MeleeBonus}]] vs AC, pulverizing for... [[@{Double-Mace} +@{DmgBonus}*2]] crushing trauma upon a successful hit! Twin-Throw /em -@{name} slows his breathing & focuses his energy -hurling both his morning stars at @{selected|token_name} in one double-pronged attack, rolling [[1d20 +@{RangedBonus}]] vs AC and bludgeoning for [[@{Double-Mace} +@{DmgBonus}*2]] crushing trauma upon a successful hit! Surprise-Attack &{template:default} {{name=Surprise Attack!}} {{-@{name} makes a surprise attack on @{selected|token_name} negating @{selected|token_name}'s defense bonus & shield bonus}} {{Attack Roll: =[[1d20 +?{Combined Hit Modifiers|0}]] to hit vs target AC}} {{[[?{Combined Weapon Damage|4d4} +?{DmgBonus|@{DmgBonus}*2}]] crushing damage in a savage Strike!}} Any of these three triggers, the 3d d20 works just fine if i separate attack & damage into different macros.  It is when attack & damage are combined that the 3d d20 stops appearing.  And like i said, the equation still fires correctly in chat, just not on the VTT. Thank you guys for responding so quickly!  I am very impressed!  :)
1451488478
Pat S.
Forum Champion
Sheet Author
I've looked over the macros and had another person look them over and they are all fine (as you indicated) in the way they are written. I have a few things to ask you to do. First thing is to check your video card drivers and make sure they are the latest stable driver for it. 3D dice runs on the hardware acceleration of the graphics card and if the drivers are outdated, you could be experiencing some problems with that. Have you cut and pasted one of those macros in the chat straight instead of using the macro button? It is a way to remove a possible variable for the use. You indicate it shows in the chat fine but need to know if it runs properly straight from the chat. I was given a few suggestions but not sure if they would help. You can try them and see. Make a copy of a macro then remove all the fluff text so that only the inline rolls are left and see what happens. Next suggestion is to put the inline rolls all on one line. The third suggestion was to put them all in the same inline block and see if it happens. It is all about getting a minimal reproducible case. If none of the above helps or works, let's run through the  Steps 1-3 of our Solving Technical Issues wiki page, taking special care to temporarily disable all browser add-ons and extensions, temporarily pause your anti-virus, and try switching browsers (for Chrome/Firefox specific issues) to see if one of those components is causing the problem. If all of that fails, please follow Step 4 , including providing all of the necessary information, so that we can further assist you. If we get to the point of you having to post step 4 information, I will move this thread over to the bugs and technical forum.
Multiple nested inline rolls will stop the 3D dice from working as I described  here .  Do the attributes you are referencing happen to be inline rolls? 
Ok, i can't identify any one thing, but today i went back, & used cut/paste the text i posted here back into fresh macros & all three of them worked just fine, producing the 3d d20 on the VTT. While it's nice that it is working today, i still have no idea why it went wrong in the first place or how to keep it from happening in the future.  What is odd is that sometimes remaking the macro seems to work, sometimes not.  Today it did tomorrow when i log back in, who knows? I'm afraid i am not too good at scientific process  :)
Ed, in the past i had been filling some of the fields in the character sheet attributes with [[x]] because i was using dice equations like 1d11-1 which sometimes created order of operation errors.  I have since figured out that (x) soft brackets in the macro equation could be used to solve the problem without the complications of the [[x]] square brackets.  However, the problem i posted about was not that the d20 rolls weren't activating or getting counted, it was just the absence of the 3d dice animation, so i don't know if nestled brackets is the problem.  However, they were enough of an issue that i removed all of them within the attribute fields.  Similarly i removed the +/- signs & replaced them with absolute values because otherwise it is easy to get ++/-- computations that will monkey the equation.
My post was about the actual animation of the dice. The rolls get figured.
Something i am just now realizing may have sometimes been the culprit here was that if my macro equation had a non-3d dice aspect, it would cause the d20 to not appear.  For example, sometimes i was expressing my STR "to-hit" bonus as a dice value -say, 1d3 when it was +2. If i plotted the dice as [[1d20 + @{MeleeBonus}]] it would calculate the roll but not show the d20 animation.  Once i switched the MeleeBonus to a straight 2, it began showing the dice again
That makes sense, although you would hope that it would still roll the regular die. The 3D dice engine is not always reliable. I wish they would fix the multiple inline roll issue because I love seeing the 3D dice.