adding members to party without changes in line-up

As the title says.

I have this issue that I want to add a character to my party prior to a fight, but when I do this, the new character becomes the default party leader, which ruins my cut scene, because the hero is suddenly swapped out for this new member.

It is getting on my nerves real bad, so please halp!!
that's weird... hmmm.. maybe you could just reorder the party (using script calls maybe) after adding the new member?
That too would be a problem - not just because I don't know how, but because it would still mean that the hero would be replaced for a moment.

I just want the hero to stay party leader - omg why is this so difficult! I'm almost pulling my hair out over this!

Thanks for trying though! And for the quick reply!
I think I saw a fixed party leader script somewhere... Or.. hhmmm... I'll go check the scripts and see what happens during actor add...

w8, does the actor that you add on a lower index in the database than the current leader? if yes, then maybe you can just put him in a higher index like the last index of actors maybe
As the title says.


I have this issue that I want to add a character to my party prior to a fight, but when I do this, the new character becomes the default party leader, which ruins my cut scene, because the hero is suddenly swapped out for this new member.
Stop


One step back


Default behaviour of Ace is that newly added members become the LAST members of the party.


If the newest addition becomes the first member instead, then you have a script that changes default behaviour.


Look for that script and change/remove it there
Hmm, that is very odd. I cannot reproduce the behavior that you are experiencing. Whenever I add a new member, that member is on the end of the party list, not the beginning. Perhaps you can take a screen shot of the event leading up to the battle? Or perhaps there is another script that is sorting the party list?
I am using the yanfly party script. I did look at that first, but as far as I can see nobody else seems to have this problem.

The yanfly script does have a script call for locking party members in place, but that has no effect whatsoever.

Appart from this, no other script I'm using effects the party.

I can say for sure that there is no issue with the event, as no other aspect of my event deals with the swapping of party members.
which yanfly script?
This one

http://yanflychannel.wordpress.com/rmvxa/core-scripts/party-system/
I don't see anything that sets additional actors to be the leader...

btw, this means that the new actor becomes the first actor in battle too right?
Yep. It essentially pushes to previous leader down a spot.
Huh, well, I am trying to recreate the error in the Party System script, but I cannot. I add two different characters directly before entering a battle, and the pair are added to the end of the party list. I also have a message pop up which displays the name of the first party member, which is always exactly who I expect it to be.


What you might try is doing a global script search (right-click on the left pane and choose the 'find' option) for the method 'add_actor' to see if there are possibly any other scripts that might be causing the foul-up.
Thanks I'll try that when I get back to my computer!
I am using the yanfly party script. I did look at that first, but as far as I can see nobody else seems to have this problem.


The yanfly script does have a script call for locking party members in place, but that has no effect whatsoever.


Appart from this, no other script I'm using effects the party.


I can say for sure that there is no issue with the event, as no other aspect of my event deals with the swapping of party members.
If that script call doesn't work, then either you're using it in the wrong place, or you have another script that disables part or all of yanfly's party script. Considering that your party member adding behaviour doesn't fit either default nor Yanfly's, I think that you do have another script changing party behaviour installed, wether you remember installing it or not.
First, check for unnamed scripts: if you placed a script without naming it, it will appear to you in the script editor as an empy slot in the script list. Click on every empty line and check if those are realls empty.


Second, make the search mentioned above to find out if one other script is affecting that function directly without your knowing


Third, disable your scripts one at a time, checking add member behaviour after each one, until you found one of the conflicting scripts if the second step didn't find anything


fourth, test everything in a new project (adding all scripts, but using only new, primitive maps) to test whether the effect is caused by a changed default script


fifth, link us to all the scripts you've used, so we can check if you still don't find the cause of the problem.
actually yanfly's party script's lock_actor/unlock_actor call doesnt work due to a mistake.

its fixable by reading this comment

http://yanflychannel.wordpress.com/rmvxa/core-scripts/party-system/#comment-2901
Thanks for the info.

That seemed to have done the trick! I guess this can be closed then.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/adding-members-to-party-without-changes-in-line-up.18261/