So I'm trying to make a regen buff/state in which the amount of HP it restores per turn isn't based on the max HP of the actor the buff/state on but the max HP of the one that casts the buff/state
So for example:
Actor A has 1000 HP
Actor B has 500 HP
Actor A casts regen on Actor B for 2 turns
On Actor B's turn they regen for 10% of Actor A's max HP which is 100
(The sentence below is optional but just a thought on what could happen as well)
And say through buffs on the 2nd turn Actor A has a bigger max HP to 1500 and so subsequently the regen on Actor A increases to 150 instead of 100 because Actor A has a bigger max hp.
Also if it's of any help only 1 actor will have this skill so I think referencing the max hp would be simpler than if multiple actors had the same skill
Now how would I go about this? Or if plugins are needed which ones would it be?
Thank you to anyone taking their time to reply to this
So for example:
Actor A has 1000 HP
Actor B has 500 HP
Actor A casts regen on Actor B for 2 turns
On Actor B's turn they regen for 10% of Actor A's max HP which is 100
(The sentence below is optional but just a thought on what could happen as well)
And say through buffs on the 2nd turn Actor A has a bigger max HP to 1500 and so subsequently the regen on Actor A increases to 150 instead of 100 because Actor A has a bigger max hp.
Also if it's of any help only 1 actor will have this skill so I think referencing the max hp would be simpler than if multiple actors had the same skill
Now how would I go about this? Or if plugins are needed which ones would it be?
Thank you to anyone taking their time to reply to this