• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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] Script help... again....

  • 16
    Posts
    6
    Years
    • Seen May 1, 2021
    Code:
    '---------------
    #org 0x8000D7
    fanfare 0x13E
    giveitem 0xD 0x1 MSG_OBTAIN
    waitfanfare
    hidesprite 3
    setflag 0x4F
    release
    end

    This script doesn't work as intended. When I walk away, it reappears. I have the person id set to the flag, but nothing. Any help would be appreciated. Thanks.
     
    Code:
    '---------------
    #org 0x8000D7
    fanfare 0x13E
    giveitem 0xD 0x1 MSG_OBTAIN
    waitfanfare
    hidesprite 3
    setflag 0x4F
    release
    end

    This script doesn't work as intended. When I walk away, it reappears. I have the person id set to the flag, but nothing. Any help would be appreciated. Thanks.


    Fixed.
    Code:
    '---------------
    #org 0x8000D7
    fanfare 0x13E
    giveitem 0xD 0x1 MSG_OBTAIN
    waitfanfare
    hidesprite 0x3
    setflag 0x4F
    release
    end
    You just missed to do "hidesprite 0x3".
     
    Last edited:
    It's weird, I've just tried your script and it works, the item doesn't reappear (I only changed MSG_OBTAIN by 0x1). I may be wrong but it can be due to a problem with the person number in your map. Did you try your script in another map ?
    If it works in the other maps, then maybe there is an issue with the order of person numbers on your current map. The person numbers must go from 1 to 5 if there are 5 people for example. If one of them is 6, it may cause this kind of issue.
    I already met this problem in the past after removing people and messing with people numbers, but I'm not sure if that's the cause of your glitch. Otherwise, try another flag, I don't know...
     
    Last edited:
    Then there must be some other flag "0x4F" clashing with your script. Try setting the flag somewhere between 0x200 - 0x2FF.
    These are the only available in the game. Any other flag used slowly breaks the game.

    Worked, thanks a lot :)
     
    @acetrainereddie
    There are actually more flags available, check this source to see where Fire Red flags are used in Vanilla Fire Red.

    @Pokechu
    Although you're a little right about flag 0x200 - 0x2FF, what you say is not all true and based on pretty old research. The statement in karatekid552's thread to only use flag 0x200 to 0x2FF was just to keep things from getting complicated. Saying that ''the game will slowly break when using other flags'' and that ''those are the only available in the game'' is plainly false.
    Check the documentation on pokefirered I sent to @acetrainereddie to see a (nearly) completed list of all flags available in Fire Red or check Karatedkid522's full findings on where which flags are used.
     
    @acetrainereddie
    There are actually more flags available, check this source to see where Fire Red flags are used in Vanilla Fire Red.

    @Pokechu
    Although you're a little right about flag 0x200 - 0x2FF, what you say is not all true and based on pretty old research. The statement in karatekid552's thread to only use flag 0x200 to 0x2FF was just to keep things from getting complicated. Saying that ''the game will slowly break when using other flags'' and that ''those are the only available in the game'' is plainly false.
    Check the documentation on pokefirered I sent to @acetrainereddie to see a (nearly) completed list of all flags available in Fire Red or check Karatedkid522's full findings on where which flags are used.

    Ugh... Every information is wrong or misleading. Thank you for the clarification.
     
    Back
    Top