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

Escape character inside a template

I'm stuck on a macro that is using a template and wonder if anyone can unstuck me.&nbsp;I am using the "D&amp;D 3.5E" sheet. The dpot I am stuck on is replacing the = sign inside of a style format. The template breaks on the = sending everything after to the next column. I can't find an escape character that works. {{[Ranged Attack:](#" style = "color:cyan;font-size:12px;line-height:14px;background-color:black;padding:2px) = [[1d20+@{Selected|size} + @{Selected|dex-mod} + @{Selected|bab}]]}}&nbsp; Here is the whole macro showing the template. &amp;{template:DnD35StdRoll} {{spellflag=true}} {{name=@{selected|character_name} }} {{subtags=casts [Acid Splash](<a href="https://www.d20srd.org/srd/spells/acidSplash.htm).[img](https://files.d20.io/images/450221862/m9RebZGDvGV-JzJqEqHRtQ/original.png" rel="nofollow">https://www.d20srd.org/srd/spells/acidSplash.htm).[img](https://files.d20.io/images/450221862/m9RebZGDvGV-JzJqEqHRtQ/original.png</a>)}} {{[Ranged Attack:](#" style = "color:cyan;font-size:12px;line-height:14px;background-color:black;padding:2px) = [[1d20+@{Selected|size} + @{Selected|dex-mod} + @{Selected|bab}]]}} {{Damage=[[1d3]] acid and [[2d6]] sneak}} {{School:= Conj}} {{Level:= Wiz 0}} {{Cmpnts:=V,S}} {{Casting Time:=1 std action}} {{Range:= [[25+((floor(@{selected|CasterLevel}/2)) * 5)]] Close (25 ft. + 5 ft./2 levels)}} {{Target:= 1 Creature}} {{Duration:= Instantaneous}} {{Saving Throw:= None}} {{Spell Resist.:=No}} {{ Caster level check: = [[ 1d20+@{selected|casterlevel}+@{selected|spellpen} ]] vs spell resistance.}} {{Concentration:= [[1d20 + @{selected|concentration}]]}}
1753660440
timmaugh
Forum Champion
API Scripter
I have a similar issue with portions of the metascripts: if they are included on the left side of the "=" but contain a "style" statement, it drives the remainder of the content to the right. I have not been able to find a workaround for it. In your case, can you not include the "Ranged Attack" button in the same "subtags" template part that the "Acid Splash" resides in? You can use the %NEWLINE% syntax to break those two buttons to different lines, and that would keep the "style" statement of the Ranged Attack button wholly on the right side of the template part definition so it won't break like this.