Change Home Position Y (Battle Engine Core YEP) during the game

Hi guys,

i've a question. There is a way for change Home Position Y (battle engine core, yanfly) during the game, with a call script?

This is the base formula in plugin manager:

screenHeight - statusHeight - maxSize * 48 + (index+1) * 48 - 32.



For example, if i have only one actor, during a specific moment, i cannot permit that the player remain in the top of the screen, and not centered...
Because if i set a hight distance between actors, the first actor remain in an upper area of the screen, if i change party from 4 to 1.

If they are 4, it's ok. the first actor can remain in the upper zone.

But if it's one, it's ugly 🙁

Do you know a solution?
You could change the formula during the game with a script call, but the change wouldn't save and when you reload the game it would revert back to the old formula.

I think you would have more luck just writing a more suitable base formula. As an example you could use something like this

Code:
(screenHeight - statusHeight) * (index+1) / (partySize+1)

This will means one actor is centred, and as you add more they get pushed further out to the edges. If you feel like your actors are getting push too far out to the edges you can always add padding to this like so

Code:
padding + (screenHeight - statusHeight - 2 * padding) * (index+1) / (partySize+1)

Replace both instances of padding with the same number, if they are different your actors will not be centred.
Thank you so much!!!!! :LZSjoy:
I´m having the same issue. I "fixed it" by changing the Y height of the actor on the plugin, but I´m afraid this solution will bite me back when the party grows to 3-4 people. Can you tell me where do you insert that code "(screenHeight - statusHeight) * (index+1) / (partySize+1)"?
Thanks.

EDIT: Sorry, I´m using visustella plugin, but still it seems very similiar problem

Original thread: https://forums.rpgmakerweb.com/threads/change-home-position-y-battle-engine-core-yep-during-the-game.119283/