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

[5e OGL] How do I add OGL variables to the purple default template?

Hey, I am trying to make a default template macro for my weapon attacks. Is there anyway to just add my weapon attack rolls to the template? I mean something like {{Attack=@{Player Name|WeaponNameAttack}}} and have it output to where it will just put in the weapons attack roll from the sheet into that line? I am hoping that if there is some kind of variable to let me do this, it will ask me for advantage and disadvantage and then be able to show one roll greyed out like it would normally. I know how to make it do a pop up menu just in the macro code itself, but I don't know how to make it grey out the lower or higher of two role. I am also wanting the damage roles to auto include crit dice rolls like it would if you were to click it from the sheet. I just hate the basic template that comes with the sheet.
1516193388
Natha
KS Backer
Sheet Author
API Scripter
Not sure that's what you want, but using the 5E sheet, you can drag'n'drop the roll "button" from the sheet into your macro bar, to have a quick macro access to an attack.
1516207182
Kirsty
Pro
Sheet Author
The OGL template has some things built into it specifically for D&D 5e mechanics that the default template simply can't do. For example, you can roll two attacks in the default template to simulate advantage/disadvantage but as far as I know, it won't grey out the lower/higher roll. Here's how I'd do a weapon attack in the default template: @{selected|wtype} &{template:default} {{name=Attack}} {{attack=[[1d20 + @{selected|strength_mod}]] [[1d20 + @{selected|strength_mod}]] }} {{damage=[[1d6 + @{selected|strength_mod}]] }} {{note=DC 15 strength save or the creature falls prone}} Alternatively, you could have a pop up asking if you have advantage/disadvantage and only display the lower/higher roll: @{selected|wtype} &{template:default} {{name=Attack}} {{attack=?{Roll Type|Normal,[[1d20+@{selected|strength_mod}]]|Advantage,[[2d20kh1+@{selected|strength_mod}]]|Disadvantage,[[2d20kl1+@{selected|strength_mod}]]} }}