How to make event look like database actor?

How would I go about making a villager event look like one of the actors in the database during runtime? In other words, how could I make the charset of an event equal to an actor's charset?


This is used for hiring heroes. Like you walk into the tavern and there are 3 heroes you can hire. These 3 hero events are randomly selected from a database of 100 actors. Of course the straightforward way is to make 100 hero events with switches, but that is really inefficient.
A script call is of use if you don't want 100 conditionnals:


Try this:


var a, b, id, eid
id = your_actor_id
eid = your_event_id

a = $dataActors[id].characterName
b = $dataActors[id].characterIndex

$gameMap._events[eid]._characterName = a
$gameMap._events[eid]._characterIndex = b


It works for me.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-event-look-like-database-actor.64035/