|
I've had issues with the "givepokemon" command as well and there are a lot of moving parts here, however, I'll breakdown what I know:
Assuming your flag expand is working here is useful info:
So remember that the numbers you're working with are using the expanded number system and it works like this: 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. In this way, Not sure if you want your Poke at 63 or you already know this, but I like to be thorough. Same goes for the item code (I assume you know that, though as the lists already have this in place).
Code that should work (if your flag expand thing is working):
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @alreadyreceived
msgbox @t1 0x6
givepokemon 0x01 0x3F 0x68 0x0 0x0 0x0
setflag 0x828
release
end
#org @alreadyreceived
@t2 msgbox 0x6
release
end
#org @t2
= Bro, I just gave it to you!
#org @t1
= Here's a Pokemon, my dude
---------------------------------------------------------
Finally, these are the "duh, how did I make that mistake" problems but they both tripped me up in the past.
1. You're batch compiling to the wrong file. You're copying the correct offset and pasting the correct offset but the code is on another game.
2. If your offset doesn't fill every space available in the offset section, be sure to add 00 at the start. Otherwise, the game will add something like 80 to the end of your correct offset and you'll go to a random offset that's not yours.
|