• 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!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] Need Help With Script, Again...

  • 6
    Posts
    8
    Years
    • Seen Nov 25, 2017
    This script is a script not a person event and every time I step on it the game freeze.
    heres the script:
    #dynamic 0x800000
    #org @start
    checkflag 0x202
    if 0x1 goto @end
    lock
    msgbox @t1 0x6
    applymovement 0xFF @m1
    waitmovement 0x0
    release
    end
    #org @m1
    #raw 0x8
    #raw 0xFE
    #org @t1
    = Looks like these pokemon are\nfighting, better back off.
    #org @end
    end
    It's suppose to make the player move back when they step on the script if the flag is clear. If the flag not clear it's suppose to do nothing. How can I fix this?
     
    I don't see anything directly wrong with the script, and I am new to rom hacking, but I have been told and noticed that flags generally have less problems when they are above 1200, so it is a possibility it isn't working well because the flag you are checking is 202, but I don't know how much a difference it makes.
     
    This script is a script not a person event and every time I step on it the game freeze.
    heres the script:
    #dynamic 0x800000
    #org @start
    checkflag 0x202
    if 0x1 goto @end
    lock
    msgbox @t1 0x6
    applymovement 0xFF @m1
    waitmovement 0x0
    release
    end
    #org @m1
    #raw 0x8
    #raw 0xFE
    #org @t1
    = Looks like these pokemon are\nfighting, better back off.
    #org @end
    end
    It's suppose to make the player move back when they step on the script if the flag is clear. If the flag not clear it's suppose to do nothing. How can I fix this?

    I don't know if I'm right, but I think your @end cannot be empty, then place the "lock" before the "checkflag" instead after, then place "release" at your @end, and test it.

    EDIT:
    I've found something useful:

    applymovement
    Arguments:
    byte-or-variable index
    pointer movements
    Applies the movement data at movements to the specified (index) Person event. Also closes any standard message boxes that are still open.
    Indices 0xFF and 0x7F refer to the player and the camera, respectively. Running this command from a Script event will crash the game unless that Script event's "Unknown" field (in AdvanceMap) is "$0003" and its "Var number" field refers to a valid script variable.
     
    Last edited:
    Thanks For Your Help, I'm Still Kinda New To Rom Hacking And The Tutorial I Was Watching Didn't Mention This Info.
     
    Back
    Top