Create an actor

jackken123

Veteran
Veteran
Joined
Aug 24, 2017
Messages
81
Reaction score
8
First Language
Chinese
Primarily Uses
RMMV
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.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top