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

Quirk in Simple Roll Template

Hey all, I'm using the Universal Saves macro posted elsewhere by Craig, and it works great.  Except when it doesn't show the character's name at the bottom of the roll dialog.  I thought it was unique to my macro but I'm wondering if it's in the 5e OGL sheet.  I have two PCs, Ioldir and Vola.  When I click on the character sheets for a STR save it shows Vola's name but not Ioldir's.  When I use the macro for a STR save it shows Ioldir's name but not Vola's.   Any thoughts on what might be causing this oddity?
1572205077
Ziechael
Forum Champion
Sheet Author
API Scripter
There is an option in the individual sheet settings to display the name on the template output, maybe that is disabled on Ioldir's sheet but the macro ignores that setting, enabling it as part of the code?
Good call!  It always pays to trust but verify.  The option for Add Character Name to Templates was Off for Ioldir, which explains why the sheet saving throw displayed what it did for Ioldir.  I'm still at a loss as to why the macro displays for Ioldir but not for Vola.  More digging required.
So here's what I have discovered.  The variable charname_output is different between the two characters as follows: Earle W. (GM): Ioldir Greenleaf Charname Output: charname=Ioldir Greenleaf Vola Naur'agar Charname Output: {{charname=Vola Naur'agar}} I got this by having the following macro in my macro mule: !Data &{template:default} {{name=@{selected|character_name}}} {{ }} Charname Output: @{selected|charname_output} The version with braces appended fore and aft gets swallowed up somewhere in the parsing melee, whereas the version without the braces sails right through.
That was the fix.  In each of the character sheets exhibiting this glitch the attribute charname_output had acquired an opening and closing pair of curly braces.  Editing the attribute value directly to remove them makes my glitch go away.  Now the saving throw macro works the same for all PCs in the campaign.  I am happy to have figured this one out.  Now to wrestle the demon of worksheet helpers!