Now Possible to NAME new pokemon after using GivePokemon!
*shameless plug*
The latest version of the pkmadv database now has a command 'NamePokemon'
Use something like this:
Code:
#org 0x800000
lock
faceplayer
checkflag 0x200
if 0x1 goto $GotMew
message $WantMew
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto $GiveMew
message $NoMew
boxset 0x6
release
end
#org $GotMew
message $HowMew
boxset 0x6
release
end
#org $GiveMew
countpokemon
compare LASTRESULT 0x6
if 0x1 goto $ErrorMew
message $RecieveMew
boxset 0x6
givepokemon 151 5 0
message $NewName
callstd 0x5
compare LASTRESULT 0x1
if 0x1 gosub $NameMew
setflag 0x200
release
end
#org $ErrorMew
message $FullParty
boxset 6
release
end
#org $NameMew
namepokemon
return
$FullParty 1 = Your Party is full!
$NewName 1= Would you like to give the pokemon a name?
$WantMew 1 = Would you like my Mew?\nI dont want it anymore.
$NoMew 1 = You're Weird!
$HowMew 1 = So how is MY Mew?
$RecieveMew 1 = You recieved a mew
- EDIT - 2320 gmt+8
Now added 'Countpokemon' to command database. Code above adjusted apropriately!