
Hello community! I've received quite a bit of help on this from Oosh so far, but there are still a few fine tuning elements (probably to my own understanding) that I'd like to iron out where possible. I'd have sent a PM or whisper to Oosh, but that felt a bit presumptive so I'm just coming back here (hope that makes sense). The goal for me is to set up an ability for one of my players, where the character fires a weapon off, has the option to use the sheets settings (such as Query Whisper, Query Advantage), allows for the individual bonuses to be totaled up and thus more easily tracked (proficiency bonus + dexterity bonus + fighting style:archery bonus - Sharpshooter (done as "@{?Sharpshooter?|No,0|Yes,1}*5[SS]" ) and outputs things cleanly. I'm going to be providing the Macro as I have it here and then lay out my intent on what I feel it could use for fine tuning and what I'd like to add to it. @{Alain Gilead|wtype}&{template:atkdmg} @{Alain Gilead|rtype}cf<2cs>19 + @{Alain Gilead|pb} + @{Alain Gilead|dexterity_mod} + @{Alain Gilead|FSArchery} - [[?{Sharpshooter?|No,0|Yes,1}*5]][SS] ]]}}{{mod=[[@{Alain Gilead|pb}[PB] + @{Alain Gilead|dexterity_mod}[DEX] + @{Alain Gilead|FSArchery}[FS] - [[?{Sharpshooter?|No,0|Yes,1}*5]][SS]]]}} {{rname=Pepperbox}} {{r1=[[@{Alain Gilead|d20}cf<2cs>19 + @{Alain Gilead|pb} + @{Alain Gilead|dexterity_mod} + @{Alain Gilead|FSArchery} - ?{Sharpshooter?|No,0|Yes,1}*5[SS] ]]}} {{attack=1}} {{range=80 ft. (320 ft.)}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d10 + @{Alain Gilead|dexterity_mod}[DEX] + [[?{Sharpshooter?|No,0|Yes,1}*10]][SS] ]] }} {{dmg1type=Piercing}} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[1d10[CRIT]]]}} {{crit2=[[0[CRIT]]]}} 0 {{desc=The Pepper-Box misfires on a roll of [[2]] or less}} {{spelllevel=}} {{innate=}} {{globalattack=@{Alain Gilead|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{Alain Gilead|global_damage_mod_type}}} ammo= @{Alain Gilead|charname_output} The issue I am currently having with the template is that the attack rolls and damage rolls will not always display the total bonus of the Sharpshooter calculation. Testing with this most current version, it *seems* to show the correct total modifier every time for the sharpshooter damage, and for the (when rolling advantage) box on the right hand side of the screen. The left hand attack roll box and the primary roll box always seem to display the attack roll penalty in the form of it's calculation, "1*5" ; even if they do get added in correctly, it's irritating. Secondly, I'm looking at including another static bonus attached to an attribute: Fighting Style: Archery (FSArchery) with a bonus of 2. So I'd like to be able to add it into the attack rolls, between the dexterity_mod and the sharpshooter query. But for whatever reason I've been having trouble adding it and having it show up. Just double checking but the addition should look like, " ... + @{Alain Gilead|FSArchery} - [[?{Sharpshooter?|No,0|Yes,1}*5]][SS] ... " basically, yes? I'm going to try it out with the above again (just to double check) but it seemed to be occasionally weird and just non existent. I'm also adding in a description for the attack, which is really just, "This firearm misfires on a roll of 2 of less," (hence the cf<2). The hope here is that in no way should that screw with the calculation. But if anyone were able to suggest a way to color the 2 red (as if it had fumbled) that would be fantastic. The last thing that I may add in for one of these items is a special scope or sight that increases the critical chance from 20 to 19, so my final hopeful hope is that in no way would adding the line " ... cf<2cs>19 " to the attack die roll interfere with the rest. Anyone that can help me fix up these minor issues is totally deserving of much thanks in advance and afterwards as well, just for showing me where I was going wrong so I can fix these kinda things going forward. Hope everyone's otherwise having a good weekend, and look forward to your replies and insights. :)