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

Macro not working all of a sudden, but only on 1 character

This is the macro: @{character_name} &{template:atk}{{desc=**Attacks** **------------------------------------** **Melee** [@{repeating_attack_$2_atkname}](~@{character_name}|repeating_attack_$2_attack) [@{repeating_attack_$3_atkname}](~@{character_name}|repeating_attack_$3_attack) **------------------------------------** **Ranged** [@{repeating_attack_$0_atkname}](~@{character_name}|repeating_attack_$0_attack) **------------------------------------** **Spells** [@{repeating_attack_$4_atkname}](~@{character_name}|repeating_attack_$4_attack) [@{repeating_attack_$5_atkname}](~@{character_name}|repeating_attack_$5_attack) **------------------------------------** **Spells with Hex** [@{repeating_attack_$6_atkname}](~@{character_name}|repeating_attack_$6_attack) [@{repeating_attack_$7_atkname}](~@{character_name}|repeating_attack_$7_attack) }} I have similar macro's with other characters with work without problems, but on my warlock it get the error:  TypeError: Cannot read property 'substring' of undefined
Fixed, my characters name got changed and apparantly this doesn't work with "" in your name.