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 .
×

Select and run abilities from list

just because of a bit of laziness during a game i am trying to do a macro button to give me a list of my abilities and then execute them based on the one i select the one i have go to so far is ?{Ability|Attack, %{Ghrom|Attack} |Bezerk Attack, %{Ghrom|Bezerk-attack} |BronzeSword, %{Ghrom|BronzeSword} |Initiative,%{Ghrom|Initiative} |Intelligence,%{Ghrom|Intelligence} |Perception,%{Ghrom|Perception} |PsychicTalent,%{Ghrom|PsychicTalent} |Reflexes,%{Ghrom|Reflexes} |Social,%{Ghrom|Social} |Strength,%{Ghrom|Strength} |Unarmed,%{Ghrom|Unarmed} |Dagger,%{Ghrom|Dagger}} but doesnt seem to work right, am i missing a piece if syntax ?
With abilities you run the risk of the abilities themselves having characters that would end a query before you want it to. This is because due to Roll20's order of operations, ability/macro calls are processed before queries. So if an ability/macro uses a roll template or query, there will be '}' characters which your macro will read as an 'end-of-query' character. Rather than trying to accomplish this macro through a query, I would recommend that you use Command Buttons .
thats a shame, i have too many macros, and the token actions/bar etc fills up quickly.
1539979314

Edited 1539979328
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Peter M, look at  Chat Menus . They are much easier to format and far more forgiving. Your macro above would be: /w gm &{template:default} {{name=My Abilities}} {{=[Attack](~Attack} [Bezerk Attack](~Bezerk-attack} [BronzeSword](~BronzeSword) [Initiative](~Initiative) [Intelligence](~Intelligence) [Perception](~Perception) [PsychicTalent](~PsychicTalent) [Reflexes](~Reflexes) [Social](~Social) [Strength](~Strength) [Unarmed](~Unarmed) [Dagger](~Dagger)}} This would need to be saved as an ability on the same sheet as Ghrom's other abilities. You can probably come up with a prettier template than the default, but it is universal. Also, the /w gm is at the beginning to avoid spamming the chat of other players.
actually worked it out, for some reason works with macros not abilities , but either way works fine, ?{Select Ability|Attack,#Attack |Bezerk,#Bezerk-attack |BronzeSword,#BronzeSword |Initiative,#Initiative |Intelligence,#Intelligence |Perception,#Perception |PsychicTalent,#PsychicTalent |Reflexes,#Reflexes |Social,#Social |Strength,#Strength |Unarmed,#Unarmed |Dagger,#Dagger }
1540103554
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The reason it works as macros is what Kyle G pointed out above. Those } brackets are tricky to use.