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

D&D 5e Hexblade Attack & Curse in Roll20 5e Template Format, Please Help?

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.
1595158887

Edited 1595159832
Oosh
Sheet Author
API Scripter
Edit - changed the macro a bit. Definitely needs to be an Ability macro, not a Collections macro. Give this a go: &{template:atkdmg} {{charname=@{character_name}}} {{rname=Longsword}} {{mod=[[@{charisma_mod}[CHA]+@{pb}[PB]]]}} {{r1=[[1d20cs>?{Hexblade's Curse?|No,20|Yes,19} +@{charisma_mod}[CHA] + @{pb}[PB]]]}} {{attack=1}} {{damage=1}} {{?{Advantage?|Normal,normal=1}}{{[[0d0|Advantage,advantage=1}}{{r2=[[2d20kh1|Disadvantage,disadvantage=1}}{{r2=[[1d20}cs>?{Hexblade's Curse?}+@{charisma_mod}[CHA] + @{pb}[PB]]]}} }} {{dmg1flag=1}} {{dmg1=[[1d8 + @{charisma_mod}[CHA] + [[abs(?{Hexblade's Curse?}-20)*@{pb}]][PB]]]}} {{dmg1type= Slashing(One-Handed)}} {{crit1=Crit: [[1d8]]}} {{dmg2flag=1}} {{dmg2=[[1d10ro<2 + @{charisma_mod}[CHA] + [[abs(?{Hexblade's Curse?}-20)*@{pb}]][PB]]]}}{{crit2=Crit: [[1d10ro<2]]}} {{dmg2type= Slashing(Two-Handed)}} I have assumed that the character is using their Hex warrior weapon and therefore using Charisma as their attack & damage stat. If this isn't the case just replace all instances of Charisma with the correct Attribute, and CHA with the abbreviation for the roll labels. I've also removed "Super Advantage". It can be added back in if the character is likely to un-hexblade their weapon and have to use STR to roll their attacks (negating Elven Accuracy). Outside of this, they are always going to be using EA, so the Advantage option rolls an additional 2 dice instead of 1 in the {{r2}} roll. Also, this should go in their Abilities on the character sheet, not in the Collections tab - Collections will destroy the HTML entities in there if you ever reopen it. Another edit - this can be modified for the atk and dmg templates if you prefer click to roll damage?
Very sweet, thanks Oosh!  There's just so much to learn when it comes to working these macros and templates, it's mind numbing sometimes.