Create an actor

Hi,

I want to create an actor by js.

What I am looking for are two.

1. I want to read the data of the enemy when I am in a battle scene.(hp mp mhp mmp...... All the basic data I need to create an actor)

2. I want to create an actor with a new ID and the status is just like the enemy.

If you know how to do this, please help me.
It's best to tell me the script.
Or at least tell me where the script is.

Thank you.
Create an object in the same format as normal actors. Then $dataActors.push or maybe $dataActors.data.push should do the job, I don't exactly remember where it is stored, just know it's in $dataActors. Then you'll have to initialize him.

As for enemies, you need to track $gameTroop to see the name of the enemy. Then you'll find his info in $dataEnemies.

Original thread: https://forums.rpgmakerweb.com/threads/create-an-actor.87330/