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

D&D 5 ed. macro

Id like to create a macro that will solve skill checks that use non standard attributes. Such as a stealth check using intelligence mod, or athletics check using dexterity mod. I tried to make one that asked for the skillname and the ability name, heres my failed macro. %{selected|character_name} makes a ?{skillname} | ?{ability} check. [[1d20 + @{selected|?{ability}_mod} + @{selected|?{skillname}_prof_exp}]] | [[1d20 + @{selected|?{ability}_mod} + @{selected|?{skillname}_prof_exp}]] vs DC. can it work ? or am i messing up my bracketing?
Just a quick look but on the first line you have a space after | but on the second line not - does that make any difference at all? I'd take a more in depth look but i'm on a tablet atm - if u dont get any solution before i get home i'll play 'round with it as well - i mean it seems like it would work.
The macro system is unable to use a Query to call the value of an attribute. It would only pull in the raw text (no calculations) You won't be able to ask the user what attribute to use and have it calculate the value. You need to know ahead of time what attributes you're going to be calling.