Hey! This is my first ever post on here - and I'm looking for help. I am making a pokémon related game for my sister for her birthday where she is a Pokémon trainer and I wanted to make the battle system as much like Pokémon as I can but I'm a bit stuck. I've gotten the basics out of the way - your now able to have one party member in battle at a time and able to switch the one out for other members (like switching your Pokémon in the actual games) and when you are finished the battle, your main character is the one you sti control on your map. I also made it so you can run from battles and everything goes back to how it was on your map before you went into battle (your main party member is your trainer, so when your in a battle your Pokémon are the only ones in your Party and it's only one at a time, and when you leave the battle it defaults to your trainer again) But this is where I'm stuck - if your pokemon your using to battle dies, the game automatically ends because it thinks all your party members are dead. Does anyone have any ideas on how I can make it so if your current party member dies, it will automatically switch to a different party member instead of ending your game? (Sorry if none of that makes any sense) Thanks for the help in advance!