• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Script] Make Surf usable at start of game in FireRed

DrFuji

[I]Heiki Hecchara‌‌[/I]
1,691
Posts
14
Years
  • 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
     
    760
    Posts
    15
    Years
    • Seen today
    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.
     

    Uncommon

    Oozma Kappa
    192
    Posts
    8
    Years
  • 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.
     
    Back
    Top