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

Using RollQueries/Variables to choose which Macro to run.

Hi all! Pretty fresh DM, my first group of players have just hit level 4 running Shadowfell Keep, DND 4th Ed. I really want to simplify how my players kick off their attacks and damage rolls. I do like them separate, as they seem to enjoy the tension of knowing whether they hit before they roll damage. Unfortunately this means they end up with multiple confusing macros to choose from, such as "off-hand,attack,DEX" etc, for each permutation of weapons and Stat modifiers (generally Dex and Str) and a set for Attacks and Damage. I wrote the macros for them as I have a background in CompSci so I'm okay with looking up all the instructions and putting it together. My goal now is to make it so they can choose which weapon to use (say, mainhand, offhand, ranged), then make their attack roll using either STR or DEX. I had a play with trying to use RollQueries to determine the weapon and modifier: eg: /roll 1d20+#?{which mod|STR} OUTPUT: rolling 1d20+#STR I was hoping with something like this I could make it resolve the query first and then run a modifier+level macro etc. So far, no luck even with [[]] around things. Anyone have any luck attempting something similar? Thanks for reading!
Sorry pal... ain't gonna happen. At least, if it does, you'll have figured out something that's got the rest of us stumped!! q;} What you want is a higher-level function than that which is currently provided for, in the base subscription price (a reasonably affordable 'free'!) However, and I see you're already a supporter so you've got that going for you, which is nice, this is something that (most likely) CAN be done using the API , or Amazing Player Interactor. Or something like that, I think. This is a mentor-level thingy, so you'll have to pony up a li'l more dough, but it's worth it isn't it? You can probably find details there, but you should also check out the API Forum , maybe someone's already made what you're looking for. Barring that, unfortunately, the best you're gonna be able to do is to try to narrow down the number of macros you use, or at least have displayed at one time. I find it's fairly easy to keep the numbers down if you divide your macros between token actions, actual visible macros, and those 'hidden' in character sheets and the settings tab. By this I mean, I tend to keep the most-used ones visible all the time, followed by those primarily for combat as token actions, and then the rest (things that don't get used very often, like individual skill checks) remain within the character sheet, aka journal entry. If you're familiar with Javascript, the API is definitely the answer you're looking for. And if you can write such a program in it, I'm sure the rest of the Roll20 community would love to have a copy! Good luck, and welcome to Roll20! -Phnord
1406019092

Edited 1406019237
Gauss
Forum Champion
At this time there is no way for you to do that (short of the already mentioned API, a Mentor level feature). Have you tried Token Actions? You could name each action (Ability or Macro) with the appropriate name.