top of page
How to Check Party for Species & Get Party Slot
4.17
Here is a simple script-loop you can use to check your party for a specific species and obtain its party slot.
Credits:
YeahPotato
How To
Just insert the index for the Pokemon you are looking for in place of (species index).
The special DoesPlayerPartyContainSpecies does not output the party slot, but this loop will store it in var4!
setvar temp0 (species index)
bufferPokemon buffer1 0x4000
setvar var4 0
loop:
special2 varResult GetPartyMonSpecies
comparevars 0x800D 0x4000
if1 == <MonFound>
addvar var4 1
if.compare.goto var4 < 6 <loop>
msgbox.npc <auto>
{
[buffer1] is not in your party!
}
end
MonFound:
...
Happy Hacking!
bottom of page
