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

Need help with token macros!

So I made a Token Macro to keep all of my character's weapons into a drop down box once the token macro is clicked. while I was making it, it worked great inputting it directly into the chat while creating it, but when I put it into the token macros and clicked the button (also tried it from the abilities tab) it just broke. I thought I might have messed up something, so I copied the code from the token macro and put it into the chat and hit enter and it worked again. any idea as to why it breaks via token macro but not when inputted into the normal chat? When put into normal chat ⬇️ When put into token macro ⬇️  Here is the macro (It uses powercards to add some flavor, that part works fine) ?{Which Weapon?|Glaive, !power {{ --emote|**@{selected|token_name} attacks with her Glaive!** --tokenid|@{selected|token_id} }} @{Eris|wtype}&{template:atk } {{mod=+6 } } {{rname=[Glaive](~-N3VkdnyxasmSOJ2jjWh|repeating_attack_-N5xsFwEWlXY4Gj944Kf_attack_dmg) } } {{rnamec=[Glaive](~-N3VkdnyxasmSOJ2jjWh | repeating_attack_-N5xsFwEWlXY4Gj944Kf_attack_crit) } } {{r1=[[@{Eris|d20}cs>20 + 3[STR] + 3[PROF]]] } } {{query=1 } } {{normal=1 } } {{r2=[[0d20 cs>20 + 3[STR] + 3[PROF]]] } } {{range= } } {{desc= } } {{spelllevel= } } {{innate= } } {{globalattack=@{Eris|global_attack_mod} } } ammo= @{Eris|charname_output}|Mace, !power {{ --emote|**@{selected|token_name} attacks with her Mace!** --tokenid|@{selected|token_id} }} @{Eris|wtype}&{template:atk } {{mod=+6 } } {{rname=[Mace](~-N3VkdnyxasmSOJ2jjWh | repeating_attack_-N5xsFwEWlXY4Gj944Ki_attack_dmg) } } {{rnamec=[Mace](~-N3VkdnyxasmSOJ2jjWh | repeating_attack_-N5xsFwEWlXY4Gj944Ki_attack_crit) } } {{r1=[[@{Eris|d20}cs>20 + 3[STR] + 3[PROF]]] } } {{query=1 } } {{normal=1 } } {{r2=[[0d20 cs>20 + 3[STR] + 3[PROF]]] } } {{range= } } {{desc= } } {{spelllevel= } } {{innate= } } {{globalattack=@{Eris|global_attack_mod} } } ammo= @{Eris|charname_output}|Warhammer (1h), !power {{ --emote|**@{selected|token_name} attacks with her Warhammer!** --tokenid|@{selected|token_id} }} @{Eris|wtype}&{template:atk } {{mod=+6 } } {{rname=[Warhammer (One-Handed)](~-N3VkdnyxasmSOJ2jjWh | repeating_attack_-N5xsFwEWlXY4Gj944Kg_attack_dmg) } } {{rnamec=[Warhammer (One-Handed)](~-N3VkdnyxasmSOJ2jjWh | repeating_attack_-N5xsFwEWlXY4Gj944Kg_attack_crit) } } {{r1=[[@{Eris|d20}cs>20 + 3[STR] + 3[PROF]]] } } {{query=1 } } {{normal=1 } } {{r2=[[0d20 cs>20 + 3[STR] + 3[PROF]]] } } {{range= } } {{desc= } } {{spelllevel= } } {{innate= } } {{globalattack=@{Eris|global_attack_mod} } } ammo= @{Eris|charname_output}|Warhammer (2h), !power {{ --emote|**@{selected|token_name} attacks with her Warhammer!** --tokenid|@{selected|token_id} }} @{Eris|wtype}&{template:atk } {{mod=+6 } } {{rname=[Warhammer (Two-Handed)](~-N3VkdnyxasmSOJ2jjWh | repeating_attack_-N5xsFwEWlXY4Gj944Kh_attack_dmg) } } {{rnamec=[Warhammer (Two-Handed)](~-N3VkdnyxasmSOJ2jjWh | repeating_attack_-N5xsFwEWlXY4Gj944Kh_attack_crit) } } {{r1=[[@{Eris|d20}cs>20 + 3[STR] + 3[PROF]]] } } {{query=1 } } {{normal=1 } } {{r2=[[0d20 cs>20 + 3[STR] + 3[PROF]]] } } {{range= } } {{desc= } } {{spelllevel= } } {{innate= } } {{globalattack=@{Eris|global_attack_mod} } } ammo= @{Eris|charname_output}|Unarmed, !power {{ --emote|**@{selected|token_name} attacks with her These Hands!** --tokenid|@{selected|token_id} }} @{Eris|wtype}&{template:atk } {{mod=+6 } } {{rname=[Unarmed Strike](~-N3VkdnyxasmSOJ2jjWh | repeating_attack_-NNqVoSEDtMUbKofLLuI_attack_dmg) } } {{rnamec=[Unarmed Strike](~-N3VkdnyxasmSOJ2jjWh | repeating_attack_-NNqVoSEDtMUbKofLLuI_attack_crit) } } {{r1=[[@{Eris|d20}cs>20 + 3[STR] + 3[PROF]]] } } {{query=1 } } {{normal=1 } } {{r2=[[0d20 cs>20 + 3[STR] + 3[PROF]]] } } {{range= } } {{desc= } }{ {spelllevel= } } {{innate= } } {{globalattack=@{Eris|global_attack_mod} } } ammo= @{Eris|charname_output}}
1675978874
GiGs
Pro
Sheet Author
API Scripter
It looks like you are using the Power Cards script, so I suggest asking in that dedicated thread for help. But before you do, are these macros stored in the Collections Macros or in a character's Abilities? You have html entities like this } which can be the source of problems in macros stored in Collections.
1675981096
Gauss
Forum Champion
To add to what GiGs wrote: When an HTML entity (such as } ) is stored in a Collections tab Macro it can revert to what it represents, breaking the macro. You need to put them in an Ability macro on a character sheet. 
I have them in ability macros and am using HTML entities. I know when you put them in normal macros and reopen them they will just revert to their normal stuff. I have the same instances of entities in other token macros that do not break like this. Also the powercards API is just used to say what the person is doing and does not relate to the problem I'm having as the broken pieces are not contained in the part of the macro in which the powercards API is being ran. I came up with a different solution for the problem and I think it looks fancier so I'm gonna a go with it. If anyone can figure out how to fix this issue however I would still love to see why this one macro chose to break the way it did. Here's Pictures of what I went with instead: