This is pretty much my first look at anything coding related ever. In short I'm looking to make macros for various homebrew items that will account for various things depending on the player, stuff like regular roll/advantage/disadvantage, for the ranger rogue / sharpshooter/sneak attack, for the warlock/paladin, hexblades curse/great weapon master. I have working code for everything seperately, for example:
&{template:atkdmg}{{charname=Angelique
Solarix}} {{rname=Esprit}} {{mod=+12}} {{r1=[[1d20 +12]]}}
{{attack=1}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d10+8]]}}
{{dmg1type=Radiant}} {{crit1=Crit: 10}} {{dmg2flag=1}}
{{dmg2=[[2d6]]}} {{dmg2type=Radiant(Against Fiends and Undead
Targets)}} {{crit2=Crit: 12}} {{normal=1}} Is the default, and then I change {{r1=[[1d20 +12]]}} to {{r1=[[2d20kh1 +12]]}} or {{r1=[[2d20kl1 +12]]}} for advantage/disadvantage, or I change {{r1=[[1d20 +12]]}} to {{r1=[[1d20 +7]]}} and {{dmg1=[[1d10+8]]}}to {{dmg1=[[1d10+18]]}} to simulate GWM. However what I'm after is something where it brings up the pop up and the player can select the desired options and it will work. From what I gather the commands for that would be stuff like ?{Attack Type|Regular, <abc>|Advantage, <abd>|Disadvantage, <abe>|} but that does not work, nor does ?{Attack Type|Regular, #Regular-Attack|Advantage, #ADV-Attack|Disadvantage, DIS-Attack|} So is there a way to get it to roll with the correct formatting but have it go through a check list of everything (For Paladin example: Type of attack roll (Reg/Adv/Dis) > GWM (Yes/No) > Hexblades Curse > (Yes/No) > Necrotic Shroud or for Range/Rogue example, Type of attack roll (r/a/d) > sharpshooter (y/n) > sneak attack (y/n) > fury of the small (y/n)