How do I change enemy parameters using variables?

Is there anyway I can increase or decrease the value of variables to my enemy parameters?

I've always found it odd that it lets you do this so easily for Actors yet neglects the process for enemies.  

Any help would be appreciated.
I am not sure if I fully understand your question, however you can modify the enemies EX- and SP-Parameters in the Traits box just as you would an actor. You can modify general Parameters (HP, Attack, etc..) in the Traits box as well, but that can be handled better in the General Settings box. If you want to change parameters during the battle you can use a State. I think I covered changing traits as well as I know, but I did not fully understand your original question.
I am not sure if I fully understand your question, however you can modify the enemies EX- and SP-Parameters in the Traits box just as you would an actor. You can modify general Parameters (HP, Attack, etc..) in the Traits box as well, but that can be handled better in the General Settings box. If you want to change parameters during the battle you can use a State. I think I covered changing traits as well as I know, but I did not fully understand your original question.
I'll try to explain it in more detail.

In a troop event I am wanting to use a variable to add to an enemy's parameters.  It's similar to what you can do with Actors. 

For example: with event commands I can go to Actor, Change Parameter -  fixed = Harold (Actor 1) - Parameter = MHP - Operation = Increase - Operand = Variable 0001.

For some reason it only allows me to use this technique with an Enemy's HP and MP values.  It doesn't let me use a variable to add to their other parameters.

The reason I am wanting to do this is I like to adjust my enemy's parameters before a battle begins based on the level of the player.  I was able to accomplish this on RPG Maker VX Ace by using this short code inserted into the materials section of the script editor:

  class Game_Enemy < Game_Battler

  def change_param(param_id, value)

    enemy.params[param_id] = value

  end

end

 

And then including this script into my event:

val = $game_variables[0001]

if $game_troop.members[0] != nil

  $game_troop.members[0].change_param(0, 

val)

end

 

If you are familiar with Java Script and could rewrite this ruby script into the new code for me I might could get it to work again.  If you have any other suggestions to accomplish this same effect then I'm all eyes.
Game_Enemy.prototype.change_param = function(param_id, value){

enemy.params[param_id] = value;

}

val = game_variables[0001]

if(game_troop.members[0] != null){

game_troop.members[0].change_param(0, val);

}

That is the JavaScript translation. However, I am not familiar with the MV code yet, so I cannot guarantee it will work.
Game_Enemy.prototype.change_param = function(param_id, value){

enemy.params[param_id] = value;

}

val = game_variables[0001]

if(game_troop.members[0] != null){

game_troop.members[0].change_param(0, val);

}

That is the JavaScript translation. However, I am not familiar with the MV code yet, so I cannot guarantee it will work.
Thank you Heislerdinger.  Unfortunately I am getting a Reference Error: game_variables is not defined. 🙁

So it doesn't seem to be working as you suspected.
Are you sure about the code game_variable? I thought it was something else in MV
Are you sure about the code game_variable? I thought it was something else in MV

Thank you Heislerdinger.  Unfortunately I am getting a Reference Error: game_variables is not defined. 🙁

So it doesn't seem to be working as you suspected.
As I was saying, I am not familiar with MV's References yet, but taking another look through the code...

Game_Enemy.prototype.change_param = function(param_id, value){

this.enemy().params[param_id] = value;

}

val = $gameVariables.value(0001)

if($gameTroop.members()[0] != null){

$gameTroop.members()[0].change_param(0, val);

}

I believe this is at least getting closer to the solution
As I was saying, I am not familiar with MV's References yet, but taking another look through the code...

Game_Enemy.prototype.change_param = function(param_id, value){

this.enemy().params[param_id] = value;

}

val = $gameVariables.value(0001)

if($gameTroop.members()[0] != null){

$gameTroop.members()[0].change_param(0, val);

}

I believe this is at least getting closer to the solution
Now it gives me this ominous Syntax Error: Unexpected token ILLEGAL. 

I'll keep playing with it but if you have any more ideas please send them my way. 🙂

#Edited

Never mind.  I had a period where a comma was suppose to be.  The code goes through error free now but it doesn't seem to change the enemy's MHP to the value of the variable.  It remains at 1.
If you copied and pasted, try typing out the code in the Game_Enemy Class and your Event.

Edit:

Never mind.  I had a period where a comma was suppose to be.  The code goes through error free now but it doesn't seem to change the enemy's MHP to the value of the variable.  It remains at 1.

Strange, I just tested it on my game and it worked. I tested defense, param 3, set it to a high value and my actors were hitting for 0. Try it with other parameters. MHP can be handled with the original Battle commands/scripts, although I am not sure why it would not work. I am going to test it now.
If you copied and pasted, try typing out the code in the Game_Enemy Class and your Event.
It seems like I figured out what I was doing wrong.

I was writing val=$gameVariables.value(0022).  I changed it to it to $gameVariables.value(22) and now it's working.  So it seems those extra zeros I was putting in was the culprit.  I tested it out with other parameters such as attack and it's working as well.

I really appreciate your help Heislerdinger.  This was a pretty significant problem for me so I'm glad to put it behind me.  Thank you.

 

Strange, I just tested it on my game and it worked. I tested defense, param 3, set it to a high value and my actors were hitting for 0. Try it with other parameters. MHP can be handled with the original Battle commands/scripts, although I am not sure why it would not work. I am going to test it now.

 
It does work.  It was my mistake and not your's. 

Thank you again. 🙂
I am glad to help, if you ever post another issue feel free to direct me to it. Also, I had planned to have a New Game+ so this solution will likely come in handy for me as well.
I am glad to help, if you ever post another issue feel free to direct me to it. I plan to have a New Game+ so this solution will likely come in handy with me as well.
I appreciate that.  I'll write your name down so I know who to contact if I run into any more difficulties (which will likely be the case).  

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-change-enemy-parameters-using-variables.49009/