Can someone help me

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
Song
Kobold
Posts: 1
Joined: Wed Aug 12, 2015 4:15 pm

Can someone help me

Post by Song »

I'm trying to figure out how to handle healing based on percentage of the tokens maximum health. What I mean is that if the token has taken damage then a macro will check for a set percentage of the MaxHP property and add that back into the HP property. I've that to work ok, but the problem I have is getting it to stay bellow the MaxHP value without having to run it again or run a second HPCheck macro, can anyone help me get this to work so that it never goes above HP is never greater than MaxHP

User avatar
aliasmask
RPTools Team
Posts: 9029
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Can someone help me

Post by aliasmask »

Sort of like a regeneration?

Code: Select all

[H: HP = min(HP + regenHP,maxHP)]


Post Reply

Return to “Macros”