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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Using A Drop-Down Macro to call other macros

1514663851

Edited 1514663864
As the title suggests, I am trying to use a drop-down macro to call other premade macros. The situation I am in, I have several different macros for weapons and spells. I am trying to make a macro that creates a drop-down box that allows me to select which macro I want to call. What it looks like currently is something similar to: ?{Macro To Use| Weapon 1, #weapon-1| Weapon 2, #weapon-2| Spell 1, #spell-1| Spell 2, #spell-2 } Can someone help me with this? As this will save me a lot of room on my macro bar, because I have a lot of spells in this game I am currently in.
1514893042

Edited 1514893510
Ziechael
Forum Champion
Sheet Author
API Scripter
The slightly misnamed API buttons are your best friend here. You can create a query that will output to chat a button for a player to press which will trigger the relevant macro. Using your example above you would need something like: ?{Macro To Use|Weapon 1,[Weapon 1](!
#weapon-1)|Weapon 2,[Weapon 2](!
#weapon-2)|Spell 1,[Spell 1](!
#spell-1)|Spell 2,[Spell 2](!
#spell-2)} This assumes that the macros being used are held in the global 'collections' tab.
ah, i do not have access to scripting, so i was wondering if there was a way to do it as a macro in game.
The name is misleading. API buttons do not actually require access to the API.
1514974715
Ziechael
Forum Champion
Sheet Author
API Scripter
October31st said: ah, i do not have access to scripting, so i was wondering if there was a way to do it as a macro in game. Kyle G. said: The name is misleading. API buttons do not actually require access to the API. Sorry yes, I should have been more descriptive with my opening statement, as Kyle says the API buttons don't require a subscription of any sort to use in this fashion. My code macro is simply abusing their functionality to trigger chat commands but using the html line break entity (
) to put the macro effectively on a new line once the button is pressed.