PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Other Generations Hacking > Guides & Documentation

Guides & Documentation Learn how to make your own Pokémon game through the process of ROM Hacking, or help out the community by sharing your information.

Reply
 
Thread Tools Display Modes
Old 19th December 2013, 12:44 AM   #1
Chaos Rush
Getting there...
 
Chaos Rush's Avatar
 
Join Date: Sep 2011
Posts: 22
Chaos Rush
Default Custom Pokédex diploma script

I made a script that will allow you to choose how many Pokemon you need to have registered in order to receive a diploma.

Code:
#dynamic 0x800000
//notes
//[buffer1] = the requirement number
//[buffer3] = how many kinds you currently have

#org @main
lock
faceplayer
call @check
msgbox @msg1 MSG_YESNO
compare LASTRESULT 0x0
if 0x1 goto @noyoumaynot
setvar 0x8004 0x0
special2 LASTRESULT 0xD4 //places on var 0x8005 # of Pokemon that you've seen, and on var 0x8006 # of Pokemon that you've caught
buffernumber 0x2 0x8006 //no idea
call @check
compare 0x8006 0xD2 //the second argument should be the amount of Pokemon you're checking for
if 0x0 goto @notmetreq
msgbox @msg4 MSG_KEEPOPEN
waitmsg
pause 0x3C
special 0x187
compare LASTRESULT 0x2
if 0x1 goto @idk
special 0x108
waitstate
release
end

#org @idk
release
end


#org @check
buffernumber 0x0 0xD2 //the second argument should be the amount of Pokemon you're checking for
return

#org @noyoumaynot
msgbox @msg2 MSG_KEEPOPEN
release
end

#org @notmetreq
msgbox @msg3 MSG_KEEPOPEN
release
end

#org @msg1
= Is that right?\pI'm the game designer!\pFilling up your Pokédex is tough,\nbut don't quit!\pMay I check your Pokédex now?

#org @msg2
= No? Well alright then.\pBut if you fill it out completely,\nplease show me!

#org @msg3
= So you've recorded data on [buffer3]\ndifferent Pokémon species[.]\pBut there are more in the Kanto\nregion! I'm sure of it!\pCome show me again when you've\nfound more!

#org @msg4
= So you've recorded data on [buffer3]\ndifferent Pokémon species[.]\pWow! Excellent!\pYou completed your Pokédex!\nCongratulations!\l[.]
You'll notice that for every time I made a comment saying:
Quote:
//the second argument should be the amount of Pokemon you're checking for
,
my second argument is 0xD2.
0xD2 is hex for 210, which is the amount of Pokemon in my hack's Pokedex.

So say, if your hack had a Pokedex of 251 Pokemon, then you would put the number 0xFB instead. The game will then check if you have that many Pokemon registered in your Pokedex, and if the number matches, it will reward you with a diploma.

For some reason it only shows the National Dex diploma which could be a problem if your hack as a regional dex AND a national dex, but it could be solved simply by altering the tilemap. There's also a hack to have it display any image+text combo you want so it's really not a problem.
Chaos Rush is offline   Reply With Quote
Sponsored Links
Old 19th December 2013, 01:47 AM   #2
Hopeless Masquerade
山の新人神様
Ex-Staff
 
Hopeless Masquerade's Avatar
 
Join Date: Oct 2012
Location: 守矢神社
Age: 20
Posts: 87
Hopeless Masquerade
Default

Ufufufu. Very nice.
I always like it when people find little things like this and actually bother to share it. Thanks.
Hopeless Masquerade is offline   Reply With Quote
Reply

Tags
custom, diploma, pokedex, script, [Other]

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:38 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts