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

Calling a Macro for the Selected Character Sheet

Hello, I am new to Roll20. Is there anyway to create a macro to fire of a macro for the selected character sheet? I have a goblin character sheet and a token pointing to it. I entered weapons for it. I can drag the weapon token down and I get a macro named "Goblin: MeleeAttack1" at the bottom of the screen. Fine. However, I would like a generic button to which simply does this for the selected token. It seems extremely bulky to look up a character switch to the weapons panel and then click on the button? Is there anything such as "#@{selected|macroname} to just run the macro for the selected character? Further, is there any way of finding out the macro names or variable names for a character sheet?
1469520738
Ziechael
Forum Champion
Sheet Author
API Scripter
Hi Brett, it is fairly easy to craft a universal macro that could be added to your quick bar and would allow you to call the same information from different sheets based on the token selected. It sort of depends on the system/sheet you are using as to how it would look but I would highly recommend looking at the  system specific wiki pages as well as those dedicated to  macros in general to assist with your development. Of course it is a steep learning curve so feel free to ask any questions you might have.
Brett W. said: I can drag the weapon token down and I get a macro named "Goblin: MeleeAttack1" at the bottom of the screen. You're describing dragging a Sheet Roll Button down to the Macro Bar . Each Roll Button has a corresponding Ability call that can be used to call it. You've successfully determined the name of that Ability call by dragging the Roll Button down to the Macro Bar; you can use %{selected|MeleeAttack1} to accomplish what you'd like.
Yes, that's exactly what I was looking for. Many thanks!