So, I have read this previous thread on changing the party order.
If I use:
It sucessfully swaps party members A and B. Yay!
So what is the problem you ask?
Well, if I have 3 party members, member 3 remains forever forgotten. 🙁
(And if I have only 2, "$gameParty.swapOrder(2, 1);" breaks everything!)
I attempted to fix this myself using:
To check the number of party members, and then swap the formation accordingly.
Which works!... in MV.
Now that I have moved my project over to MZ, it suddenly does not.
I'm not sure what is not working here. I know it's not the SwapOrder itself, so it must either be the if/else branch or the $gameParty.members().length query?
I'm a complete Javascript newby so I've probably just messed something up. 😅
If anyone has any suggestions, I will be all ears!
If I use:
JavaScript:
$gameParty.swapOrder(0, 1);
So what is the problem you ask?
Well, if I have 3 party members, member 3 remains forever forgotten. 🙁
(And if I have only 2, "$gameParty.swapOrder(2, 1);" breaks everything!)
I attempted to fix this myself using:
JavaScript:
if ($gameParty.members().length == 3) {
$gameParty.swapOrder(0, 1)
$gameParty.swapOrder(2, 1);
}
else if ($gameParty.members().length == 2) {
$gameParty.swapOrder(0, 1);
}
else {
}
Which works!... in MV.
Now that I have moved my project over to MZ, it suddenly does not.
I'm not sure what is not working here. I know it's not the SwapOrder itself, so it must either be the if/else branch or the $gameParty.members().length query?
I'm a complete Javascript newby so I've probably just messed something up. 😅
If anyone has any suggestions, I will be all ears!