The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Make Surf usable at start of game in FireRed

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 January 2nd, 2019 (1:43 PM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
You can change the flag number that allows you to surf with a pretty simple hex edit. Just check out this post.
__________________
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old January 2nd, 2019 (2:36 PM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
Quote:
Originally Posted by Petuuuhhh View Post
Thank you! So let's say I don't want a badge to activate it. I need it at the start of the game. Would changing that value to 00 be good?
Nah, that won't work, you either need to input a badge or change how surf works entirely. If you need it at the the very beginning of a game you can use one of the flags that are set during the start script. You can find it at 0x1A6481 and it looks like this:

Code:
'---------------
#org 0x1A6481
setflag 0x2B
setflag 0x2C
setflag 0x33
setflag 0x92
setflag 0x35
setflag 0x36
setflag 0x37
setflag 0x3C
setflag 0x3D
setflag 0xA1
setflag 0x3F
setflag 0x4F
setflag 0x5A
setflag 0xA3
setflag 0xA4
setflag 0x62
setflag 0x6B
setflag 0xA2
setflag 0x8C
setflag 0x6C
setflag 0x6D
setflag 0x6E
setflag 0x6F
setflag 0x75
setflag 0x74
setflag 0x7B
setflag 0x7C
setflag 0x7D
setflag 0x76
setflag 0x91
setflag 0x97
setflag 0x90
setflag 0x94
setflag 0x95
setflag 0x96
setflag 0x99
setflag 0xA5
setflag 0xA6
setflag 0xA7
setflag 0xA8
setflag 0xA9
setflag 0xAA
setflag 0xAB
setflag 0xAC
setflag 0x9D
setflag 0x9E
setflag 0x9F
setflag 0xA0
setflag 0xAE
setvar 0x4025 0x1F4
end
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old January 2nd, 2019 (2:41 PM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
Quote:
Originally Posted by Petuuuhhh View Post
Thank you! So let's say I don't want a badge to activate it. I need it at the start of the game. Would changing that value to 00 be good?
Those two bytes at that offset (24 08) refer to the flag 0x824 (Fifth Badge Flag). So you should change that to any flag (your own pick) that you will set somewhere at the start of the game. I'm not sure if flag 0x0000 is safe to use, so I wouldn't change it to that personally.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old January 2nd, 2019 (5:49 PM).
Uncommon's Avatar
Uncommon Uncommon is offline
Oozma Kappa
 
Join Date: Jun 2015
Location: Johto
Nature: Careful
Posts: 192
Quote:
Originally Posted by Petuuuhhh View Post
Thank you! So let's say I don't want a badge to activate it. I need it at the start of the game. Would changing that value to 00 be good?
I would suggest using 0x828 (hex value 28 08)- that's the flag that controls the "Pokemon" menu option being available. It's set as soon as you get your first Pokemon. I used this as the default flag for any HMs I wanted to be immediately usable in all my HM work. But you could also use any of the flags in DrFuji's post.
__________________
My work: HM type-check system hack (FireRed) | Turbo Test patch (FireRed)

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:18 AM.