making a "charity" skill

i am trying to make a skill where the user donates some of their HP to one of their allies. something like 4%. i have no idea how to accomplish this, or if it would require a script. any help would be very appreciated!

edit: i would also need something to prevent the user from being able to target themself with the skill.
edit2: this has been solved! this can be closed now
This thread is being closed due to being solved. If you need it reopened, report it to let us know why. Thank you!

Oh wait! Before I do! How did you solve it? Just in case someone needs the same help.
Oh wait! Before I do! How did you solve it? Just in case someone needs the same help.
i used yanfly's skill cost script to make it cost the amount of hp it gives the ally 🙂
Thanks! Have a great day and good luck with your project endeavors~

Original thread: https://forums.rpgmakerweb.com/threads/making-a-charity-skill.166627/