Retrieving _realX and _realY from event_id.

I have a script that runs throug the collection of events.

The X and Y position  and the id of these events can be retrieved by the commands.

var lpx = $dataMap.events.x;
var lpy = $dataMap.events.y;

var eventid = $dataMap.events.id;

 

So far so good.. Some of these events are animated and start walking around,

How do i retrieve the current realX and realY of these animated events?

In other words.. how do i access the Game_CharacterBase when i only have

the event_id.

 

Game_CharacterBase.prototype.initMembers = function() {
    this._x = 0;
    this._y = 0;
    this._realX = 0;
    this._realY = 0;

}

Original thread: https://forums.rpgmakerweb.com/threads/retrieving-_realx-and-_realy-from-event_id.49825/