• 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] Help for a total newbie

  • 3
    Posts
    7
    Years
    • Seen Nov 23, 2023
    Salutations, my friends.
    Recently, for the first time, I've been trying to make a Fire Red ROM hack, but I ran into a problem.
    Basically, I wanted to make a script that forbids the player from advancing unless they've completed a certain event.
    However, every time I try to run it, the game freezes.
    This is the script:
    #dynamic 0x800000
    #org @main
    checkflag 0x201
    if 0x1 goto @done
    msgbox @msg 0x6
    applymovement 0xFF @move
    waitmovement 0x0
    release
    end
    #org @done
    end
    #org @msg
    = I should probably go to TONIO'S\nPIZZERIA...
    #org @move
    #raw 0x10
    #raw 0xFE
    Could anyone help me?
     
  • 1,278
    Posts
    9
    Years
    I'm think the problem is that you haven't used the setvar command. Can you try this? Also, don't forget to put the number of the variable in this case 4011 to the "Var Number" of the script in A-map
    #dynamic 0x800000

    #org @main
    checkflag 0x201
    if 0x0 goto @no
    setvar 0x4011 0x1
    end

    #org @no
    msgbox @nomon 0x6
    applymovement 0xff @move
    waitmovement 0x0
    return

    #org @nomon
    = I should probably go to TONIO'S\nPIZZERIA...

    #org @move
    #raw 0x8
    #raw 0xfe
     
    Last edited:
  • 3
    Posts
    7
    Years
    • Seen Nov 23, 2023
    Yeah I think that's the problem. When I can I'll try what you said. I'll let you know.
     
    Back
    Top