• 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!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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✓] Can't move after level script

Danny0317

Fluorite's back, brah
  • 1,066
    Posts
    11
    Years
    • Age 25
    • Seen Nov 19, 2023
    Well, like the title says I cannot move after a level script. Made sure the vars and value are the same in a-map and the script. Also the script runs perfectly, until the end, where I can't move. Help would be appreciated. The script is in the spoiler
    Spoiler:
     
    Go into A-Map's header mode and toggle advanced mode (control+H?). There should be a 'map script offset' containing an offset of around 700000. Open that offset in XSE, toggle the level script function and decompile the script and post the remainder here for me to look at. :)
     
    Go into A-Map's header mode and toggle advanced mode (control+H?). There should be a 'map script offset' containing an offset of around 700000. Open that offset in XSE, toggle the level script function and decompile the script and post the remainder here for me to look at. :)

    Alright, did that, it's in the spoiler.
    Spoiler:
     
    If the script is supposed to activate when 0x4001 is equal to 0x1, your script should look like this:

    Code:
    '---------------
    #org 0x71C13C
    #raw 0x2
    #raw pointer 0x871C142
    #raw 0x0
    
    '---------------
    #org 0x71C142
    #raw word 0x4001
    #raw word 0x1
    #raw pointer 0x88088CE
    #raw word 0x0
    
    '---------------
    #org 0x8088CE
    lock
    checkflag 0x207
    if 0x1 goto 0x88088E9
    checkflag 0x828
    if 0x1 goto 0x88088EC
    setvar 0x4001 0x2
    release
    end
    
    '---------------
    #org 0x8088E9
    release
    end
    
    '---------------
    #org 0x8088EC
    applymovement 0x1 0x8808934
    waitmovement 0x0
    msgbox 0x880893E 0x6 '"[red_fr][player], what do you mean..."
    applymovement 0xFF 0x8808981
    waitmovement 0x0
    applymovement 0x1 0x880898F
    waitmovement 0x0
    msgbox 0x880A0F4 0x6 '"[red_fr]I'm sorry, [player].\nI ju..."
    applymovement 0xFF 0x880A175
    msgbox 0x880A17A 0x6 '"[red_fr]Oh, [player].. just don't\..."
    setflag 0x207
    setvar 0x4001 0x2
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x80893E
    = [red_fr][player], what do you mean you're\nleaving?\lYou can't just leave me!
    
    #org 0x80A0F4
    = [red_fr]I'm sorry, [player].\nI just.. didn't want anything bad\lto happen to you.. But I know this\lmeans a lot to you, so I'll let\lyou go.
    
    #org 0x80A17A
    = [red_fr]Oh, [player].. just don't\nlet anything bad happen to you..\lAnd please just don't go near the\lprison in Filler Citty.\l
    
    
    '-----------
    ' Movements
    '-----------
    #org 0x808934
    #raw 0x62 'Exclamation Mark (!)
    #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 0x0 'Face Down
    #raw 0xFE 'End of Movements
    
    #org 0x808981
    #raw 0x65 'Double Exclamation Mark (!!)
    #raw 0x5 'Face Up (Faster)
    #raw 0x6 'Face Left (Faster)
    #raw 0x7 'Face Right (Faster)
    #raw 0x8 'Step Down (Very Slow)
    #raw 0x9 'Step Up (Very Slow)
    #raw 0x5 'Face Up (Faster)
    #raw 0x6 'Face Left (Faster)
    #raw 0x7 'Face Right (Faster)
    #raw 0x8 'Step Down (Very Slow)
    #raw 0x9 'Step Up (Very Slow)
    #raw 0x65 'Double Exclamation Mark (!!)
    #raw 0xFE 'End of Movements
    
    #org 0x80898F
    #raw 0x65 'Double Exclamation Mark (!!)
    #raw 0xFE 'End of Movements
    
    #org 0x80A175
    #raw 0x0 'Face Down
    #raw 0x66 'Happy ()
    #raw 0x1 'Face Up
    #raw 0xFE 'End of Movements
     
    If the script is supposed to activate when 0x4001 is equal to 0x1, your script should look like this:

    Code:
    '---------------
    #org 0x71C13C
    #raw 0x2
    #raw pointer 0x871C142
    #raw 0x0
    
    '---------------
    #org 0x71C142
    #raw word 0x4001
    #raw word 0x1
    #raw pointer 0x88088CE
    #raw word 0x0
    
    '---------------
    #org 0x8088CE
    lock
    checkflag 0x207
    if 0x1 goto 0x88088E9
    checkflag 0x828
    if 0x1 goto 0x88088EC
    setvar 0x4001 0x2
    release
    end
    
    '---------------
    #org 0x8088E9
    release
    end
    
    '---------------
    #org 0x8088EC
    applymovement 0x1 0x8808934
    waitmovement 0x0
    msgbox 0x880893E 0x6 '"[red_fr][player], what do you mean..."
    applymovement 0xFF 0x8808981
    waitmovement 0x0
    applymovement 0x1 0x880898F
    waitmovement 0x0
    msgbox 0x880A0F4 0x6 '"[red_fr]I'm sorry, [player].\nI ju..."
    applymovement 0xFF 0x880A175
    msgbox 0x880A17A 0x6 '"[red_fr]Oh, [player].. just don't\..."
    setflag 0x207
    setvar 0x4001 0x2
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x80893E
    = [red_fr][player], what do you mean you're\nleaving?\lYou can't just leave me!
    
    #org 0x80A0F4
    = [red_fr]I'm sorry, [player].\nI just.. didn't want anything bad\lto happen to you.. But I know this\lmeans a lot to you, so I'll let\lyou go.
    
    #org 0x80A17A
    = [red_fr]Oh, [player].. just don't\nlet anything bad happen to you..\lAnd please just don't go near the\lprison in Filler Citty.\l
    
    
    '-----------
    ' Movements
    '-----------
    #org 0x808934
    #raw 0x62 'Exclamation Mark (!)
    #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 0x0 'Face Down
    #raw 0xFE 'End of Movements
    
    #org 0x808981
    #raw 0x65 'Double Exclamation Mark (!!)
    #raw 0x5 'Face Up (Faster)
    #raw 0x6 'Face Left (Faster)
    #raw 0x7 'Face Right (Faster)
    #raw 0x8 'Step Down (Very Slow)
    #raw 0x9 'Step Up (Very Slow)
    #raw 0x5 'Face Up (Faster)
    #raw 0x6 'Face Left (Faster)
    #raw 0x7 'Face Right (Faster)
    #raw 0x8 'Step Down (Very Slow)
    #raw 0x9 'Step Up (Very Slow)
    #raw 0x65 'Double Exclamation Mark (!!)
    #raw 0xFE 'End of Movements
    
    #org 0x80898F
    #raw 0x65 'Double Exclamation Mark (!!)
    #raw 0xFE 'End of Movements
    
    #org 0x80A175
    #raw 0x0 'Face Down
    #raw 0x66 'Happy ()
    #raw 0x1 'Face Up
    #raw 0xFE 'End of Movements


    I'll try that when I get home, thank you :)
     
    Back
    Top