(MZ) making a charecter have a regenerative effect in battle based on a variable

Not sure if this can be done or not, but im trying to have a charecter grant allies a HP regen effect were the % is based on a variable. for example, if the variable is 8, allies heal 8% when their ATB bar reaches full

The charecter could also choose to use this variable to power up their skills, but 1 problem at a time. how can i do this?

Original thread: https://forums.rpgmakerweb.com/threads/mz-making-a-charecter-have-a-regenerative-effect-in-battle-based-on-a-variable.128431/