• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - 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.

Script is Crashing my Game

itsnikopiko

Elite Four
  • 5
    Posts
    4
    Years
    • Seen Dec 9, 2020
    Can anyone tell me why this script crashes my game and doesn't work?

    #dynamic 0x800000

    #org @start
    lock
    msgbox @t1 0x4
    closeonkeypress
    pause 0x60
    applymovement 0x1 @noticePlayer
    waitmovement 0x0
    msgbox @t2 0x6
    givepokemon 0x23 0x5 0x0 0x0 0x0 0x0
    setflag 0x828
    applymovement 0x1 @disappearNPC
    waitmovement 0x0
    hidesprite 0x9
    setflag 0x200
    release
    end

    #org @disappearNPC
    #raw 0xB
    #raw 0xB
    #raw 0xB
    #raw 0x8
    #raw 0x8
    #raw 0xB
    #raw 0xB
    #raw 0xB
    #raw 0xB
    #raw 0x8
    #raw 0x8
    #raw 0x8
    #raw 0x8
    #raw 0x8

    #org @t2
    = (text)

    #org @noticePlayer
    #raw 0x0
    #raw 0x62
    #raw 0x1C
    #raw 0x1C
    #raw 0xFE

    #org @t1
    = (text)
     
    I just tested your script, and have figured out why it crashes. Your @disappearNPC movement part of the script doesn't have #raw 0xFE at the end of it. Here is the script fixed:

    #dynamic 0x800000

    #org @start
    lock
    msgbox @t1 0x4
    closeonkeypress
    pause 0x60
    applymovement 0x1 @noticePlayer
    waitmovement 0x0
    msgbox @t2 0x6
    givepokemon 0x23 0x5 0x0 0x0 0x0 0x0
    setflag 0x828
    applymovement 0x1 @disappearNPC
    waitmovement 0x0
    hidesprite 0x9
    setflag 0x200
    release
    end

    #org @disappearNPC
    #raw 0xB
    #raw 0xB
    #raw 0xB
    #raw 0x8
    #raw 0x8
    #raw 0xB
    #raw 0xB
    #raw 0xB
    #raw 0xB
    #raw 0x8
    #raw 0x8
    #raw 0x8
    #raw 0x8
    #raw 0x8
    #raw 0xfe

    #org @t2
    = (text)

    #org @noticePlayer
    #raw 0x0
    #raw 0x62
    #raw 0x1C
    #raw 0x1C
    #raw 0xFE

    #org @t1
    = (text)
     
    Back
    Top