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] Tutorial for using Roll Templates with Example(s)?

Apologies in advance, I've managed to confuse myself a bit and now I'm looking to the community for some help with un-knotting my brain. 

What it comes down to: I'm looking at making use of the Roll Templates as found here for D&D 5e OGL which I believe tie in with the official Roll20 D&D 5e OGL Character Sheet here.  What I'm curious about is if there is any sort of tutorial or walkthrough of any sort currently available – preferably with examples – that kind of showcases putting it all together into a simple or complex macro, contained in the formatting of the templates listed.  By example, I'd like to be able to include the option to toggle/query: multiple d20 rolls for advantage or disadvantage; bless or bane; the ability to query sneak attack; and also critical success (and/or failure).  If I could, I'd like to build a ridiculous macro with a near exhaustive list of queries and drop down menus (is it a long sword, a rapier?  Is it slashing, piercing, bludgeoning?  Is it radiant, fire, necrotic, or lightning damage)  And the reason would be purely for an all purpose list of macros that could be trimmed down for more specific use with different characters, as well as to test my own understanding.  

As stands, I'm really a little more than uncertain how much connects between the macros as listed here and the Roll Templates for 5e and it's associated character sheet.  Thanks very much to everyone in advance who reads this and especially to those that are able to offer tips, advice, or just a nod in the right direction.  :)

March 13 (5 years ago)

Edited March 13 (5 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

The "ridiculous macro with a near exhaustive list of queries and drop down menus" is asking for a huge amount of work and headache. Drop downs within roll templates require HTML substitutions, and multiple ones or nested ones can get frighteningly complex. I'd strongly recommend not going down that rabbit hole, especially since you are a Pro member and there are some excellent alternatives.

1. Use a Chat Menu. You can either construct your own, or use a tool such as Universal Chat Menus or Menu Maker. There are complete character macros in the text of each thread.

2. Use the Token Actions script. I have a modified copy here. This creates token action buttons for every action on a D&D5e for Roll20 NPC Sheet, or does the same for every attack on a PC sheet. I did not write this (Kevin did), but modified it to reduce less-used buttons. Command is !ta

3. If you want to have a nicer output for your Roll Templates, look at this Stylus Style

4. ChatSetAttr (available from One-Click install) can turn on or off a lot of the options you mention, but be aware, the D&D 5th Edition by Roll20 can be problematic on what it will actually update when set via the API.

5. If you are dead set on the mega roll template, I'd suggest looking at Drop Down Nester by Scott C (an external tool) and carefully reading the relevant section of the wiki.