MZ Using Actor Faces as SV Battlers

Hello everyone, I'm looking for your help after racking my brain trying to solve this using VisuStella's BattleCore and SRD's Hudmaker. Below is a screenshot from my game. I've managed to make everything functional thus far but I'm currently using SRD's Hudmaker to place the actor faces into their positions.

If possible, I would like to use these faces as SV Actors instead so the damage placement is on the Actor faces themselves rather than being obscured by Hudmaker.

I don't seem to have an issue cutting the frame out and setting up an actor's face as an SV Battler however the offset of the damage effects themselves is what I'm having trouble with.

Currently I have 3 options.

Option 1: Cut out frames, use actor faces as SV battlers and find a way to align party position 1,2 and 3 to their corresponding location on my frames. Possibly achievable with JS?

Option 2: Use invisible SV sprites underneath SRD Hudmaker and find a way to anchor their locations to the centre of each frame on top of SRD Hudmaker

Option 3: Keep damage in centre of the screen I guess( I can manage this but its bad for readability imo)

Thanks!

sideview2.png
Since you're using MZ, option 2 is probably the easiest. There's a plugin that comes with MZ called SVactorpositionMZ, in the install folder. I think that should do what you want it to.
Since you're using MZ, option 2 is probably the easiest. There's a plugin that comes with MZ called SVactorpositionMZ, in the install folder. I think that should do what you want it to.
Wow that's a lot of plugins in that folder I didn't know existed! However I think there is some conflict with the VS BattleCore plugins given the error I received. I really appreciate the quick response.

I do really like the individual actor layout settings of this plug in though.

Is there a way to up something similar in the VS battlecore actor position settings or even a battle event script call?

Right now I'd use the VS BattleCore settings only but the issue is that the offset of them moves ALL actors rather than each actor position. Ideally it would be as simple as Actor 1 goes at XY coord X1,Y1
error.png
and Actor 2 goes to XY coord X2,Y2 but I don't think its going to be that simple.
VS Battle core plugin settings has actor battler settings where you can give the home position for every actor with code.
I can't offer any help but I just wanted to say that your screenshot looks great!
VS Battle core plugin settings has actor battler settings where you can give the home position for every actor with code.
I've been doing some digging into that as well and unfortunately I'm lost as its "clumping" the actors together vertically.



The x axis position doesn't seem to be a problem since I can easy just shift that by 10px increments until I find the sweet spot however the y axis is proving difficult. Despite each SV sprite being 144x144, there is some overlap of them on top of each other. Is there a way to apply individual actor positions for each party position slot in the JS home position?


// Declare Constants

const sprite = this;

const actor = this._actor;

const index = arguments[0];



// Make Calculations

let x = Math.round((Graphics.width / 2) + 192)

x -= Math.floor((Graphics.width - Graphics.boxWidth) / 2);

x += index * 32;

let y = (Graphics.height - 200) - ($gameParty.maxBattleMembers() * 48);

y -= Math.floor((Graphics.height - Graphics.boxHeight) / 2);

y += index * 48;



// Home Position Offsets

const offsetNote = /<SIDEVIEW HOME OFFSET:[ ]([\+\-]\d+),[ ]([\+\-]\d+)>/i;

const xOffsets = actor.traitObjects().map((obj) => (obj && obj.note.match(offsetNote) ? Number(RegExp.$1) : 0));

const yOffsets = actor.traitObjects().map((obj) => (obj && obj.note.match(offsetNote) ? Number(RegExp.$2) : 0));

x = xOffsets.reduce((r, offset) => r + offset, x);

y = yOffsets.reduce((r, offset) => r + offset, y);



// Set Home Position

this.setHome(x, y);

I unfortunately have zero knowledge of JS so I apologize if this comes off as a basic question.

I can't offer any help but I just wanted to say that your screenshot looks great!
Thanks!
Can you just put in the end of the 'make calculations' part that:

if (actor == $gameActors.actor(1))
y += 100;


and so on.


EDIT: Hmmm, not sure if the object comparison works like that though. But it should work if you compare the actor IDs. So add .actorId() at the end

if (actor.actorId() == 1)
y += 100;
Can you just put in the end of the 'make calculations' part that:

if (actor == $gameActors.actor(1))
y += 100;


and so on.


EDIT: Hmmm, not sure if the object comparison works like that though. But it should work if you compare the actor IDs. So add .actorId() at the end

if (actor.actorId() == 1)
y += 100;
I appreciate the hard work you've put in trying to figure this out. I've been messing with the code for a bit now and still am a bit stumped as the images are still clumping into the same position. Would I need to add a line for each Party Member by replacing Actor with Index or are they effectively the same thing?

Eg:

if (index == 1)
y += 0;
if (index == 2)
y += 150;
if (index == 3)
y += 300;

Party Members are expected to be pretty expendable in my game so if possible I would want to apply it based on the party slot instead of the Actor Id.

Once again I really appreciate your help so far.
Is there a way to apply individual actor positions for each party position slot in the JS home position?
There's no need for that. It's built into the calculations, you just haven't changed it for the size of the portraits instead of SV actors.

y += index * 48;
Make it * 144 (plus anything if there's a border in between them).
There's no need for that. It's built into the calculations, you just haven't changed it for the size of the portraits instead of SV actors.


Make it * 144 (plus anything if there's a border in between them).
I think this was my issue. Its going to need some fiddling to make it work but I should be able to figure it out from here.

Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/using-actor-faces-as-sv-battlers.174107/