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

[Macros] Populating a Dropdown Menu based on Existing Attributes

So, I'm trying to modify a very basic macro I had initially for my Exalted group, and have two queries regarding as to whether it's possible without API-assistance (and if not, what might I need?) Firstly: is there a method of getting two dropdown queries at once? Clicking the Macro once, to have a box appear that has a drop down for Attributes, one for Abilities, and then a third box to input any final modifying dice, such as charm usage, stunt dice, or action penalties? Secondly: is there a method of populating those dropdown menus with abilities that the characters possess? There are some custom abilities/skills that show up, and making separate macros for those skills seems redundant, or overkill when they already have a huge library of macros for their other charms/abilities.
1462993549
Lithl
Pro
Sheet Author
API Scripter
Not if you mean "showing both dropdowns on screen at the same time". You can certainly make a macro that contains two different queries each with a dropdown, but the second won't show until you confirm your selection for the first. I mean, you could in theory have a single dropdown with an item for each and every possible attribute+ability combination, but that would be... long. I can't think of a means to accomplish this without the API
Animus said: Secondly: is there a method of populating those dropdown menus with abilities that the characters possess? There are some custom abilities/skills that show up, and making separate macros for those skills seems redundant, or overkill when they already have a huge library of macros for their other charms/abilities. If those Abilities do not contain any vertical bars, commas, or closing curly braces, you could call those Abilities directly inside of a Roll Query without issue. If they do, you would need to either remove those characters (or replace them with HTML entities) in order to call those Abilities within a Roll Query, as per Advanced Usage for Roll Queries and Roll Query Troubleshooting . As an alternative, you could task your players with writing and maintaining their own "menus" of  Ability Command Buttons . For example, &{template:default} {{name=Ability Menu}} {{ [Magic Missile](~Character Name|MagicMissile) [Jump Check](~Character Name|jump) etc. }}
1462996325

Edited 1462996348
Brian said: Not if you mean "showing both dropdowns on screen at the same time". You can certainly make a macro that contains two different queries each with a dropdown, but the second won't show until you confirm your selection for the first. I mean, you could in theory have a single dropdown with an item for each and every possible attribute+ability combination, but that would be... long. I can't think of a means to accomplish this without the API Showing both is absolutely what I'm looking for, unfortunately, to attempt to save my players time. I'm not sure that there's an API script that exists to manipulate that, though. Or if there is, I'm not aware of it. Silvyre said: If those Abilities do not contain any vertical bars, commas, or closing curly braces, you could call those Abilities directly inside of a Roll Query without issue. If they do, you would need to either remove those characters (or replace them with HTML entities) in order to call those Abilities within a Roll Query, as per Advanced Usage for Roll Queries and Roll Query Troubleshooting . As an alternative, you could task your players with writing and maintaining their own "menus" of  Ability Command Buttons . For example, &{template:default} {{name=Ability Menu}} {{ [Magic Missile](~Character Name|MagicMissile) [Jump Check](~Character Name|jump) etc. }} I'm already aware of the basics. Below is the current code (using PowerCards). I'm actually looking for a means of populating a dropdown without manually inputting every attribute (9) and every ability (25). Players creating their own individual macros is basically impossible using the second suggestion. They'd need 25*9 macros alone to cover all of the options. More if they have multiple Crafting or Martial Arts abilities. Which is why I asked about populating the list easily. I perhaps, failed to establish that I meant automatically, and without requiring hundreds of macros for my players (who already have a minimum of 20 macros on their bar). !power --charid|@{selected|character_id} --corners|10 --format|solar --name|?{Action|Test} --leftsub|?{Stats used| Strength + Athletics} --rightsub|Motes used: ?{motes|0} --Roll: [[ [[ ?{Dicepool|0} + #stunt ]]d10sa>7 +?{Bonus Successes|0}]] successes. ?{Doubles|10}s are doubled.
1462998905

Edited 1462999194
Animus said: I'm actually looking for a means of populating a dropdown without manually inputting every attribute (9) and every ability (25). There exists no means of doing this short of using an API Script. However, if were you storing the "abilities/skills" on fields within a Character Sheet, you would be able to accomplish this by referencing the corresponding Attributes. If your goal is to optimize your players' macros (e.g. by reducing the amount of Roll Queries used), I would be happy to provide suggestions, if you're interested.
Silvyre said: If your goal is to optimize your players' macros (e.g. by reducing the amount of Roll Queries used), I would be happy to provide suggestions, if you're interested. I would be, as that's the goal. As it is, they get 3 (Total Pool, post-modifiers; Stunt Dice; Additional Successes), but I'd like to make use of the sheets  to speed things up, so they're not being expected to know their base pool, additional dice from charms, modifiers for wound penalties, flurry penalties, and then external penalties, all at once. The intent is that the players should be able to use their Roll20 sheets as something more than a reference.