An ability that would partially transfer a portion of stats?

My game has (now 16, had to scale back cause I was putting the bar too high) many characters which do all sorts of things. My game revolves around building the best team possible with characters who's abilities work in synergy with each other. Now, I was wondering, how would one do an ability for a support character that would transfer 20% of his attack, magic attack, defence, and spell resistance to one team member for a few turns?

Say for example this character would have 500 attack, 300 magic attack, 400 defence and 250 magic defence. Upon using a certain ability, this character would transfer 100 attack, 60 magic attack, 80 defence and 50 magic defence to one team member for 4 turns.

How would one do this?

Original thread: https://forums.rpgmakerweb.com/threads/an-ability-that-would-partially-transfer-a-portion-of-stats.86918/