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

Dropdown Macro Triggers

This may have been asked before but I can't see it. I have a load of buttons for various powers and was wondering, can I create a macro that has a dropdown menu for each of these buttons 4e. Essentially I would only need 1 button for all powers? I love roll20 and any help is greatly appreciated. Thanks
The Drop-down query would effectively replace the buttons  (I don't see many reasons to use both, really) Drop-down queries take the (general) format of: ?{Pop-up prompt text | Label1, Result1 | Label2, Result2 | Label3, Result3 ... } Example: ?{Select Power | At-Will power1, Power 1 does blah blah for [[1d6]] damage, etc | At-Will power2, Power 1 does blah blah for [[1d6]] damage, etc | Encounter Power1, Encounter Power 1 does blah blah for [[2d6]] damage,etc }
1466080786

Edited 1466080921
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Qwerty has gotten one  working for pathfinder; should be possible to convert it. The problem with using drop down queries is that you have to do a ton of html escapes of problem characters in the other macros/abilities. I personally prefer making  ability command button menus as there is no html escaping needed. 
Mark G. said: The Drop-down query would effectively replace the buttons  (I don't see many reasons to use both, really) Drop-down queries take the (general) format of: ?{Pop-up prompt text | Label1, Result1 | Label2, Result2 | Label3, Result3 ... } Example: ?{Select Power | At-Will power1, Power 1 does blah blah for [[1d6]] damage, etc | At-Will power2, Power 1 does blah blah for [[1d6]] damage, etc | Encounter Power1, Encounter Power 1 does blah blah for [[2d6]] damage,etc } Thanks for this Mark but I think you lost the real meaning of my question. I don't want to copy/paste all macros into 1. What I was after was a dropdown based on already created macros so I don't need to use Token Macro. Say I have 10 made macro buttons for attack, I could untoken them and have 1 macro that could trigger any 1 of the 10 already generated.
1466093460

Edited 1466095767
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Dougie said: Mark G. said: The Drop-down query would effectively replace the buttons  (I don't see many reasons to use both, really) Drop-down queries take the (general) format of: ?{Pop-up prompt text | Label1, Result1 | Label2, Result2 | Label3, Result3 ... } Example: ?{Select Power | At-Will power1, Power 1 does blah blah for [[1d6]] damage, etc | At-Will power2, Power 1 does blah blah for [[1d6]] damage, etc | Encounter Power1, Encounter Power 1 does blah blah for [[2d6]] damage,etc } Thanks for this Mark but I think you lost the real meaning of my question. I don't want to copy/paste all macros into 1. What I was after was a dropdown based on already created macros so I don't need to use Token Macro. Say I have 10 made macro buttons for attack, I could untoken them and have 1 macro that could trigger any 1 of the 10 already generated. This is possible, but you still have to do the html escapes in all the other macros as if you were copying them. EDIT: So, as an example macro for calling other macros: ?{What ability?|Attack 1,@{selected|attack1}|Attack 2,@{selected|attack2}|...|Attack N, @{selected|attackN}} However, since all the ability, attribute, and macro calls are replaced with their actual values before the roll query is called, you have to escape all the ending brackets ('}') in any templates you use and any '|' that you use for dividing with the correct html code. You do not replace the ending '}' in other ability, attribute, or macro calls, but again you then have to html escape all those values as well. And once you've html escaped the value, it won't work anywhere but in a roll query. The alternative of using Ability Command Buttons gives chat output like this: And clicking on each button calls the respective ability or macro.