The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Old man position script

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old October 30th, 2020 (2:33 AM).
MaxiDuck MaxiDuck is offline
 
Join Date: Nov 2017
Posts: 22
Hello everyone, I have problem with script.
I want to change position Old man in viridian city, can anyone help me with it?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 30th, 2020 (3:34 AM).
McPaul's Avatar
McPaul McPaul is offline
On my way to become a controversial and hated member.
 
Join Date: Mar 2018
Location: Switzerland
Gender: Male
Posts: 286
This is a level script, you have to go in the level scripts section in Advance Map
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old October 30th, 2020 (3:50 AM).
MaxiDuck MaxiDuck is offline
 
Join Date: Nov 2017
Posts: 22
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)
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old October 30th, 2020 (7:27 AM).
mcferaligatr's Avatar
mcferaligatr mcferaligatr is offline
 
Join Date: Nov 2018
Posts: 120
- 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.
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:16 AM.