Community

The PokéCommunity

We are still working on a better slogan!

Visit Index



Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development
Notices

Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!
Research & Development programs in this forum are subject to moderator approval before they are displayed.

Post Reply
 
Thread Tools
  #1    
Old January 27th, 2010, 04:15 PM
diegoisawesome's Avatar
diegoisawesome
Not the Script Help Thread
Community Supporter
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 17
Gender: Male
Nature: Quirky
In Fire Red and Leaf Green, whoever has the trainer class of Champion automatically takes your rival's name. But how could we change that? Where is that bit of code that tells the class CHAMPION (and RIVAL, as well) to take the nickname of the rival you chose and place it over the trainer's in-game name? Could we change that? Could we omit it? I have no prior ASM knowledge, so I won't be much help, but I'm deciding to pose this question in hopes of getting it answered.


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
  #2    
Old January 27th, 2010, 11:55 PM
Spherical Ice's Avatar
Spherical Ice
Community Supporter
 
Join Date: Nov 2007
Location: UK
Send a message via Skype™ to Spherical Ice
I'm no expert, but for every Pokémon battle I've seen against the rival, his name is 'Terry', but in-game it is the player's defined name.
Maybe the key is Terry?

[/guess]
  #3    
Old January 28th, 2010, 02:33 AM
Darthatron's Avatar
Darthatron
巨大なトロール。
Community Supporter
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
There are two "CHAMPION" classes, the later (0x5A) changes the the name to the rival, whereas the earlier (0x1E) does not.
あなた は しきしゃ です
わたし は ばか です
  #4    
Old January 28th, 2010, 03:24 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Here's the code for FR US v1.0:

Code:
080d8140 7840 ldrb r0, [r0, #0x1] @ load the trainer class byte into r0 080d8142 2851 cmp r0, #0x51 @ check if the class is rival 080d8144 d003 beq $080d814e @ if equal, load rival's name 080d8146 2859 cmp r0, #0x59 @ check if the class is rival (2) 080d8148 d001 beq $080d814e @ if equal, load rival's name 080d814a 28ff cmp r0, #0x5a @ check if the class is champion 080d814c d106 bne $080d815c @ if different, load name as usual
So, if you want to edit which class trigger the rival's name, all you need to do is to edit the bytes in red below (offset 0xD8142):

Code:
51 28 03 d0 59 28 01 d0 5a 28
  #5    
Old January 28th, 2010, 03:30 PM
diegoisawesome's Avatar
diegoisawesome
Not the Script Help Thread
Community Supporter
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 17
Gender: Male
Nature: Quirky
Thanks for the responses! Seems like that was a simple enough question. This should really help hackers in the future! :D


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
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 08:21 PM.

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.