• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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] How do I do this?[ XSE/A-MAP]

ParsaMON

Overworld Spriter
  • 4
    Posts
    9
    Years
    Hello there. Before you read this: My english can be very bad.

    You know when you are going to choose a starter Pokemon in Oak's lab (FRLG) and you can't leave the lab before you have chosen a Pokemon?
    Yeah? Can someone please explain me how I do that, or at least show me the script?

    Thanks
     
    Last edited:
    It's the green script tiles, they check for flags/variables and divert you back towards the table if you haven't pick.

    In A-Map, click on one of the green script tiles and click 'open script' to have a looksie :).
     
    Here's the script:
    '---------------
    #org 0x1692C3 -- offset
    lockall -- locks all sprites
    textcolor 0x0 -- makes the text color for the next message to be blue
    applymovement 0x4 0x81A75F1 -- Makes Oak look down
    waitmovement 0x0 -- waits for the movement to stop
    msgbox 0x818E177 MSG_KEEPOPEN '"OAK: Hey!\nDon't go away yet!" -- a msgbox that closes on keypress (see next command)
    closeonkeypress -- waits for you to press a key before continuing through the script
    applymovement MOVE_PLAYER 0x81692E5 -- forces the player to go up 1 tile
    waitmovement 0x0 -- waits for the player movement to stop
    releaseall -- releases all sprites
    end -- ends the script


    Here's a scripting tutorial by tajaros: https://www.pokecommunity.com/threads/279345
     
    Thank you very much!
     
    Thank you too!
     
    Back
    Top