• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - 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] 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