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

Trying to write a Macro for armor and armor piercing

I'm trying to write a macro for a shadowrun 4e game, which is a success test after comparing an armor value subtracted by an armor piercing value that cannot be lower than zero. So far I got this: /r (@{BODY}+(?{armor|0}+?{AP|0}+abs(?{armor|0}+?{AP|0}))/2)d6sd>5 but it does the math problem but will not roll the result, suggestions?
1587928062
Kraynic
Pro
Sheet Author
Just a shot in the dark, but what happens if you put double square brackets around your calculation for the number of dice to roll? /r [[(@{BODY}+(?{armor|0}+?{AP|0}+abs(?{armor|0}+?{AP|0}))/2)]]d6sd>5 I haven't played SR since the original, so don't know the system to help much, but sometimes using the inline roll brackets to force something to resolve to a number inside a /roll will make things work.
That works! Thankyou!