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

power card macro

Still quite new to all this Api & Macro stuff could any1 tell me why the following macro works on some characters & gives me the full spell list but on others it only gives me this (see pic) Have got powercards & powercards helper installed. This is the Macro !power {{ --replacespell|@{selected|character_id}|?{Spell to Cast|@{selected|l1_spell_list}} --inlinereplace|SSL|?{Spell Slot Level?|1,0|2,1|3,2|4,3|5,4|6,5|7,6|8,7|9,8} --replaceattrs|S-|@{selected|character_id}|@{selected|token_id} --replaceattrs|T-|@{target|character_id}|@{target|token_id} --replacement|Advantage --soundfx|_audio,play,nomenu|~SPELLSOUND$ --vfx_opt|~SPELLVFX$ --template|Basics|@{selected|token_id};@{target|token_id};casts ~SP-NAME$;~SP-NAME$;Save DC ~S-SSDC$;~SP-RANGE$;@{selected|whispertoggle} --template|SpellCast|~@{selected|rtype}$;@{selected|whispertoggle} }}
1640025099
Andreas J.
Forum Champion
Sheet Author
Translator
In ?{Spell to Cast|@{selected|l1_spell_list}} , you might need to use HTML entities to replace the "|" and "}" inside of "@{selected|l1_spell_list}" this is due to how roll queries don't handle well if there are special characters inside the options, but there are some contradictions in the documentation. <a href="https://wiki.roll20.net/Nesting" rel="nofollow">https://wiki.roll20.net/Nesting</a> <a href="https://wiki.roll20.net/HTML_Entities" rel="nofollow">https://wiki.roll20.net/HTML_Entities</a>
okay thank you i shall give that a try just seemed strange that the above macro works for 3 characters within the same game but not another character in the same game
1640027486
Andreas J.
Forum Champion
Sheet Author
Translator
then it might be something else. I missed the part about this affecting only some characters, so just brought up the common thing that often comes with queries.