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

Additional 1d4 for ability checks of specific races

1593140895

Edited 1593140984
I'm trying to make a macro that incorporates a Vedalken's Tireless Precision bonus in an ability skill roll and I'm having a bit of trouble with it... here is the macro (using investigation skill): @{wtype}&{template:simple} {{rname=^{investigation-u}}} {{mod=@{investigation_bonus}}} {{r1=[[@{d20}+@{investigation_bonus}@{pbd_safe}]]}} {{query=1}} ?{Advantage?|Normal Roll,&#123&#123normal=1&#125&#125 &#123&#123r2=[[0d20|Advantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[@{d20}|Disadvantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[@{d20}}+@{investigation_bonus}@{pbd_safe}]]}} {{global=@{global_skill_mod} ([[1d4[Tireless Precision]]])}} @{charname_output} I can't seem to figure out what I'm doing wrong... any help would be appreciated :)
1593141413
GiGs
Pro
Sheet Author
API Scripter
I dont know the rolltemplate, or what the tireless precision bonus does, but if you're putting it in the right place, you probably need to include a plus sign, something like: {{global=[[@{global_skill_mod}+ 1d4[Tireless Precision] ]]}} But maybe it should go in the bit before it, something like: =[[@{d20}}+ 1d4[Tireless Precision] + @{investigation_bonus}@{pbd_safe}]]}} I added it before the investigation bonus, because i dont know what pbd_safe contains. If neither of these works, I'd recommend finding the thread for this sheet, whichever it is. Asking in that thread will  ensure the question gets seen by people familiar with the sheet and rolltemplate.
1593143330

Edited 1593143369
It's actually 5e OGL D&D sheet.The Vedalken is from Guild Master's Guide to Ravnica. I actually tried adding a plus sign before the Tireless Precision roll but it messes up the image when tick the global modifier for Guidance (causing to show two pluses)
1593143572

Edited 1593144245
I think Tireless Precision is like an additional Guidance... Tireless Precision. You are proficient in one of the following skills of your choice: Arcana, History, Investigation, Medicine, Performance, or Sleight of Hand. You are also proficient with one tool of your choice. Whenever you make an ability check with the chosen skill or tool, roll a d4 and add the number rolled to the check's total. Tried adding it in the @d20 line but it causes it to roll the d4 again when rolling for advantage or disadvantage which guidance does not..
1593144301
GiGs
Pro
Sheet Author
API Scripter
Looks like you'll need help from someone who knows how the template works.
Thanks... I'll also try to look it up to the sheet thread..
1593157604

Edited 1593158194
Oosh
Sheet Author
API Scripter
This should work: @{wtype}&{template:simple} {{rname=^{investigation-u}}} {{mod=@{investigation_bonus}}} {{r1=[[@{d20}+@{investigation_bonus}@{pbd_safe}]]}} @{rtype}+@{investigation_bonus}@{pbd_safe}]]}} {{global=[[@{global_skill_mod}+1d4[Tireless]]]}} @{charname_output} Just need some square brackets around your global to get rid of the + sign. Also, I put @{rtype} in there instead of the contents of rtype as you had it - if you have rtype set to Query it will function in the same way, but now it will follow your sheet setting if you change it. Looks tidier too! This will remove the tooltip info from your Global rolls, but it's only for one skill. The other option is to put the square brackets around the 1d4 and put up with the extra + sign when you're not using any other global mods, but then you'll have 3 numbers to add together manually... up to you. GiGs said: I added it before the investigation bonus, because i dont know what pbd_safe contains. @{pbd_safe} is set to "cf0cs0" when the Variant Proficiency Dice rule is used. Otherwise it does nothing!
1593158495
GiGs
Pro
Sheet Author
API Scripter
Oosh said: GiGs said: I added it before the investigation bonus, because i dont know what pbd_safe contains. @{pbd_safe} is set to "cf0cs0" when the Variant Proficiency Dice rule is used. Otherwise it does nothing! Thanks. I was considering putting the d4 between the skill and pbd_save, but seeing them so close I thought it might be something connected to the roll, and if i had put the dice in there it would have broken something. Nice to see my instinct was correct.
1593160829

Edited 1593160968
Oosh
Sheet Author
API Scripter
No problem, I only figured out what it did a couple of days ago after a year of wondering! I'm not really sure why suppressing critical fumble/success colours is important for variant proficiency dice, but apparently it is. I mean technically there are no critical fumbles or successes for Ability Checks or Saving Throws in 5e RAW, so it should probably have the value cs0cf0 regardless of the variant rule and also apply to the d20 roll.
1593165376

Edited 1593166653
Oosh said: This should work: @{wtype}&{template:simple} {{rname=^{investigation-u}}} {{mod=@{investigation_bonus}}} {{r1=[[@{d20}+@{investigation_bonus}@{pbd_safe}]]}} @{rtype}+@{investigation_bonus}@{pbd_safe}]]}} {{global=[[@{global_skill_mod}+1d4[Tireless]]]}} @{charname_output Thanks for the Code... it does indeed solve the plus problem though indeed the tooltip of the global skill modifier does indeed go missing as you've pointed out, I don't really want to inconvenience the DM looking up to what the mysterious value would be as compared to me manually adding and ticking a global skill modifier for Tireless Precision so I guess I'll just have to go the clicky route... I really want to lessen the clicks since our campaign is text only so I still will use the code when I don't like clicking too much.. Though I really hope it was otherwise since I'm only using Tireless Precision on Investigation (and Thieves Tools - well hopefully it works the same way)... Still a really big thanks though... It's really a great help :) Edit: For unresponsive reply... guess I was a bit hungry editing macros :)
1593174981

Edited 1593175329
David M.
Pro
API Scripter
EDIT- I just noticed that you already had issues with what I suggest below, though I don't seem to be having the issue of the d4 rolling twice. Maybe because I have it set to "Always Roll Advantage" and I just pick the side based on circumstances (left side for normal, worst roll for disadvantage, etc.). Moving the Tireless bonus to the main portion of the roll seems to preserve all of the ToolTips (including global mod), unless I'm misunderstanding what the issue was. Template: @{wtype}&{template:simple} {{rname=^{investigation-u}}} {{mod=@{investigation_bonus}}} {{r1=[[@{d20}+@{investigation_bonus}@{pbd_safe} [SkillBonus]+1d4cf0cs0[Tireless]]] }} @{rtype}+@{investigation_bonus}@{pbd_safe}]]}} {{global=@{global_skill_mod}}} @{charname_output Output: Does that work for you?
1593180468

Edited 1593180559
David M. said: Moving the Tireless bonus to the main portion of the roll seems to preserve all of the ToolTips (including global mod), unless I'm misunderstanding what the issue was. I think Tireless Precision is just a single roll added to the result of either advantage or disadvantage of the diceroll much like Guidance... Adding it to the main portion (I presume it is the 1d20 area) causes it to be rolled twice, each for the two d20s. I think it kinda has to act like when global skill modifier (e.g. Guidance is enabled)... The tooltip that's actually missing is this (the 4 without the lable which stands for Guidance modifier) using the macro, compared to this ,(which now shows both Tireless and Guidance labels) by creating another global skill modifier for Tireless Precision... I would have liked a macro that spared me the clicks to toggle on or off the Tireless Precision global modifier since its just for investigation and thieves tools.... But editing the existing macros in the sheet seems to have hidden settings I couldn't conveniently figure out... :( Does that work for you? Sadly it doesn't fit as much as I have hoped...
1593254129
David M.
Pro
API Scripter
GraySky  said: I think Tireless Precision is just a single roll added to the result of either advantage or disadvantage of the diceroll much like Guidance... Adding it to the main portion (I presume it is the 1d20 area) causes it to be rolled twice, each for the two d20s. I think it kinda has to act like when global skill modifier (e.g. Guidance is enabled)... Interesting that I don't seem to be able to reproduce the double rolls of the d4 regardless of my settings. In the screenshots of my original example (with "Always Roll Advantage" checked), note that it only rolls the Tireless d4 once. I just checked with "Query Advantage" checked, and when choosing Advantage, it also looks like it works fine, with a single d4 from Tireless. The second (green) 4 in the screenshot below is for Guidance, which still has a ToolTip as per my original example. Am I missing something, or is there something else that might be different in our settings that causes yours to roll the Tireless d4 twice?
1593257131

Edited 1593257293
David M. said: Am I missing something, or is there something else that might be different in our settings that causes yours to roll the Tireless d4 twice? Uhm to clarify... Oosh's coding works out ideally, dicewise... In his Code... Say dice is being rolled for advantage... The two d20s show in the template while values for Tireless Precision and Guidance.. were rolled only once but are added to both d20s... So say I rolled a (1) and a (20) on 2d20s.. and (3) for 1d4Guidance and (4) for 1d4Tireless Precision... The template would show 20+7 | 1+7   ..... the 7 being the total of the modifiers Guidance and Tireless Precision... The thing missing with Oosh's Code however was then when the cursor is moused over the 7 it does not show the tooltip label for [Guidance] - a global skill modifier - but only the [Tireless Precision] Tooltip. Hence, only the (4)[Tireless Precision] shows while the (3) has no indicator as to what the dice was for (which might cause the DM to ask for questions - delaying the text only game) (as also found in the images I linked)... and that is for both d20's and not only a single one... The Code you have provided, however only works on a single d20.... that is why I said that if the 1d4Tireless Precision bonus was added to the {{r1=[[@ {d20} +@{investigation_bonus}@{pbd_safe}[SkillBonus]+ 1d4cf0cs0[Tireless]]]} }  line, adding the Tireless Precision bonus to r2 diceroll would cause the Tireless Precision bonus to be rolled twice instead of once... Which shouldn't be the case... The TP bonus should only be rolled once and then added to both d20s similar to Guidance...   And although the code you provided does only roll TP once... the same roll must be added to the other d20 (r2) -which fulfills adding Tirelss precision to both d20s but is erroneous since the bonus is now rolled twice... hence it shouldn't be in the same line as r1... and should be placed somewhere after just like the {{global=@globalskillmod}} corresponding to Guidance... I understand the confusion though... sometimes speaking in Code gets a bit confusing :)
1593267071

Edited 1593267539
David M.
Pro
API Scripter
Ah, I see. Though it is not ADDED twice, it is technically ROLLED twice. I misunderstood your problem. You want the SAME d4 from tireless to be used for both advantage rolls, whereas I was in essence suggesting using a a DIFFERENT tireless d4 for each of my d20's. Ok, just a difference in play style, as we're too lazy in our games to worry about it :) One last option, then I'll leave it alone, I promise! How do you feel about using a different template like the attack/damage template that has extra fields available? The following puts a single Tireless roll in the damage field, regardless of advantage/etc. @{wtype}&{template:atkdmg} {{mod=+@{investigation_bonus}}} {{rname=Investigation}} {{r1=[[@{d20}cs>20 +@{investigation_bonus}[Skill Bonus]]]}} @{Charname|rtype}cs>20 +@{investigation_bonus}[Skill Bonus]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=+[[1d4[Tireless]]] (Tireless)}} {{damage=1}} {{desc=}} {{globalattack=@{global_skill_mod}}} You could even add something in the description field to clarify that it is coming from a Vedalken racial ability or something. EDIT - you can also take out that {{range=}} part
David M. said: @{wtype}&{template:atkdmg} {{mod=+@{investigation_bonus}}} {{rname=Investigation}} {{r1=[[@{d20}cs>20 +@{investigation_bonus}[Skill Bonus]]]}} @{Charname|rtype}cs>20 +@{investigation_bonus}[Skill Bonus]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=+[[1d4[Tireless]]] (Tireless)}} {{damage=1}} {{desc=}} {{globalattack=@{global_skill_mod}}} Woah! This is actually a great alternative! I was so embroiled trying to get it to work with that template I forgot I could use other types of templates (well that was a bit dumb of me).... This actually meets all my needs. Thanks so much for this! Now I'm just gonna do a bit of switch-a-roo to get this to work with Thieves tools :)
1593298876

Edited 1593298915
David M.
Pro
API Scripter
Great! I'd never repurposed a template in that way before, so it was a fun exercise for me, too!