• 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.

[Other✓] Boat Script.

  • 94
    Posts
    11
    Years
    • Seen Sep 18, 2023
    Can someone give me an example how a script can look like( in Firered) Wjere you can see a Boat driving , that brings you to another location? (Like in Emerald with the old man and it pecko.)
     
    Well you coud use the SSanne sailing special an warp the player to the map.
     
    I don't remember much, but I think in emerald, the boat script used spriteinvisible and gave the player and boat the same movements. Maybe that could be useful?

    This would be helpfull.Can you give me an exemple how this script can look like?
     
    Here's what a basic outline of the script would look like:

    Code:
    #dynamic 0x740000
    
    #org @start
    lockall
    faceplayer
    msgbox @m1 MSG_KEEPOPEN
    closeonkeypress
    // Do stuff to get the player and the boatman "on" the boat
    // Now, this hides the player and does some movement
    spriteinvisible 0xFF 0x<your_map_bank> 0x<your_map>
    applymovement 0x<boat> @mov1
    applymovement MOVE_PLAYER @mov1
    waitmovement 0x0
    // Do more moving and such
    spritevisible 0xFF 0x<new_map_bank> 0x<new_map>
    msgbox @m2 MSG_KEEPOPEN
    releaseall
    end
    
    #org @m1
    = Let's go for a boat ride!
    
    #org @m2
    = We made it!
    
    #org @mov1
    #raw 0x10
    #raw 0x12
    // Just a generic move goes here
    #raw 0xFE

    If you can't understand it, perhaps you need to take a little time and check out a few tutorials. ;)
     
    Back
    Top