The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Changing text from special menus

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old August 24th, 2018 (9:51 PM).
gerff's Avatar
gerff gerff is offline
 
Join Date: Mar 2018
Posts: 43
So, I'm making a lot of progress on my Fire Red hack. Recently, I've changed the overworld bike sprite to a Gogoat and so, I've had to change the Bike Shop into a place where you can rent a Gogoat for riding. The only problem is that when you talk to the guy at the shop, the menu shows up with the Bycicle option for buying, is there any way for me to change the text for this specific menu? I couldn't find anything related to it in the script.

That's the script from the Bike Shop guy, the only thing I've changed so far were the strings.
Spoiler:
'---------------
#org 0x16ABBD
lock
faceplayer
checkflag 0x271
if 0x1 goto 0x816AC58
checkflag 0x241
if 0x1 goto 0x816AC22
showmoney 0x0 0x0 0x0
preparemsg 0x890B3B0 '"Hi!\nWelcome to Poké Ride.\pHere y..."
waitmsg
multichoice 0xB 0x0 0xD 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x816AC07
compare 0x8000 0x1
if 0x1 goto 0x816AC15
compare 0x8000 0x7F
if 0x1 goto 0x816AC15
end

'---------------
#org 0x16AC58
msgbox 0x8192833 MSG_KEEPOPEN '"Are you enjoying\nGogoat's company..."
release
end

'---------------
#org 0x16AC22
msgbox 0x81927B2 MSG_KEEPOPEN '"Oh, that's[.]\pA Ride Voucher!\pOk..."
loadpointer 0x0 0x81927E1 '"[player] exchanged the\nRide Vouch..."
giveitem2 0x168 0x1 0x13E
setflag 0x271
additem 0x168 0x1
removeitem 0x160 0x1
msgbox 0x890D6D8 MSG_KEEPOPEN '"Thank you!\pRemember this Gogoat\n..."
release
end

'---------------
#org 0x16AC07
msgbox 0x8192796 MSG_KEEPOPEN '"Sorry!\nYou can't afford it!"
goto 0x816AC15

'---------------
#org 0x16AC15
msgbox 0x819280E MSG_KEEPOPEN '"Well, come back again sometime!"
hidemoney 0x0 0x0
release
end


'---------
' Strings
'---------
#org 0x90B3B0
= Hi!\nWelcome to Poké Ride.\pHere you can rent a\nGogoat to ride around.

#org 0x192833
= Are you enjoying\nGogoat's company?\nDo you like how it rides?\pYou can ride it on Cycling\nRoad and even into caves!

#org 0x1927B2
= Oh, that's[.]\pA Ride Voucher!\pOkay!\nHere you go!

#org 0x1927E1
= [player] exchanged the\nRide Voucher for a Gogoat.

#org 0x90D6D8
= Thank you!\pRemember this Gogoat\nis only for riding.\pYou can't use it on\nPokémon battles!\pCome back again sometime!

#org 0x192796
= Sorry!\nYou can't afford it!

#org 0x19280E
= Well, come back again sometime!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 1st, 2019 (2:57 PM). Edited October 1st, 2019 by Aelthir.
Aelthir Aelthir is offline
 
Join Date: Sep 2019
Posts: 7
Obviously this thread is very old now and you most likely figured out how to achieve this already, but in case anyone else is trying to do something like this, here goes. The easiest way to change this text is probably to use a hex editor (if you're comfortable with it). Using the list of values found in this thread, I converted the strings for the bike and the price to try and make it easier to locate.
Code:
BICYCLE
BC C3 BD D3 BD C6 BF

$1,000,000
B7 A2 B8 A1 A1 A1 B8 A1 A1 A1
As it is longer and less likely to be repeated, I started by searching for the price. I quickly found this:
Spoiler:

Great! Now I assume that the hex for BICYCLE will be very close to this address, so I skimmed over and sure enough:
Spoiler:

Now I just need to write new hex for what we want to be displayed. (this is also an opportunity to change the price shown in the menu, though I don't know how or if it will affect the actual cost to the player):
Code:
GOGOAT
C1 C9 C1 C9 BB CE

$2,500,000
B7 A3 B8 A6 A1 A1 B8 A1 A1 A1
Lets write this hex and test it out!
Spoiler:

Since GOGOAT has one less character than BICYCLE, I added 00 to the end to replace the last character with a space
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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 -8. The time now is 9:19 AM.