There's a function to delete the data of a Pokémon in a party. It's calledI was hoping someone could explain how I'd be able to remove Pokémon from the player's party, specifically with pokeemerald. I looked all over for any threads or resources on this subject, but none were relevant.
ZeroMonData
special
function, or alternatively a void function to call using callnative
, that makes use of it.void DeleteChosenPartyMon(void)
{
if (gSpecialVar_0x8004 != PARTY_SIZE)
{
ZeroMonData(&gPlayerParty[gSpecialVar_0x8004]);
CompactPartySlots();
}
}
special ChoosePartyMon
inside an overworld script to delete the Pokémon chosen by the Player.Hello, I'm actually new in scripting. What I want to do is talk to a npc that deletes automatically every pokemon in my team, leaving you with 0 pokemons. How can you do that ? Can I use the 'DeleteChosenPartyMon' function that you suggested ? If so, where should I store it, and how can I call such a function in my scripts ? I'm still a bit confused on how to make this work. Thanks !
void ClearPlayerParty(void)
{
ZeroPlayerPartyMons();
gPlayerPartyCount = 0;
}