Hello all,
My game implements humans and animals battling alongside each other in battles. There are instances where I want the player to be able to talk to an NPC and invite them to come along with them, but I want this to bump them to the second spot (or occasionally the third or fourth spot if they already have other NPC followers) in front of the animal party members. Is there an easy script call or something that can do this?
Oh no, I'm sorry, I should've been more clear. I'm talking about instances where I already have 3 party members. The player's character and two other party members already. I'm looking for a way that when I add a party member by the method you posted, instead of placing the new party member in the fourth slot by default, I'm looking for some way to force that party member into the second slot and bump the other two down to third and fourth.
Oh, I understand now. I'm not sure if there's a way to do this, actually. I think that should be a feature!
Just have two variables that you increment/decrement when you add/remove party members that tracks how many humans and how many monsters.
Yeah, that's where I started! I've been trying to set up to where it runs a conditional that checks:
If HumanActors = 1
$gameParty.swapOrder(1, ___)
Else If HumanActors = 2
$gameParty.swapOrder(2, ___)
etc.
Right now I'm getting stuck on how to best tell the game what to use as that second number because it would be dependent on how many animals the player has added to their party over time. There are around 100 or so animals/monsters planned that the player can add to their party throughout the course of the game via capture. My first thought was to create a variable that gets the party size, then subtract 1 from that to get the party index of where that new character is going to be added.