• 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!
  • 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] First movement script not working AKA tearing my hair out

  • 11
    Posts
    3
    Years
    Hi! So I just wrote my first Big Boy Script, and no matter what I've tried so far, walking over the script tile in question results in big fat nothing. It doesn't freeze, but the player sprite walks right on by with nothing happening at all. I'll try to put all pertinent info below. If you can help me figure out what I'm doing wrong, I would really appreciate it. I'm using XSE and Advancemap

    Script:
    Spoiler:


    XSE settings:
    Spoiler:


    That's all the pertinent info I could think of. Thanks in advance!
     
    The first things to check would be whether flag 0x960 has accidentally already been set, causing you to jump to your end-and-do-nothing script; and also whether var 4050 is actually 0 - if it isn't the script would rightly not activate. Try switching the checkflag to "if 0x0 goto", and try using other var values or var numbers. If that changes nothing, we'll look into it more, but those would be the first things to look at :)
     
    @WistyFish

    1: Have expanded the amount of available flags? Flag 0x960 is not available in vanilla Fire Red, check this for a comprehensive flag list.

    2: Are you sure variable 0x4050 actually contains value 0x0 and has not been set to anything else in-game? Check this for a comprehensive variable list.

    3: The first unknown value in AdvanceMap should be the current height the protagonist is on +1. The highest available height in the vanilla games is 13. You probably need to set it to 0x0003 instead of 0x0300 (if the player is on a movement permission block C).
     
    The first things to check would be whether flag 0x960 has accidentally already been set, causing you to jump to your end-and-do-nothing script; and also whether var 4050 is actually 0 - if it isn't the script would rightly not activate. Try switching the checkflag to "if 0x0 goto", and try using other var values or var numbers. If that changes nothing, we'll look into it more, but those would be the first things to look at :)

    Thanks for responding! I don't think it's the flag. I had the same thought, and removed the flag check entirely and nothing changed. I will also try your suggestion though to double check. I was tired at that point lol

    As far as the var number, I honestly don't understand those numbers at all, and am basing what I am doing on a comment I saw on an old thread. I clearly need to do more research into this.

    I will fiddle with these and update!
     
    @WistyFish

    1: Have expanded the amount of available flags? Flag 0x960 is not available in vanilla Fire Red, check this for a comprehensive flag list.

    Glad you mentioned this! I'm actually using Emerald, but I was able to find the flags list through your link. I misunderstood something I read, I think, and have picked a new unused flag! However, this doesn't seem to do anything with regards to my problem. I also removed the check and set flag lines as a test and nothing changed.

    2: Are you sure variable 0x4050 actually contains value 0x0 and has not been set to anything else in-game? Check this for a comprehensive variable list.

    3: The first unknown value in AdvanceMap should be the current height the protagonist is on +1. The highest available height in the vanilla games is 13. You probably need to set it to 0x0003 instead of 0x0300 (if the player is on a movement permission block C).

    Thank you for giving me some context for what these numbers are, frankly I don't understand them yet, and was just copying someone else. I did try unknown 0003, copying the unknown of other scripts in the game, but I had no idea it was the height. Variables.... I know nothing. I will do more research on this, I expect I will find that this is my issue.
     
    It was the variable! Changed it to 0x4059, and the script works exactly as I wanted it to. Well... Actually I need to tweak the movements a little but that's no issue. I also partially understand what a Variable ID is now! Progress!

    I could cry. Thanks to both of you! Now I get to work on a scripted battle!.... y.. yaaay??
     
    It was the variable! Changed it to 0x4059, and the script works exactly as I wanted it to. Well... Actually I need to tweak the movements a little but that's no issue. I also partially understand what a Variable ID is now! Progress!

    I could cry. Thanks to both of you! Now I get to work on a scripted battle!.... y.. yaaay??

    If you need help with scripting you can PM me, I'll gladly help 🙂
     
    Back
    Top