Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.

Emulation & ROM Hacking

Moving Event Lines/NPCs/Background - Page 1

Moving Event Lines/NPCs/Background

Posted by: agusganog
Date: 2009-03-01 15:05:17
I'm sure that there is an easier way to do this, but address D361 controls where NPCs, the background and events are triggered. For example, when you are one step away from moving into Route 1 from Pallet Town, this address has a value of 00. If we walk down from that position, the address begins to count up.

We can change this address to temporarily move everything on the screen BUT you. Adding 2 to the value in this address, for example, moves all NPCs 2 steps down from where they were and also moves the entrance to Route 1 two steps down.

Example:

I just started a new game, but I want to skip Oak. Go to this position:
[img]http://img6.imageshack.us/img6/1457/mmm1.png[/img]

Address D361 should have a value of 02 (because you are 3 steps away from the beginning of Route 1).

Next, I change D361 to 00. The beginning of Route 1 and Oaks event lines are moved 2 steps down. This places me in front of Oak's event and one step away from Route 1 (at this point, stepping down would trigger Oak's event).

[img]http://img17.imageshack.us/img17/8695/mmm2.png[/img]

Now walk into Route 1.



[size=3]Other applications:[/size]

Move the Old Man
[img]http://img205.imageshack.us/img205/4494/mmm3.png[/img]

Free the Zoo Animals
[img]http://img237.imageshack.us/img237/5207/mmm4.png[/img]

Re: Moving Event Lines/NPCs/Background

Posted by: Ashandmisty
Date: 2009-03-04 13:05:16
Nice finds! I will try it out.

Re: Moving Event Lines/NPCs/Background

Posted by: Zowayix
Date: 2009-03-04 17:07:56
Because I can, here's some screenshots of me stuffing around with the code (and mostly failing at it).
[IMG]http://img408.imageshack.us/img408/3320/pokemonblueuas05.png[/img]
[IMG]http://img408.imageshack.us/img408/9149/pokemonblueuas07.png[/img]
[IMG]http://img10.imageshack.us/img10/777/pokemonblueuas11.png[/img] (At this point, I was completely stuck for some reason.)
[IMG]http://img10.imageshack.us/img10/9113/pokemonblueuas12.png[/img]

Re: Moving Event Lines/NPCs/Background

Posted by: agusganog
Date: 2009-03-06 15:11:04
It takes a while to get used to, as collision data is moved as well.

Re: Moving Event Lines/NPCs/Background

Posted by: shaggs
Date: 2009-03-06 17:42:53
LOL YOU FREED THE ZOO ANIMALS

WHOO

That's hella awesome I don't know why I think
that but it is.