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

Can't get Template to work with Rollable table.

Hey Guys. An absolute noob here when it comes to macros or programming. I have created a modified Random encounter rollable table and was wanting to make a macro that shows it was the 5e template. I know this can be done is I have seen Adam from the Tomb of Annihilation campaign use it in the 5e format I have tried to create a basic macro /roll 1t[Grassland-Encounters-Levels-1-5] &{template:5eDefault} . I have tried to put &{template:5eDefault} before or after /roll 1t[Grassland-Encounters-Levels-1-5] but it still comes up as the below. This happens even if i use &{template:5eDefault} before or after 1t[Grassland-Encounters-Levels-1-5] and event the &{template:Default} Can any one tell me what I am missing? Also how can I roll on the table and Whisper me. Thanks in advance for any answers
1521456375
Andreas J.
Forum Champion
Sheet Author
Translator
Have you double-checked that you us the same DnD5e sheet(Shaper/OGL/Community Contributed) as the example, and thus have access to the same roll templates? The templates are a part of the sheets, and only the default template is universally available.
1521467284
Kirsty
Pro
Sheet Author
Hi Chris. Here's an example using the default template. &{template:default} {{name=Random Encounter}} {{[[1t[Grassland-Encounters-Levels-1-5] ]] }}
1521470398
Finderski
Plus
Sheet Author
Compendium Curator
Chris T. said: I have tried to create a basic macro /roll 1t[Grassland-Encounters-Levels-1-5] &{template:5eDefault} . I have tried to put &{template:5eDefault} before or after /roll 1t[Grassland-Encounters-Levels-1-5] but it still comes up as the below. Kirsty said: Hi Chris. Here's an example using the default template. &{template:default} {{name=Random Encounter}} {{[[1t[Grassland-Encounters-Levels-1-5] ]] }} To explain why Kirsty did and why...Roll Templates must use inline rolls, which is without the /r or /roll and the roll formula enclosed in double-brackets (as Kirsty has done). You could try the same thing with the 5e template you've been trying, just get rid of the /r or /roll and format it similar to the above.
/w GM &{template:5eDefault} {{title=Grassland Encounters}} {{subheader=Levels 1 -5}} {{[[1t[Grassland-Encounters-Levels-1-5] ]] }}
where can I find the list of all of these available Templates?
1521719901
GiGs
Pro
Sheet Author
API Scripter
The only template available in all campaigns is &{template:default}. The others depend on your character sheet, so you need to check if the sheet has a wiki page or other instructions, or look at the page's html to find the roll templates manually.
I'm using the Community 5e Sheet, what do you mean view the Page's HTML? How would I go about doing that? Is there something I can do Inspect on to find the codes? I'm flying blind here.
1521799444
Ziechael
Forum Champion
Sheet Author
API Scripter
The code can be found on the Roll20 Github... specifically  here . As that sheet isn't really supported by anyone now (the Author left Roll20 I believe) the wiki doesn't cover template options. The code can be a bit heavy to sift through but templates tend to be towards the bottom if that helps... good luck ;)
1521815128
GiGs
Pro
Sheet Author
API Scripter
Look for rolltemplate-5eDefault in the html, and that will start a block that includes the terms you can use. Any term that starts with {{# is a term you can use in your rolls.
G G said: Look for rolltemplate-5eDefault in the html, and that will start a block that includes the terms you can use. Any term that starts with {{# is a term you can use in your rolls. oooh, that's super useful to know, now if only I could get @{selected|repeating_ClassResourceName_$0_Name} to work, I have no idea why it's not recognizing "Ration" which is what I have on the first line, did he forget a step on the creation of the repeating lines? it's saying that Row 0 (and Row 1) doesn't exist.
1521918268
The Aaron
Pro
API Scripter
Try: @{selected|repeating_classresources_$0_ClassResourceName}
The Aaron said: Try: @{selected|repeating_classresources_$0_ClassResourceName} *facepalm* I was over-thinking it entirely. As usual, you're awesome Aaron!