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

Character Sheet Help

Hello, I have been working on a character sheet for a few weeks now and am hitting lots of roadblocks. Mainly because I am quite computer stupid and HTML oblivious. I'm creating a new version of the Castles and Crusades sheet and am having the following major issue. I can't get a template to work on a character sheet connected roll. I am setting up a few default rolls on the sheet and I want it to show up as a template in the chat. When I don't add the template stuff the function works, but when I add the template all I get is gooblydock. This is the code:  <td><td class="bluehilite boldme alcenter medium" style="background-color:red;color:black;padding:2%;">Melee Attack<button type="roll" value="&{{template:default}}{{name=Melee Attack}}{{Attack Roll=/roll d20+@{StrengthMod} +@{Bth} +(?{Attack|Standard, +0|Called Shot, -8|Flank, +1|Offensive Focus, +3|Rear Attack, +2})}}"/></td> I am sure there are fragments in there I don't need or I'm missing or using too many brackets or whatever, I just need help.
1591386628
Finderski
Pro
Sheet Author
Compendium Curator
All Roll Template rolls must be inline.  Try this: &{{template:default}}{{name=Melee Attack}}{{Attack Roll=[[1d20+@{StrengthMod} +@{Bth} +(?{Attack|Standard, +0|Called Shot, -8|Flank, +1|Offensive Focus, +3|Rear Attack, +2})]]}}
I appreciate the help but it still doesn't work. Is it a function you can't do from a character sheet? Is it conflicting with the HTML?
1591389103
GiGs
Pro
Sheet Author
API Scripter
Finderski got a bit overexcited with brackets. At the start it should be &{template:default} the rest should work.
1591392964
Finderski
Pro
Sheet Author
Compendium Curator
GiGs said: Finderski got a bit overexcited with brackets.  What can I say...brackets are just so dang sexy...LOL
Thanks. I'll give it a try tonight.