MZ VisuMz_2_PartySystem help

I just finished setting the plugins that I want for my game. Now I'm having problems making one feature of my game to work. @Shaz had helped me with this code to send the leader to the back of the party.

$gameParty._actors.push($gameParty._actors.shift());
$gamePlayer.refresh();
$gameMap.requestRefresh();

Also using this to know who is in the leader position


$gameParty.leader().actorId() === 1


Everything was working just fine until I got VisuMz_2_PartySystem (which I also want), which just makes the code useless .

So i figured i would use the plugin command built in to do the same work through events with conditional branches.
Untitled-1.png


Only to realize that the plugin command does not substitute the leader 🙁 so i cannot use that script to see who replaced the leader, the leader is just not replaced. When i remove the leader, the first position is just empty 🙁 so i cannot continue with more conditionals using $gameParty.leader().actorId() === 1 .
How can I send the leader to the back ?

or

is there a way to know who is in second, third or forth position?
See if there's an option to lock any positions, and turn it off.

Your logic is a bit weird there. In the section at the bottom, you're moving actor 2 to reserve, then moving them to active again straight away. And in the top section, you've got a check for the party leader being actor 1 AND the party leader being actor 2.

You can check who is in a certain position through Control Variables > Game Data > Member #
There is no option to lock, unlock positions. it just does part of the way the plugin works. i thought that by removing the leader, the second would move to the leader position and so adding it again would leave it on the last position. unfortunately it just goes back to the same position because it goes to the first available space. so that's why i need to see if certain actor is on second or third position, so that i can make a conditional.

i don't understand the concept of what you're telling me to do completely, but kinda... i'll check if i manage to do it. so what i understand is that i have to make a variable of whatever position certain actor has and then check if that variable is equal to certain number which means its position. sorry if it sounds weird, i'm just trying to get the idea. Nevermind all this

Ok so i checked and i understand the concept now... Question. Is there a way through script or whatever to remove a member whose number = a variable? i can't find a way to do that NVM

Untitled-1.png


Ok I started understanding the concept. i just have to finish the rest of the conditionals and i saved a lot of time from my original idea 😛 THX everyone, case solved.

Original thread: https://forums.rpgmakerweb.com/threads/visumz_2_partysystem-help.140239/