Change enemies extra parameters depending on characters' extra parameters

Hi,
I am currently trying to set an enemies extra parameters (like evasion or counter rate) depending on one of my own characters.

More detailed, I am using SumRndmDde's Stat Distribution Plugin to be able to raise Actor 5's evasion and counter rate.
I now want this character to be fightable later on in the game and have him to have the exact parameters and extra parameters that he had when he left my party.

So far I found out that I can store both parameters and extra parameters in variables using and event, going to 'control variables' and setting the variable via script ($gameActors.actor(5).eva).

I also know that using the script call
$gameActors.actor(5).addparam(1, $gameVariables.value(61));
can change an actors base parameters (here MP) depending on my previously set variables.

What I don't know is
A ) how to do that with extra parameters nor
B ) how to change parameters and extra parameters for a specific enemy instead of an actor.
The way a battler's ex-parameters work are different from their normal parameters in that they all come from traits, so you need to change the battlers traits - which are all set up in the database and are difficult to change mid-game.
To get around this you can either use a script to force new traits onto an otherwise blank battler based on your variables, or you can use a dynamic traits plugin. Shaz has one you can check out here.
Oof, I wasn't active much here and completely forgot about this thread...
Despite probably necroposting, here's how I solved the problem in the end, in case anyone's interested:

1. Set up variables using the script $gameActors.actor(5).eva
2. When the battle against the character starts, force him to use an action (in my case a barrier skill he would have used anyway) on round 0, so instantly.
3. Set up the damage formula of that skill like this:
a.setEva(v[69]); a.mmp
You can combine this with all other sorts of base and extra parameters at will. Becuase it still needs an actual damage formula at the end I decided to also make it a full heal, which was convenient for my case because the skill also raised the max HP, which were then immediately healed to full at the start of the battle.

Original thread: https://forums.rpgmakerweb.com/threads/change-enemies-extra-parameters-depending-on-characters-extra-parameters.106905/