• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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