Community

The PokéCommunity

We are still working on a better slogan!

Visit Index



Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Notices

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.

Post Reply
 
Thread Tools
  #1    
Old June 2nd, 2013, 05:06 PM
Renegade's Avatar
Renegade
Time for real life...
 
Join Date: Nov 2011
Location: United States
Gender: Male
Nature: Careful
Hello people. I see questions about how to activate the National Dex in POKéMON Ruby every once in a while, so I decided to post a tutorial here on how to do it.

HD VIDEO FORMAT
Here's a (somewhat crappy) video I made on the topic a few months ago:

http://www.youtube.com/watch?v=PlOWM_2fb7Y

TEXT DEMONSTRATION
In case you don't like video demonstrations, here's a written tutorial about it...

There is some assumed knowledge here, like how to write a script in XSE and how to insert it into a ROM.

Step 1:
You should start with a script that gives the player the regional POKé DEX, like this one:
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
message @t1 6
setflag 0x801     <--------- POKé DEX menu appears on the menu screen...
fanfare 0x372
message @t2 4
waitfanfare
closeonkeypress
release
end

#org @t2
= \v\h01 received the POKé DEX!

#org @t1
= NPC: Looking for this? It's a\nPOKé DEX I got from Professor\lBirch!
Step 2:
After you give the player the regional POKé DEX, you will have to write another script with these commands in it:
Code:
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A
NOTE: This has to be done AFTER you give the regional POKé DEX to the player, or it will not work.

These commands will advance the regional POKé DEX into the National Dex. So, here's an example of a script that upgrades the regional POKé DEX into the National Dex:
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
message @t1 6
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A
fanfare 0x372
message @t2 4
waitfanfare
closeonkeypress
release
end

#org @t2
= \v\h01 received the National Dex!

#org @t1
= Here's an upgrade for your\nregional POKé DEX!
...And that's about it! You don't have to make a whole new script to upgrade the POKé DEX, you can just add the upgrade commands after you give the player the regional POKé DEX.

Side Note:
You will not be able to access the POKé DEX menu unless you have at least one POKéMON in your possession. Make sure to give the player a POKéMON before you give him/her the POKé DEX.

Thanks for reading!

Last edited by Renegade; June 3rd, 2013 at 08:30 AM.
  #2    
Old June 3rd, 2013, 07:14 AM
Awkward.'s Avatar
Awkward.
#britanna
 
Join Date: May 2012
Age: 17
Gender: Male
Nature: Sassy
Wow, that's cool! One thing though:

Code:
checkflag 0x8000
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A
clearflag 0x8000
Why do you check flag 0x8000 when there's no if or compare command following it? It's probably my own stupidity making me question this, but it seems useless to use checkflag without any followup commands. Otherwise, good job.
at some point I must have liked that you look like a taco addict who's had one too many back alley liposuctions

  #3    
Old June 3rd, 2013, 08:32 AM
Renegade's Avatar
Renegade
Time for real life...
 
Join Date: Nov 2011
Location: United States
Gender: Male
Nature: Careful
Quote:
Originally Posted by PJBottomz View Post
Wow, that's cool! One thing though:

Code:
checkflag 0x8000
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A
clearflag 0x8000
Why do you check flag 0x8000 when there's no if or compare command following it? It's probably my own stupidity making me question this, but it seems useless to use checkflag without any followup commands. Otherwise, good job.
Oops. Yeah, that was a mistake on my part. You do not need the check/clear flag commands at all. I edited the tutorial with the proper commands.
Post Reply
Quick Reply

Sponsored Links
Thread Tools

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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 04:53 AM.

About Us
© 2002 - 2014 The PokéCommunity™, pokecommunity.com. Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.

Copyright
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com. PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator. Header artwork by Jordanice of deviantART.

Social Media
If you would like to stay up-to-date with us on the go, when we're down, or other such things, follow us on social media sites--most notibly Twitter, Facebook, and Google Plus--by clicking on the links provided.

Design presented by Peitharchia. Special thanks to Hiroshi Sotomura and Ausaudriel.