Enemy parameters in battle

Hello! 🙂

I am new here and I have a question about a script call in a battle:

how can I store actor parameters like ATK, DEF and set them as the parameters of the current enemy?

So that the enemy has the same parameters as the actor?

Is there a script function that I can use like $game_troop or something like that to change enemy's parameters?

Thank you very much! 😀

Steven
Do you want to do this as a script call, or do you want an actual script that will do this for you?  Is it only for one enemy, or a few, or all of them?
Thanks for your reply!

I found out how to do that with a script call:

#put first character parameters into game variables$game_variables[1] = $game_actors[1].mhp$game_variables[2] = $game_actors[1].mmp$game_variables[3] = $game_actors[1].atk......#overwrite the parameters of the first enemy with character's parametersb = $game_troop.members[0] #the first enemy#reduce the ATK, DEF....parameters by 1 to get the exact character values$game_variables[3] -= 1$game_variables[4] -= 1#add them to the enemy parametersb.add_param(0, $game_variables[1])b.add_param(1, $game_variables[2])......And it worked 🙂

The enemy has to have all parameters set to 1 in the enemy database so that this script call can add the values of the character.

Now the first enemy has the same parameters like the first character!

Thanks anyway for your help! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/enemy-parameters-in-battle.45206/