
Hi folks, thanks very much to anyone that can help me even approach get this set up correctly. I have a player that is running a Half-Elven Hexblade wielding a versatile Longsword in conjunction with Great Weapon Fighting Style (reroll any number of 2 or less once and once only), and who also happens to have the Elven Accuracy Feat (basically allows for "Superior Advantage" (3d20kh1). I'm trying to set things up so that the one macro will fit within the Weapon Attack & Damage ("template:atkdmg") and have multiple queries. If the target of the attack is Cursed, the Hexblade scores Critical Hits on rolls of 19-20 If the target of the attack is Cursed, the Hexblade deals extra damage directly equal to their Proficiency bonus, and I would prefer to have the macro call on that particular attribute. Query if the attack is made "?{Advantage?|Normal,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1|Elven Accuracy,3d20kh1} For the "secondary" damage type (Versatile Two-Handed), the damage needs to be 1d10ro<2 for both the regular and critical hit. I figured a rough idea of the syntax I would use for the attack roll would look something like the following:
[[?{Advantage?|Normal Roll,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1|Elven Accuracy,3d20kh1} + @{Linn|pb}[PB] + @{Linn|charisma_mod}[CHA]]]
I figured a rough idea of the syntax I would use for the attack roll would look something like the following: [[?{Advantage?|Normal Roll,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1|Elven Accuracy,3d20kh1} + @{Linn|pb}[PB] + @{Linn|charisma_mod}[CHA]]] I'm starting to wonder if I need to have this particular macro call on other macros to work correctly, using the # and & signs, but the problem is that I'm unfamiliar with how to integrate those and properly set it up. My skills are most definitely lacking for this and so I was hoping someone could help me parse the problem. As an aside, the macro / template as used by Beyond20 came out looking something like this: &{template:atkdmg} {{charname=Linn}} {{rname=Longsword}} {{mod=+7}} {{r1=[[1d20cs>19 +7]]}} {{attack=1}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8+5]]}} {{dmg1type= Slashing(One-Handed)}} {{crit1=Crit: [[1d8]]}} {{dmg2flag=1}} {{dmg2=[[1d10ro<2+5]] | +2}} {{dmg2type= Slashing(Two-Handed) | Hexblade's Curse}} {{crit2=Crit: [[1d10ro<2]]}}{{query=1}} ?{Advantage?|Normal Roll,&#123&#123normal=1&#125&#125|Advantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[1d20cs>19 +7]]&#125&#125|Disadvantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[1d20cs>19 +7]]&#125&#125|Super Advantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[2d20kh1cs>19 +7]]&#125&#125|Super Disadvantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[2d20kl1cs>19 +7]]&#125&#125} I'd like to model my own off of this, with the exceptions that: I'd like it to be contained within the framework / syntax of the D&D 5e OGL Roll Template Attack & Damage I'd like to directly reference character attributes in both attack and damage so that the macro can effectively scale with the character without needing persistent updating when the relevant attributes change (charisma mod, proficiency bonus, for starters). I would like to query if the Curse is being used, which would change both the critical hit chance as well as the damage modifier. Thanks very much in advance to anyone that can offer some help with this. Please feel free to ask if I left something out or I need to clarify what I mean by this or that.