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

How do you call a macro located on a character sheet from another macro?

I really like using these conditions macros in my campaign: <a href="http://geekfightclub.net/roll20-condition-macros/" rel="nofollow">http://geekfightclub.net/roll20-condition-macros/</a> But instead of keeping them as universal macros that I'll need to manually move between campaigns, I wanted to add them to character sheets so I can just transmorigfy those between campaigns. So I have them set up and the individual condition macros work just fine, i.e. I can select on a token and hit the "blinded" macro and it puts the right text in the chat and sets the status marker.&nbsp; However, what doesn't work is clicking the overall "Conditions" macro to choose what condition applies. I click it, it whispers the red boxes in chat to me, but if I choose one is just dumps the name of the macro it should have called in the chat: So how do I modify the text to call the nested macros correctly? Here's the code for the overall Conditions macro: /w gm Conditions: [Blinded](!&amp;#13;#y-Condition-Blinded) [Charmed](!&amp;#13;#y-Condition-Charmed) [Deafened](!&amp;#13;#y-Condition-Deafened) [Dying](!&amp;#13;#y-Condition-Dying)&nbsp; [Frightened](!&amp;#13;#y-Condition-Frightened) [Grappled](!&amp;#13;#y-Condition-Grappled)[Incapacitated](!&amp;#13;#y-Condition-Incapacitated) [Invisible](!&amp;#13;#y-Condition-Invisible) [Paralyzed](!&amp;#13;#y-Condition-Paralyzed) [Petrified](!&amp;#13;#y-Condition-Petrified) [Poisoned](!&amp;#13;#y-Condition-Poisoned) [Restrained](!&amp;#13;#y-Condition-Restrained)&nbsp; [Stunned](!&amp;#13;#y-Condition-Stunned) [Unconscious](!&amp;#13;#y-Condition-Unconscious) [Remove Conditions](!&amp;#13;#Remove-Conditions)
1591400828
GiGs
Pro
Sheet Author
API Scripter
When it dumps the text in chat, it means it cant find the macro, usually because it doesnt exist. If those macros do exist, is the name correctly spelled? If you've moved them to a character sheet, the syntax is different: [Blinded](~NAMEOFCHARACTERSHEET|y-Condition-Blinded)
1591404197
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The&nbsp; Chat Menu &nbsp;post from the Stupid Tricks thread has syntax examples of the most common cases of calling macros or abilities from other places.
Thanks guys, this was great. For future reference, here's the final code that works (note I have all these macros on the same char sheet so I didn't need to do the nested reference): /w gm Conditions: [Blinded](~Blinded) [Charmed](~Charmed) [Deafened](~Deafened) [Dying](~Dying) [Frightened](~Frightened) [Grappled](~Grappled)[Incapacitated](~Incapacitated) [Invisible](~Invisible) [Paralyzed](~Paralyzed) [Petrified](~Petrified) [Poisoned](~Poisoned) [Restrained](~Restrained) [Stunned](~Stunned) [Unconscious](~Unconscious) [Remove Conditions](~Remove-Conditions)