How to set home position of battler sprites?

Hello! I'm not 100% sure if it's exactly here I must post, but it's for RPG Maker MV, so I'll assume that it is.

Basically, what I want to do is to be able to edit the position of battlers in-game.
I have most gameplay elements and whatnot that I have ready for all that stuff, but all I need is the command line to set it to something different.

In sprite.js, I have found the command setHome.
Code:
Sprite_Battler.prototype.setHome = function(x, y) {
    this._homeX = x;
    this._homeY = y;
    this.updatePosition();
};

I've played with it, and from what I've seen, it does change the position of the actors.

My only question would be: how could I access it? I use various plugins from Yanfly, which includes YEP_SkillCore. What I'd like to do, for example, is something like this:
Code:
<After Eval>
a.setHome(100,200);
</After Eval>

But obviously, that doesn't work (since it's probably referring to the battler itself, rather than the sprite). So... could anyone help me out with this? I've been searching around, but I just can't figure it out. Any help would be appreciated! 🤘:distrust:
As you want help with the scripting side of things, rather than with something that you can do directly in the editor, I think this is better in a more script focussed section.

Moderator note: I am, therefore, moving this to Javascript/Plugin Support.
Thank you for moving it! I'll keep it in mind if I have more script-related question.
Hey there! After hours of researching, I've found out how to do it.

If anyone's curious, here's an example of application:

Code:
<Before Eval>
sprite =  BattleManager.getSprite(a)
sprite.setHome(sprite._homeX + 100, sprite._homeY - 100);
</Before Eval>

This works for both actors and enemies.

Peace! 🤘
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-home-position-of-battler-sprites.103988/