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 .
×

Possible to see all the macro templates that come with a selected character sheet?

As the title says, I'm making some custom macros from one of pre-built character sheets (BFRPG) and have noticed a few different templates from the included character sheet button macros, and made me wonder is there an easy way to find out all the included templates?  Thanks!
1597884479
Oosh
Sheet Author
API Scripter
Usually the documentation/wiki, though I can't seem to find any for that sheet. Another way is to run a macro from the sheet, then put the cursor in the chat bar and push the Up Arrow on the keyboard. That should bring the last command sent to chat into the bar, where you can copy it and paste into a text editor to pick it apart. And another way is to use an HTML inspector on the sheet, the roll buttons should give you some info, including hidden Attributes.
1597888860
Andreas J.
Forum Champion
Sheet Author
Translator
Yes, look for documentation on the wiki first. If that fails: track down the folder/code for the sheet in the github: <a href="https://github.com/Roll20/roll20-character-sheets/" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/</a> open the html file in that folder use control+F to search for "sheet-rolltemplate-". Each found instance is a roll template for example, "Eclipse Phase V2" when i searched it's html file: <a href="https://github.com/Roll20/roll20-character-sheets/blob/master/Eclipse%20Phase%20V2/Eclipse%20Phase%20V2.html" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/blob/master/Eclipse%20Phase%20V2/Eclipse%20Phase%20V2.html</a> i found 4 instances of "sheet-rolltemplate-": sheet-rolltemplate- EPdefault sheet-rolltemplate- EPcombat sheet-rolltemplate- EPpsi sheet-rolltemplate- EPOutput The bold parts are the name of the templates. You can either experiment or read the rolltemplate code to figure out how they work. Reading <a href="https://wiki.roll20.net/Roll_Templates" rel="nofollow">https://wiki.roll20.net/Roll_Templates</a> can help make sense of roll templates.
1597889373

Edited 1597889399
Kraynic
Pro
Sheet Author
Looking at it on github, I only see one template (starting at line 2837 of the html) labeled "5eDefault".&nbsp; If that isn't a template name from the Roll20 sheet, it might be from the Community sheet or maybe the 5E shaped sheet.&nbsp; Maybe someone with experience with one of those sheets might know. If I am looking at the right BFRPG, that is:&nbsp; <a href="https://github.com/Roll20/roll20-character-sheets/tree/master/Basic%20Fantasy%20RPG%20-%20Expanded" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/tree/master/Basic%20Fantasy%20RPG%20-%20Expanded</a>
1597905080

Edited 1597905977
Oosh
Sheet Author
API Scripter
Kraynic is on the money, it's from the Community 5e sheet. Bang this into chat and you should be able to pick apart what you do and don't want to use: &amp;{template:5eDefault} {{save=1}} {{title=Name of Card}}{{subheader=Who is Using Card}} {{subheaderright=Type of Action}} {{subheader2=extra header}} {{subheaderright2=right side extra header}} {{emote=SPECIAL TEXT}} {{freetextname=Header in card}} {{freetext=(Body of card) spell=purple; weapon=green; save=red, skill=light grey; ability=teal; deathsave=dark brown; npcaction=grey with Desc. and Effect; @PC Macros|classactioncustom1skill adds everything as extra lines }} {{npc_action_description=Description of thing}} {{npc_action_effect=Effect of Thing}} {{attack=attack roll}} {{damage= damage roll}} {{spellshowattack=1}} {{spellattack= Spell attack roll}} {{spellshowdamage=1}} {{spelldamage= spell damage}} {{spellshowsavethrow=1}} {{spellsavedc=Save DC}} {{spellsavestat=DEX}} {{spellsavesuccess=Half damage}} {{spellshoweffects=1}} {{spelleffect= effects of spell}} {{spellshowdesc=1}} {{spelldescription= Descr of spell}} If that's not all possible properties of the template, it's at least enough to get started. There may be some fields which will cause the template to fail if you omit them - you'll probably need to experiment or check the sheet-generated macros to figure that bit out. I can't find official documentation for it. All that talk of colours in the main text is telling you the flag names for the banner colour, I believe. So if you want a purple banner, you need the flag {{spell=1}} somewhere in your macro, and {{save=1}} would give you red, etc. etc. You've also got repeating fields on the sheet you can reference, for example the first two melee attacks from the character sheet for Alice can be rolled with: %{alice|repeating_meleeattacks_$0-roll_meleeattack} %{alice|repeating_meleeattacks_$1-roll_meleeattack} First ranged attack for Bob: %{bob|repeating_rangedattacks_$0-roll_rangeattack} &lt;=== watch out for the "range d " on the first instance and "range" on the second And so on....
Thank you all for the information - a lot more than I was expecting.&nbsp; Appreciate your time writing all of the above out. This is exactly what I wanted to experiment with!&nbsp; 4n70n10 x
@oosh One question from everything you posted, I've picked up the code you posted, and have my macros looking much better now; However, there was one thing I didn't fully understand.&nbsp; @PC Macros|classactioncustom1skill adds everything as extra lines What does the above mean example? As I believe that is exactly what I'm after as there are a few lines I want to include in some of the macros.&nbsp; Are these macros made as Abilities on the PCs character sheets? or? Thanks!
1597932917
Oosh
Sheet Author
API Scripter
Yeah that was a bit confusing... it looks like it was a way of getting custom fields to display. Try {{outputall=1}} , that seemed to work when I tried it.
Oosh said: Yeah that was a bit confusing... it looks like it was a way of getting custom fields to display. Try {{outputall=1}} , that seemed to work when I tried it. Didn't help explain the custom fields, but, I was able to DM the sheet author on the BFRPG forums, so hopefully they can shed some light :) Thanks again Oosh! 4n70n10
1597965890
Oosh
Sheet Author
API Scripter
It's just a flag that enables custom fields to be output in the template, it looks like the @{PC Macros|blahblah} method was an older one. So in this: &amp;{template:5eDefault} {{save=1}} {{title=Name of Card}}{{subheader=Who is Using Card}} {{subheaderright=Type of Action}} {{subheader2=extra header}} {{subheaderright2=right side extra header}} {{emote=SPECIAL TEXT}} {{freetextname=Header in card}} {{freetext=(Body of card)}} {{Custom Field=Description here}} {{More custom stuff=More descriptive gubbins}} {{outputall=1}} The outputall flag enables the other two bold fields to be printed on the template. If you remove the outputall flag, or set it to {{outputall=}}, those two bold fields will not appear in the template.
Ah! Thanks again @Oosh! Now you've dumb'd it right down for me, I understand and this is exactly &nbsp;the thing I was missing. Now my macros are complete. You're a coding hero! :)