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

Need some help with a fairly simple macro.

Trying to make something simple and I just can't get it to work. What I want to do is start with a number and multiply it by a selected characters attack attribute, then divide the result of that by a new target characters defense stat. This probably pretty simple, but I keep getting errors trying to do it. Any help is appreciated.
Well... what I would do would be something like this, assuming you want 'a number' to be a random d20 roll... [[ ( 1d20 * @{selected|AA} ) / @{target|DS} ]] (Spaces added for clarity) Does that not work?
Phnord Prephect said: Well... what I would do would be something like this, assuming you want 'a number' to be a random d20 roll... [[ ( 1d20 * @{selected|AA} ) / @{target|DS} ]] (Spaces added for clarity) Does that not work? Yes it worked perfectly thank you. Before it was giving me an error, must have had something wrong. Thanks again.
Glad to help.