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

Rolling a check, and then adding modifiers to the same check in a macro possible?

As part of a character I am playing in an upcoming campaign, I have an ability that rolls a skill check, and then depending on the result, adds a different set of modifiers to the result to get my final value. The issue that I am having, is that I don't know of a way to reference the value of the previous roll to use in future operations. Does anyone know how to accomplish this? Example of what I mean: /r 1d20+@{heal}  //the initial check if check is >25, add @{wisdom_mod} to the initial check if check is >30, add @{wisdom_mod} and @{knowledge_planes} to the initial check
1598045357

Edited 1598046239
David M.
Pro
API Scripter
Unfortunately, there is no conditional logic available in the macro language. A custom api script could accomplish this, but that is a pro subscriber perk only.
Ah ok. That is probably a bit more in-depth than I want to go for such a minor part of character. Thanks for your help.
1598046246
David M.
Pro
API Scripter
The following will at least put it all in the same results window for you &{template:default} {{name=Heal}} {{Base roll=[[1d20 + @{heal}(heal)]]}} {{If >25=--> add [[@{wisdom_mod}(WIS)]]}} {{If >30=--> add [[ [[@{wisdom_mod}]] + [[@{knowledge_planes}]](WIS + Knowledge Planes) ]] }}