MV Luna Engine MV Correct actor from YEP party switch effects

Not sure if this belongs here mods! Let me know
I've checked the documentation and cruised around for plugins but I'm still struggling a bit.

So in Luna MV engine it pulls out the actor who's turn it is by a little bit.

I like this effect but I am struggling to understand its compatibility with YEP actor party swap.

It seems to be calling for the position that the actor is in and not their id, or something similar as it will move the HUD over based who was in that spot initially.
Pulls out.png


I think it has to do with the following ${index} as this is where it chooses who to move. I just can't think of a condition or value to match it to the ids of actors.

Current actor.png

Any help would be great! I've been working with the engine for a while now but am still working on its ins and outs.

If you need any more info or pictures please let me know!
Can you describe in greater detail what is happening and what you want to happen instead?

I should think you'd want it to be referencing the party member's index - that way when they swap, it's still the turn of the actor who's in that position in the list.

If you tried to make it reference the actor ID, you'd start getting errors when they were swapped out of the party, right?
Thank you for your response!

What is currently happening is that the actor that's name is moving is tied directly to their spot instead of the actor themselves.

Harold SELECT.png
Harold SELECT2.png

(this is even on subsequent turns and not like just the first turn they swap anyone in that position is now Harold)

So what I want to have happen is that whoever is in that spot their name is the one that is animated. Instead no matter who is there it always moves the actor's name that was in the spot initially.

What I was first thinking is that in the engine when you change the BattleStatusLunaticItem to BattleStatusLunaticItem0 or 1 it moves the name out of that spot on the hud. (so zero is position 1 and so on)

So if I was able to update the value of "BattleStatusLunaticItem(number)" so that the number matches a variable or use a conditional like this:
variable2.png

(variables)



variable.png

(conditional)

even though i am not getting any errors its not updating it based on my variables

Maybe I am just missing how it should work! I was hoping I could get a HUD that reacted to who was going at the time.
these don't work together actually. At least not Active Switch... Luna needs a scene change to actively update the character in question. The only way I've seen it work is with the Party System by itself. With the scene change, Luna will update the actor's switched in and out. Otherwise with Actor Switch, It never updates to the new character.
Have you tried calling a refresh? SceneManager._scene._statusWindow.refresh()

I don't know how much Luna Engine screws with things, if that's no longer the appropriate name of the window. If that's why it works with the default engine + Yanfly but doesn't work with Luna, you'll have to find out from the plugin code what the new name of that window is.
After trying out some more ideas on this one I think I'm going to go ahead and use a different HUD setup on the Battle Scene.

Thank you for your suggestions! I still have plenty to learn with this one

Original thread: https://forums.rpgmakerweb.com/threads/luna-engine-mv-correct-actor-from-yep-party-switch-effects.151635/