Ok, so I got the give pokemon event working just fine but I cant figure out how to make the sprite disappear after i collect the Pokemon. Or at least add a message when you talk to it again. Heres what I had, I used the script generator.
#dyn 0x740000
#org @start
lock
checkflag 0x200
if 0x1 jump :end
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon JIGGLYPUFF 5 POTION 0 0 0
setflag 0x200
storepokemon 0 JIGGLYPUFF
message @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end
#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end
#org @noroom-msg
= You don't have enough room in your party.
#org @get-msg
= You got a \v\h02!