MZ Change the SV Actor position

I'm looking for a way to adjust the X-axis position for specific SV Actors in my game. I have characters that are in the back row, and you can swap out allies in battle. I want it so the back-row characters are a little to the right, no matter what position they are in the formation. I have the SVActorPosition plugin, but that's based on the order of the formation. I need something to put in the character's notes or maybe a script call to get this the way I want it. I know I can use VisuStella's Battle Core to do this, but I don't like that plugin.
Create a new plugin file with any name, and paste this:

Code:
/*:
 * @target MZ
 */
Sprite_Actor.prototype.setHome = function(x, y) {
    if (this.deltaX()) {
        x += this.deltaX();
    }
    if (this.deltaY()) {
        y += this.deltaY();
    }
    Sprite_Battler.prototype.setHome.call(this, x, y);
}
Sprite_Actor.prototype.deltaX = function() {
    return this.notetags() && 'Delta X' in this.notetags()
        ? Number(this.notetags()['Delta X'])
        : undefined;
}
Sprite_Actor.prototype.deltaY = function() {
    return this.notetags() && 'Delta Y' in this.notetags()
        ? Number(this.notetags()['Delta Y'])
        : undefined;
}
Sprite_Actor.prototype.notetags = function() {
    return this._actor && this._actor.actor()
        ? this._actor.actor().meta
        : undefined;
}

Now, you can use the Notetags <Delta X: -50> and <Delta Y: 20> for example.
I can also change it for class Notetags when that's more useful for you.
Works just the way I want it.

Original thread: https://forums.rpgmakerweb.com/threads/change-the-sv-actor-position.180399/