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

Pathfinder sheet, bugs in name and "spellbook". Escaping parenthesis and quotes.

1465924151

Edited 1465924166
When I click on the new (and very cool) "Spellbook"-button, it doesn't work, and I know why. My character name was (John) Father Gelerius "ius" Ohn'astaire Resulted in  Unable to find a player or character with name: (John) Father Gelerius Then I changed it to  (John) Father Gelerius 'ius' Ohn'astaire Which resulted in the spellbook, but all of the spells had weird id's in front of them, and I couldn't use any of them, it just threw  No ability was found for %{-KFj6ijCUSjEfZ89ibIE|(Figaw} Then I changed it to John - Father Gelerius 'ius' Ohn'astaire And finally the spellbook showed up correctly and I could use the spells. We have (John) in the beginning so we know whose characters is who, in the character list. But I think you have some kind of "escape"-characters problem in your macros :)
spellsArray[spellClass][level] += " ["+spellName+"](~@{character_name}|repeating_spells_"+ID+"_roll)"; Indeed; the quotation marks could very well be a source of conflict, here. The second issue (involving closing parenthesis in a Character's name) could be avoided by using @{character_id} (or simply removing "@{character_name}|", as I don't think it's a necessary inclusion in this situation ).
1465932974

Edited 1465933049
chris b.
Pro
Sheet Author
API Scripter
We have some escaping in the beta site. I am working on more right now.  The issue is since that macro is built via javascript in the sheetworker, whatever escaping Roll20 does is not being done.  I am also working on this for the options text i just consolidated. Buuuuuut.. I was only escaping any instances of }}  .. looks like we have to add end parenthesis, single quote, double quote,  any others that would break a rolltemplate?
1465944065

Edited 1465944157
chris b. said: any others that would break a rolltemplate? =, and that's all I can really think of (apart from things that'll generally break Text Chat outputs, like broken inline rolls or unmatched inline roll brackets).
1466088374

Edited 1466088621
chris b.
Pro
Sheet Author
API Scripter
Actually the fix is, as Silvyre first suggested, to use character ID. That fixes both issues of quotes and parenthesis, and I assume any other character. I have tested this and it works. It should be in the beta site tonight (the first post of the Pathfinder sheet thread 5) That is a better solution since escaping too much stops users from being able to add macros to text fields and have them work in the chat area instead of just being printed there.