• 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] Protagonist PC Problem

760
Posts
15
Years
    • Seen yesterday
    Hi all,

    I recently started scripting so this might be a noob question.
    Got a problem with the PC of my protagonist. I copied the script from Fire Red into my own ROM, but for some reason the script doesn't end when clicking cancel.

    My problem in-game:
    Protagonist PC Problem.gif

    I don't see the problem in the script.

    '---------------
    #org 0x805C80
    special 0x187
    compare LASTRESULT 0x2
    if 0x1 goto 0x8805CB4
    lockall
    setvar 0x8004 0x20
    special 0x17D
    setvar 0x8004 0x1
    special 0xD6
    sound 0x4
    msgbox 0x8805D20 MSG_KEEPOPEN '"[player] booted up the PC."
    special 0xF9
    waitstate
    special 0x190
    releaseall
    end

    '---------------
    #org 0x805CB4
    release
    end


    '---------
    ' Strings
    '---------
    #org 0x805D20
    = [player] booted up the PC.
    ------------------------------------

    Anyone knows why this occurs?
     

    Lunos

    Random Uruguayan User
    3,114
    Posts
    15
    Years
  • This is extremely weird because the script has a msgbox 0x4 without a closeonkeypress in the Vanilla ROM, but have you tried changing it to 0x6 in your ROM?
    Also, make sure in the block editor, that the tile with that PC has the Background Byte 00 20 (Block is covered by Hero).
     
    760
    Posts
    15
    Years
    • Seen yesterday
    First, thanks for your interest;)

    The block already has background byte 00 20. Changing the msgbox didn't have an effect.

    Might there be anything else I'm missing?
     
    760
    Posts
    15
    Years
    • Seen yesterday
    I'm using JPAN's hacked engine by the way. Maybe that causes this to happen.
     
    146
    Posts
    11
    Years
    • CO
    • Seen Mar 16, 2023
    Try special 0xFA and test it.
    I know I had this problem as well.
    Been awhile though so I can't really say.
     
    Back
    Top