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 .
×
The developers are currently investigating an issue with logging in + accessing the VTT.
Create a free account

Macro with modifier and success-option

Hello everyone, I want to have a macro for an attack roll. Within that macro has to be a modifier and at least I want to have the success message. This is what I'm trying to do: /r (1d100+@{target|AW})<@{KW} Target has AW=20, Token has KW=50, diceroll=20 --> 20+20<50 ==> success! BUT: The macro doesn't recognize the last option "<@{KW" I'm just getting the result "40" What can I do? Or isn't it possible?
1397906039
Gauss
Forum Champion
You need to use braces {} instead of parenthesis () around the first part of your macro. /r {1d100+@{target|AW}}<@{KW}
I use this for AD&D2E: /em @{selected|token_name} нападение! Hits AC: [[@{selected|bar3} - 1D20 - ((?{Strength To Hit Adl|0}) + (?{Magic Adj|0}))]]
That works. Thanks!