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

Macro Help

I want to take the result of the below roll and have it removed from a selected target token's current HP but cant figure out how to get the macro to reference the result of the attack roll. &{template:default} {{name=Damage Roll}} {{Damage=[[?{Damage?|1d6}+@{selected|HTH_Dam}-(@{Target|Defense})]]}} How would I reference the result of a roll in a macro? (if I even can)
1489077832
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Unfortunately, macros can't change values. This is only possible with an API script (pro perk). Even then, you'll need a custom script (or maybe Powercards) in order to reuse the result of a roll in this manner.
Ah ok, thanks for the quick response.