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

Can a macro automatically adjust a stat on a character sheet?

I'm trying to make a macro that would automatically deduct HP from a character when the damage is rolled by another character. I know how to have one character Target another, but I'm trying to make it so that when the damage is rolled, it is automatically deducted from the Target character's HP. Anyone know if this is possible? (Even if I have to have a separate macro that asks how much damage was dealt and I have to fill that in and then it automatically updates the Target character's HP.)
1598546350

Edited 1598546365
Andreas J.
Forum Champion
Sheet Author
Translator
Not, macros alone can't do that. You need to use APIs to edits stats. ChatSetAttr is a popular API for that. Some companion scripts can adjusts ammo or spellslots automatically when you make an attack/cast a spell.
Ah, okay. Thanks. I haven't delved into the world of APIs yet, personally. But I just upgraded, so I guess I can start looking into it.