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

Help! Macro HP?

I am wanting to set up a macro my players can use to allow healers to heal another character's token with minimal interaction. I use bar 3 for HP on my players can I get help setting up a macro to cast a spell (or effect) off a selected token, and have it apply the result to a target|bar3 ? I have been trying to work on this myself to no effect for the last 2 weeks. Thank you in advance for any assistance.
1551924615

Edited 1551924697
The Aaron
Roll20 Production Team
API Scripter
This requires the API.  You can do it with TokenMod: !token-mod {{ --set bar3_value|[[{(@{target|Wounded|bar3}+?{Heal Amount}),@{target|Wounded|bar3|max}}kl1]] --ids @{target|Wounded|token_id} }} You'll need to be sure players can use ids in TokenMod's settings for that to work, just run the help: !token-mod --help And click the button at the bottom. Or run this command: !token-mod --config players-can-ids
so this is an api only option? I was hoping to avoid adding more api's but at least this lets me know where to look. Thank you Aaron.
1551925139
The Aaron
Roll20 Production Team
API Scripter
Yeah, there isn't any way for a macro to adjust the bars of a token.
1551925160
The Aaron
Roll20 Production Team
API Scripter
TokenMod is in the 1-click installs, so pretty easy to add.
Is there a way to have the mod set the hp on its own without having to manually enter a number separately after the cast?
I want to make this so simple a chimanzee could do it, i have people constantly forgetting to change/add the hp after healing
and is token mod known to interfere with any other mods? like torch, shaped companion etc?
1551929816
The Aaron
Roll20 Production Team
API Scripter
It shouldn't interfere with any of those, though there are edge cases to everything.  If you have a script that triggers behavior when a player changes one of their bars, it may not be triggered by TokenMod changing a bar, unless it has specifically been set up for that. There isn't a way to have TokenMod get the HP number from the casting of a spell.  A purpose built API script would watch for a casting to occur and extract the HP change from the spell and then adjust the token in question by that amount.  Depending on the Sheet, specifically the formatting of the Roll Template, that may or may not be a serious pain. 
got ya thanks for the info