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

Template Macro for Rollable Tables and other Macros

I was using &{template:pf} {{charName=Test Your Fate}} {{attr=Luck Check }} {{result=[[3df }]]}}{{isNotAttack=true}} To try to get a cool looking format that goes along with the character sheets i was using im trying to find how to make the macro work with rollable tables /roll 1t[Timeworn-Armor-Glitches] My other question is their a cleaner way to get that first macro down I would like it to not have to have char name and attr but that was the only way i could get it to work cause it has two lines like an equal sign in the middle. Please assist thanks
SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "/" found. Is what I keep getting
To insert the rollable table just change it from /roll to putting brackets around it and the 1t can be changed to Xt where X is the amount of rolls you want on the table fyi.  If the tables entries are also inline rolls([[]]) then you need to install the recursive tables api.  
Is there any good walkthroughs for using templates?
The wiki is amazing and kudos to the folks keeping it up and updated.  There are some blindspots in the wiki but its usually just in the realm of api stuff.  I don't play PF nor edit their stuff so I dunno if thats in the wiki.  
For me the wiki doesn’t break down enough about using templates unless I’m looking in the wrong spot of the wrong wiki. I don’t know if I’m using the right PF sheets for it be be updated.
How do you get it to say the text not the number on the chart?
1619545789
The Aaron
Roll20 Production Team
API Scripter
If it starts with a number, it will come in as a number.  You need to start with something else.  I think a space will work, but certainly an _ or : or similar will.
1619545961

Edited 1619546175
Andreas J.
Forum Champion
Sheet Author
Translator
Joey V. said: I was using &amp;{template:pf} {{charName=Test Your Fate}} {{attr=Luck Check }} {{result=[[3df }]]}}{{isNotAttack=true}} To try to get a cool looking format that goes along with the character sheets i was using im trying to find how to make the macro work with rollable tables /roll 1t[Timeworn-Armor-Glitches] How did the macro you tried to use look like? I had no problem inserting a table roll into a roll template &amp;{template:default} {{name=Table test}} {{roll=[[ 1t[Timeworn-Armor-Glitches] ]]}} What's going on: you want to use a table roll ( 1t[Timeworn-Armor-Glitches] ) inside a roll template: <a href="https://wiki.roll20.net/Roll_Templates#Using_Roll_Templates" rel="nofollow">https://wiki.roll20.net/Roll_Templates#Using_Roll_Templates</a> to make any rolls with roll templates, you need to place the roll in a inline roll ( [[ ]] ) <a href="https://wiki.roll20.net/Inline_Rolls" rel="nofollow">https://wiki.roll20.net/Inline_Rolls</a> And that's the steps I took. remember that you can only use other rolltemplate than default if you have the character sheet it's taken from in your game.
Oh it worked just looked like Crap But i figured it out by taking away the numbers like The AAron sugested still is highlighted in yellow but looks better than before&nbsp;
1619550661

Edited 1619579839
This was what i went with in the end&nbsp; &amp;{template:pf} {{charName=Timeworn Armor}} {{attr=Glitch Check }} {{result=[[1t[Timeworn-Armor-Glitches] }]]}}{{isNotAttack=true}}