Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2015-04-15 15:08:00

~Red
Member
Registered: 2010-10-16
Post 238/276

Making Fly work for 2 region maps..

So I have implemented two region maps for the north and south parts of my region. The town map I had no trouble with and works as expected. I'm a little clueless on how fly works though, how it knows which towns you've visited and how to get it to load the other set of towns and routes from the other list.

Offline

#2 2015-04-15 19:49:14

Tauwasser
Member
Registered: 2010-10-16
Post 434/447

Re: Making Fly work for 2 region maps..

It sets the flags when the town is in the list and you visit the PokéCenter.

cYa,

Tauwasser

Offline

#3 2015-04-18 12:31:10

~Red
Member
Registered: 2010-10-16
Post 239/276

Re: Making Fly work for 2 region maps..

Tauwasser wrote:

It sets the flags when the town is in the list and you visit the PokéCenter.

cYa,

Tauwasser

I gathered that much but how exactly does it do this? And how would I make it so that I can add new towns in second region with new flags and to alternate between 2 flag lists depending on which region you're in (the region flag).

Offline

#4 2015-04-18 16:15:39

Tauwasser
Member
Registered: 2010-10-16
Post 435/447

Re: Making Fly work for 2 region maps..

Sorry, I was thinking knock-out map. Fly is turned on via script header phase 05. So use regular scripting commands to turn them on. Knock-out map is set when you enter a map with permissions 0x01 or 0x02 (outdoor) with tileset 0x06 (pokécenter) from a map with permission 0x03, 0x04, 0x07 or 0x06 (indoor).

FYI: Escape rope is doing something similar. Every transition from outdoor to indoor counts except for map bank 0x0F maps 0x0A (Mt. Moon) and 0x0C (top of Tin Tower).

~Red wrote:

how it knows which towns you've visited and how to get it to load the other set of towns and routes from the other list.

There should be no need to have a second list. Just append your entries to the list. This way, you can switch maps depending on map index ranges.

cYa,

Tauwasser

Last edited by Tauwasser (2015-04-18 16:38:04)

Offline

#5 2015-04-19 16:55:35

~Red
Member
Registered: 2010-10-16
Post 240/276

Re: Making Fly work for 2 region maps..

Tauwasser wrote:

Sorry, I was thinking knock-out map. Fly is turned on via script header phase 05. So use regular scripting commands to turn them on. Knock-out map is set when you enter a map with permissions 0x01 or 0x02 (outdoor) with tileset 0x06 (pokécenter) from a map with permission 0x03, 0x04, 0x07 or 0x06 (indoor).

FYI: Escape rope is doing something similar. Every transition from outdoor to indoor counts except for map bank 0x0F maps 0x0A (Mt. Moon) and 0x0C (top of Tin Tower).

~Red wrote:

how it knows which towns you've visited and how to get it to load the other set of towns and routes from the other list.

There should be no need to have a second list. Just append your entries to the list. This way, you can switch maps depending on map index ranges.

cYa,

Tauwasser

Did I mention I'm also hacking Pokemon Red :L

Offline

Board footer

Powered by FluxBB