• 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] My script skips my applymovement steps

  • 1
    Posts
    6
    Years
    • Seen Apr 29, 2018
    So, I'm hacking Pokemon Firered and I am really new at this. Specifically been hacking for about 3 days now. And while trying to write a script in XSE and then playing it, I can add it to the rom just fine, however, it acts like it just skips my applymovement for the person I'm trying to bring in off-screen. It's is probably just a beginner mistake, but any help would be greatly appreciated.

    Code:
    '---------------
    #org 0x80097A
    msgbox 0x88009BD MSG_NORMAL '"Hey wait! Please do not move\nanot..."
    playsong 0x11A 0x0
    applymovement 0x5 0x88009EA
    waitmovement 0x5
    applymovement MOVE_PLAYER 0x88009FE
    waitmovement 0xFF
    msgbox 0x8800A03 MSG_NORMAL '"This is just a test!\pGoodbye!"
    applymovement 0x5 0x8800A23
    waitmovement 0x5
    hidesprite 0x5
    setvar 0x6000 0x1
    setflag 0x1202
    fadesong 0x12C
    release
    end


    '---------
    ' Strings
    '---------
    #org 0x8009BD
    = Hey wait! Please do not move\nanother inch!

    #org 0x800A03
    = This is just a test!\pGoodbye!


    '-----------
    ' Movements
    '-----------
    #org 0x8009EA
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x13 'Step Right (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0x11 'Step Up (Normal)
    #raw 0xFE 'End of Movements

    #org 0x8009FE
    #raw 0x0 'Face Down
    #raw 0x52 'Jump in Place (Facing Down)
    #raw 0x62 'Exclamation Mark (!)
    #raw 0xFE 'End of Movements

    #org 0x800A23
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x10 'Step Down (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0x12 'Step Left (Normal)
    #raw 0xFE 'End of Movements
     
  • 10,078
    Posts
    15
    Years
    • UK
    • Seen Oct 17, 2023
    iirc there's a limit to how far away from the screen applymovement works. Perhaps try putting a movesprite command to move them one-tile out of view and then walk them in.
     

    Skeli

    Lord of the Rings
  • 300
    Posts
    10
    Years
    Change all of your waitmovements to:
    Code:
    waitmovement 0x0
     
    Last edited:
    Back
    Top