Help with some skills

I'm making a rpg maker game and i have a big trouble, idk how to make the paramenters go to the player istead the enemy, without removing the damage to enemy. Example: I like to make the player damage some enemy and after gain a mat point on his stats.
Link a common event to the skill that when used raises the MAT parameter of the character... assuming it's a skill unique to that character, otherwise you're also going to have to implement a way to figure out who cast the skill. Also make sure to reset it after battle, otherwise it becomes a permanent stat increase that can be gotten over and over again.
Thx, i applied and thats work!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-some-skills.161960/