• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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] Pokemon Fire Red Rockfall Script

  • 1
    Posts
    6
    Years
    • Seen May 31, 2019
    Hi there!

    I'm currently working on a Pokemon Fire Red hack which centers around Misty after she returns to Kanto. I have a point in Mt. Moon where I want an earthquake to happen and rocks to "fall" (per-say) and block the main route. The script I have below works for the earthquake and to move the rocks. However, once the player leaves sight of the rocks they all return to the original position. Is there anything I'm missing/can add to make the position stay?

    Thanks for any advice!

    Spoiler:

    ?
     
    First, you need to add the following in your script somewhere after the last waitmovement 0x0:
    Code:
    call @movesprite
    
    #org @movesprite
    movesprite2 0x[B][Person Event #][/B] 0x[B][X-Coordinate][/B] 0x[B][Y-Coordinate][/B]
    movesprite2 0x[B][Person Event #][/B] 0x[B][X-Coordinate][/B] 0x[B][Y-Coordinate][/B]
    movesprite2 0x[B][Person Event #][/B] 0x[B][X-Coordinate][/B] 0x[B][Y-Coordinate][/B]
    movesprite2 0x[B][Person Event #][/B] 0x[B][X-Coordinate][/B] 0x[B][Y-Coordinate][/B]
    ...
    return
    Change the movesprite2s to match your rocks and they should stay in place. You can always add more than what I've shown above.

    So, for example, say you wanted to move rocks 0xB and 0xC to x-coordinates 0x7 & 0x8 respectively, and y-coordinates 0x9 & 0xA respectively, your script would like this:
    Code:
    #org @movesprite
    movesprite2 0x[B]B[/B] 0x[B]7[/B] 0x[B]9[/B]
    movesprite2 0x[B]C[/B] 0x[B]8[/B] 0x[B]A[/B]
    return

    Also, you need to add a On entering map/not on menu close [03] level script to your map. It should look something like this.
    Code:
    checkflag 0x259
    if true call @movesprite
    end
    Where @movesprite refers to that @movesprite from the previous code.
     
    Back
    Top