Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
Hello after taking a tutorial from FBI we where able to come up with just what you need.
Here is how it works:
Var 0x8004 value
0x0 = Players 1st Pokemon
0x1 = Players 2nd Pokemon
0x2 = Players 3rd Pokemon
0x3 = Players 4th Pokemon
0x4 = Players 5th Pokemon
0x5 = Players 6th Pokemon
So you could use Special 0x9F which will let you choose the Pokemon you want deleted.
Then callasm 0x?????? +1(where "??????" is where you placed this routine).
C source:
Code:
#include <pokeagb/pokeagb.h>
void delete_pokemon()
{
u8 slot = var_8004; // get slot id from variable
if (slot != 5) {
memcpy(&party_player[slot], &party_player[slot + 1], 100 * (5 - slot));
}
memset(&party_player[5], 0x0, 100);
return;
}
#dynamic 0x810000
#org @start
lockall
faceplayer
msgbox @question 0x5
compare 0x800D 0x1
if 0x1 goto @yes
msgbox @no 0x6
releaseall
end
#org @yes
msgbox @delete 0x6
special 0x9F
waitstate
callasm 0x??????+1 //make sure to change this to pointer where you put routine
msgbox @done 0x6
release
end
#org @question
= Would you like me to delete a Pokemon?
#org @delete
=Alright then here we go!
#org @done
= There the deed has been done!
#org @no
= Maybe next time then.