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

!chatmenu macro for ability command button broken on a single character.

1587429341

Edited 1587429387
EDIT* this is the same for cantrips and lvl2 spells as well.  I just went through to test the macros I've created before my game on wednesday and my wizards !chatmenu macro seems to not call the spells properly. This exact macro is working just fine on all other characters.  Any help would be appreciated!  !chatmenu @{selected|character_id} {template:npcaction}{{rname=@{selected|character_name}}}{{description=CHATMENU}} --separator: |  --title: Level 1 Spells --repeating_spell-1|spellname|spell Chat output:  Sleep |repeating_spell-1_-M4M9wUjuWydGQ5Z0fBb_spell) TypeError: Cannot read property 'substring' of undefined
1587430127
GiGs
Pro
Sheet Author
API Scripter
Does the macro on that character work for other repeating sections, with the spell part removed? Some characters can have characetrs in their names that might break the macro, but if its still working for some and just not the spells, it's not that.
Nope same deal with Traits and Attacks :( - I am not entirely sure what broke but I think something may have happened when they leveled up through charactermancer? 
It doesnt like () in the name, thats what fixed it..... what the actual heck
1587431039
GiGs
Pro
Sheet Author
API Scripter
I'm in the midst of a rewrite that should fix that, but yes, brackets in the wrong place currently break the script.
Oh!!!! I thought I recognized the username - I LOVE THE SCRIPT!!! Thank you for all your hard work :D 
1587431517
GiGs
Pro
Sheet Author
API Scripter
hehe, thank you!
1587432168
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It's generally a good practice to avoid quote, brackets, parentheses, and other special control characters in a character name, for just this reason. Stick with something safe, like Candlejack, or Hastur.
1587434694
GiGs
Pro
Sheet Author
API Scripter
Yeah, its not just my script that might break - some scripts will be fine, but others will break.