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

Help me make a macro?

So, I want to set up a macro that looks like this: Character name uses a (skill query) and rolls a [[1d20+(same query)]]. Let's say the skill is swim. I have a character sheet with the attribute swim, with a numerical value. The character sheet has many other skills set as attributes as well. I want the character sheet to have the ability 'skill' which will ask which skill is to be used. The ability will then insert the value of that attribute into the inline die roll. In my mind, this should work: @{Name} uses his ?{skill|0} skill with a [[1d20+%{selected|?{skill|0}}]] but it doesn't. I've tried other variations on this, such as [[1d20+@{?{skill|0}}]] which also don't work. Is it even possible to nest something in this manner? If I haven't made myself clear, I wish a single ability (token action) that will ask which skill (attribute) to use to add to an inline roll, and then pick one of many, many attributes to put into that inline roll.
1388489592
Gauss
Forum Champion
You cannot put in a macro, ability, or attribute into a query. Sorry.
Even if it were to work correctly, you may also find your players making spelling mistakes, forgetting a space or not with two-word abilities, etc. It's not answering the original mechanical question, but I would recommend a few macros that combine groups of abilities, like Athletics. (swim, climb,jump, acrobatics,) Conversation(Bluff, Diplomacy,Intimidate, Sense Motive), etc.
Well, that's a shame. It'd be nice to be able to have one macro call up different ability scores as needed, but Mark G's idea of grouped ability rolls is a pretty good one. I'll look into using that. Thanks to both of you.