• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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] Old man position script

  • 22
    Posts
    7
    Years
    • Seen Feb 13, 2023
    Hello everyone, I have problem with script.
    I want to change position Old man in viridian city, can anyone help me with it?
     
    Oh ok I see it but I dont understand what is movesprite2 0x4 0x15 0xB and spritebehave 0x4 0x8 (and what are these numbers after 0x)
     
    - movesprite2 0x4 0x15 0xb

    - movesprite2 is the command used to move NPC's around the map, it is usually used as a level script.

    - 0x4 is the person event number to move, if the old man in Advance Map has the person event number 4, you'd write the same in the script.
    - 0x15 is the X coordinate on the map where you want to move the NPC. if the X coordinate is 21 in Advance map, you'd write 0x15 in your script since you have to convert decimal to hexadecimal numbers (21 to 15).
    - 0xb is the X coordinate on the map where you want to move the NPC. (If the Y coordinate in Advance map is 11, in the script you would write 0xb)

    ------------------------------------------------------------------------
    - spritebehave 0x4 0x8

    - spritebehave is the command used to make a certain NPC do something like running, jogging, change the direction in where they look, etc.

    - 0x4 is the person event number - explained before
    - 0x8 is the behaviour byte. This tells the game what the NPC will do. I am pretty sure that the "behaviour byte in XSE" is the "movement type" in Advance map. The movement type has a drop down list with various movements. No movement is the first one so it would be 0x0, Look around is second one so it's 0x1. If the behaviour byte ends up being something else in game, try using a different number.
     
    Back
    Top