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

TypeError: Cannot read property 'substring' of undefined

I've been trying to set up some macros for saving throws and stuff, and I found this video that seemed like he really knew what he was talking about, I just can't get any of his macros to work, since I have no skills in programming and don't know what the title error means. Any help would be appreciated. <a href="https://pastebin.com/csim4z8t" rel="nofollow">https://pastebin.com/csim4z8t</a>
1587223095

Edited 1587223114
Tom,&nbsp; Macros can be character Sheet specific. It looks like those macros are designed for 5E DND sheet by Roll20. If your game does not use that sheet you maybe running into issue where the attribute you are looking for does not exist because you not using that character sheet.&nbsp;&nbsp; It would be helpful to know where and how you have placed your macro's and which character sheet you are using.&nbsp;
Mark (GM) said: Tom,&nbsp; Macros can be character Sheet specific. It looks like those macros are designed for 5E DND sheet by Roll20. If your game does not use that sheet you maybe running into issue where the attribute you are looking for does not exist because you not using that character sheet.&nbsp;&nbsp; It would be helpful to know where and how you have placed your macro's and which character sheet you are using.&nbsp; Hey! I'm using the 5e roll20 character sheet, I guess I was just not using the character specific abilities and that's what caused, it because it works when I'm using the sheets my players have, but not if I'm trying to set it up as a GM made macro for everyone else to have (I have a few new players). Is there any quick fix to these in order to make it so that they work as GM macros for everyone and not player specific?
1587242190

Edited 1587242937
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I think template:simple is the Community sheet. If so, then no, there's no simple way to convert these. Try this instead. It does all that and a lot more. NPC Statblock Chat Menu for D&amp;D 5e sheet — No API This is for NPCs, though something similar could be built for PCs.
keithcurtis said: I think template:simple is the Community sheet. If so, then no, there's no simple way to convert these. Try this instead. It does all that and a lot more. NPC Statblock Chat Menu for D&amp;D 5e sheet — No API This is for NPCs, though something similar could be built for PCs. Ah fair enough. I'll definitely take a look at your link, but I have no technical knowhow, so I wouldn't know where to begin with converting it to a pc sheet :) Thanks for the help nonetheless!
1590377442

Edited 1590377476
I'm getting the same message with the following macro code on the first edition pathfinder character sheet : &amp;{template:simple} {{name=Spell Combat}} {{Attacks=[Acid Splash](~Acid-Splash)}} Any ideas?