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.
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?
$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.
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?