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 .
×
If you're having issues creating a character, clear your cookies and log in again. If you continue having issues, contact us.
Create a free account

PF-neceros Cure Macro "undefined" error

In this macro, what would cause the error "Type Error: Cannot read property 'substring' of undefined".  This happens when I select a token and then run the following macro to do a cure spell. &{template:pf_spell}{{header_image=@{header_image-pf_spell}}}{{character_name=@{selected|character_name}}}{{character_id=@{selected|character_id}}}{{name=?{Cure Spell|Cure Light,Cure Light Wounds }} {{@{target|character_name} Heals =[[ floor(1.5*(1d8+{5, @{selected|spellclass-0-level-total}}kl1)) ]] HP }} {{Undead: Will Save DC [[ 10 + 1 + [[ @{selected|WIS-mod} ]]]]- Half Damage}}|Cure Moderate, Cure Moderate Wounds}} {{@{target|character_name} Heals =[[ floor(1.5*(2d8+{5, @{selected|spellclass-0-level-total}}kl1)) ]] HP }} {{Undead: Will Save DC [[10 + 2 + [[ @{selected|WIS-mod} ]]]]- Half Damage}}|Cure Serious, Cure Serious Wounds}} {{@{target|character_name} Heals =[[ floor(1.5*(3d8+{5, @{selected|spellclass-0-level-total}}kl1)) ]] HP }} {{Undead: Will Save DC [[10 + 3 + [[ @{selected|WIS-mod} ]]]]- Half Damage}}|Cure Critical, Cure Critical Wounds}} {{@{target|character_name} Heals =[[ floor(1.5*(4d8+{5, @{selected|spellclass-0-level-total}}kl1)) ]] HP }} {{Undead: Will Save DC [[10 + 4 + [[ @{selected|WIS-mod} ]]]]- Half Damage}}|Cure Light Mass,Cure Light Wounds Mass }}{{Range: [[25 + (5*floor(0.5*@{selected|spellclass-0-level-total})) ]]ft}} {{Target[[@{selected|spellclass-0-level-total}]]: no two of which can be 30ft apart }}{{ Heals =[[ floor(1.5*(2d8+{25, @{selected|spellclass-0-level-total}}kl1)) ]] HP }} {{Undead: Will Save DC [[10 + 5 + [[ @{selected|WIS-mod} ]]]]- Half Damage}} |Wand of Cure Light,Use his Wand of Cure Light Wounds}} {{ @{target|character_name} Heals =[[1d8+5]] HP } }}
1511474568
vÍnce
Pro
Sheet Author
I know the forums will normally convert special characters unless you take extra precautions when posting.&nbsp; Does your macro account for special characters within a query? more info on the wiki: <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_</a>...