MV (solved) (yep party system) third actor taking the leader position when added

so today i decided i would put yanfly's party system plugin into my game
i got it all set up and put four events onto a test map

one would add two actors at once, two would add two other actors individually and one would open the party menu using a plugin command

this would work perfectly fine until i added a third actor into the party
for some reason, once a third actor was added, the leader would be moved into another position and the third actor would take their place

i've tried locking the leader's position, changing the position of the plugin, adding then removing then readding the third actor when their event was interacted with but nothing seems to fix the problem except for the plugin being turned off

does anyone have any suggestions for what i should do
does anyone have any suggestions for what i should do
Show us screenshots of the event.
Show us screenshots of the event.
Screenshot 2024-10-26 225827.png

here you go
Just to mention it, the section guidelines also instruct you to provide links for the plugins you're asking about, so people who want to help you can read the documentation.

As far as the screenshot...I think that's the minimum amount of information that could be provided while saying you're providing information 🤣

Like, which actors are in the party at the time that event is run? Do I assume actor ID 7 is the party leader? What is the order of the actors before the event and after the event?

You have to realize that none of us have access to your project, we can't see what exactly is going on. The Change Party Member event command should add that actor to the end of your party formation and the LockActor command shouldn't be necessary at all.

So if you're saying that simply adding an actor is changing the positions of your other actors, something supremely funky is going on and you need to give us as much information as possible if you want help figuring it out.
Just to mention it, the section guidelines also instruct you to provide links for the plugins you're asking about, so people who want to help you can read the documentation.
thanks for bringing that up, i've added a link to the original post
which actors are in the party at the time that event is run?
actors 7 and 6 are in the party when i add the third actor
Do I assume actor ID 7 is the party leader?
yes, sorry for not clarifying that sooner
What is the order of the actors before the event and after the event?
before:
- actor 7 (first, leader)
- actor 6 (second)

after:
- actor 8 / synthmau (first, leader) (this isn't exclusive to actor 8, i've tried adding other actors and this happens with them as well)
- actor 7 (second)
- actor 6 (third, this is where actor 8 should be)
The Change Party Member event command should add that actor to the end of your party formation and the LockActor command shouldn't be necessary at all.
exactly, not to mention that this only happens when the third actor is added to the party, this doesn't happen with any actors added after or before the third
This is a shot in the dark, but what version is the Party System plugin? If you have an outdated version, maybe it's acting weird.
This is a shot in the dark, but what version is the Party System plugin? If you have an outdated version, maybe it's acting weird.
i believe the version of the plugin i'm using is 1.13? that's what it says in the file
Please provide a screenshot of your plugin manager - yanfly's plugins are known to behave strangely if installed in the wrong order. They have to be installed in the exact order as given on his website, top to bottom.

what happens if you create new actors (10,11,12) and test with those actors?
Or if you add the actors in the order 8,7,6?

This is to test if the leader is always happen to be the third actor added, or if there is something special about actor 8
I don't know, I can't duplicate your problem.

I made a test project with just the Party System installed; started with 2 actors, added a third and they went at the end of the party as expected.

I think double checking your plugin order is a good idea; aside from that, turn off all your plugins except the Party System. Save your project, start a new playtest. See what it does.

If it's doing this with only the Party System installed, something is wrong with your copy of the plugin or your project somehow.
while testing out andar's troubleshooting ideas, i finally realized what the problem was

it wasn't the plugin, i'm pretty sure it was my eventing
the event that added the two actors had another thing that would remove an actor as well, this actor was the starting actor (i completely forgot to mention this, my bad)

i put this actor removal thing after the two actors were added and it caused the game to believe that the leader position was still free when it should have been taken up by actor 7
at least that's what i think was the case???

thanks for all of the help
at least that's what i think was the case???
no, even then it should behave differently because by default, there is nothing special about the leader position and removing the leader would automatically make the second actor the new leader, not the third.

but we can't tell without seeing a screenshot of the event you're talking about
it wasn't the plugin, i'm pretty sure it was my eventing
That's why I asked you in my first reply to show us screenshots of all relevant events. If you had done that instead of just one, someone would've noticed it.

Good luck with your project.
This thread is closed due to being marked as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/solved-yep-party-system-third-actor-taking-the-leader-position-when-added.172854/