ff3:ff3us:tutorial:events:background

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ff3:ff3us:tutorial:events:background [2018/05/06 18:25]
lockirby2 Added link to the FAQ to help people remove the header.
ff3:ff3us:tutorial:events:background [2019/02/12 10:44] (current)
Line 33: Line 33:
 If you open up the Event Script, you'll probably notice some values at the left side, such as CA/0000.  These are addresses.  Addresses are a way to uniquely identify any particular byte in the ROM.  Every byte in the ROM has its own address.  If we have looked in the event dump and found an event that we want to edit, we can use the address to find that event in the ROM data as well.  Take a look at CA/0010.  We see that the byte at CA/0010 is 4B.  4B happens to be the command that displays some dialogue.  The event dump also tells us that the dialogue that would be displayed is "Found <N> GP!" So this event is called by the game whenever you receive GP from a chest!  To be specific, this part of the event only controls the dialogue box, so it doesn't actually give the player any GP. If you open up the Event Script, you'll probably notice some values at the left side, such as CA/0000.  These are addresses.  Addresses are a way to uniquely identify any particular byte in the ROM.  Every byte in the ROM has its own address.  If we have looked in the event dump and found an event that we want to edit, we can use the address to find that event in the ROM data as well.  Take a look at CA/0010.  We see that the byte at CA/0010 is 4B.  4B happens to be the command that displays some dialogue.  The event dump also tells us that the dialogue that would be displayed is "Found <N> GP!" So this event is called by the game whenever you receive GP from a chest!  To be specific, this part of the event only controls the dialogue box, so it doesn't actually give the player any GP.
  
-Let's say that we want to modify this event.  That would be strange, but we'll pretend that's our goal for the sake of the example.  The first step would be to find the event in the game data.  Unfortunately, CA/0010 is not the address we need to search for in HxD.  <I don'know much about Hi-ROM offsets, so it's hard to give an explanation here>  Therefore, we need to search for the address A0010 instead.  You can go to an address in HxD by clicking on Search > Goto, or using the Ctrl-G keyboard shortcut.  Once we have reached A0010, we can see that the byte here is indeed 4B, so we are in the right place:+Let's say that we want to modify this event.  That would be strange, but we'll pretend that's our goal for the sake of the example.  The first step would be to find the event in the game data.  Unfortunately, CA/0010 is not the address we need to search for in HxD; you need to search for A0010 (remove the "C" at the beginning).  I don'have a full understanding of why you need to do this.  You can go to an address in HxD by clicking on Search > Goto, or using the Ctrl-G keyboard shortcut.  Once we have reached A0010, we can see that the byte here is indeed 4B, so we are in the right place:
  
 {{:ff3:ff3us:tutorial:events:address.png|}} {{:ff3:ff3us:tutorial:events:address.png|}}
  • ff3/ff3us/tutorial/events/background.1525631119.txt.gz
  • Last modified: 5 years ago
  • (external edit)