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 Help Wanted - Character Sheet API Buttons to call another character sheet macro

I've built a Conditions macro that uses API buttons to call a filled out npc template with a cool image and all the rules for the condition, as so: * However, after now reading the Stupid Roll20 Tricks page I see the value of moving my macros to a Macro Master character sheet, and at this point , everything stopped working.  I can't find away to get the individual condition macros called.  I have tried both API buttons and a drop down query to call them and neither works. Please help API Buttons &{template:npcaction} {{rname=Condition}} {{[Blinded] %{MacroMaster|ConditionBlinded} }}  Attempted Query (I've tried it with and without the troublesome { and | to no avail) ?{Condition| Blinded, %{MacroMaster|ConditionBlinded}| } Thank you *The art used for these conditions comes from  Paul Webber 's Condition cards
1589814120
GiGs
Pro
Sheet Author
API Scripter
The button here isnt using the correct syntax: &{template:npcaction} {{rname=Condition}} {{[Blinded] %{MacroMaster|ConditionBlinded} }} You need a set of () immaterially after the [] like so &{template:npcaction} {{rname=Condition}} {{[Blinded](%{MacroMaster|ConditionBlinded})}} But thats not quite complete either. You need to use one of the two forms following: &{template:npcaction} {{rname=Condition}} {{[Blinded](~MacroMaster|ConditionBlinded)}} &{template:npcaction} {{rname=Condition}} {{[Blinded]( !
% {MacroMaster|ConditionBlinded})}} If the first doesnt work, try the second. See API Command Buttons and Ability Command Buttons in the wiki.
@GiGs you 💎! That was exactly what was wrong.  The final looks like this for reference: &{template:npcaction}{{rname=Conditions}}{{description=[Blinded](~MacroMaster|ConditionBlinded)[Deafened](~MacroMaster|ConditionDeafened)[Frightened](~MacroMaster|ConditionFrightened)[Grappled](~MacroMaster|ConditionGrappled)[Incapacitated](~MacroMaster|ConditionIncapacitated)[Invisible](~MacroMaster|ConditionInvisible)[Paralyzed](~MacroMaster|ConditionParalyzed)[Petrefied](~MacroMaster|ConditionPetrified)[Poisoned](~MacroMaster|ConditionPoisoned)[Prone](~MacroMaster|ConditionProne)[Restrained](~MacroMaster|ConditionRestrained)[Stunned](~MacroMaster|ConditionStunned)[Unconscious](~MacroMaster|ConditionUnconscious)}}
1589824266
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The syntax for calling macros and abilities from other sources to put into buttons is detailed in this post: Chat Menu There are 3-4 cases, all slightly different in how they are called.