Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2014-02-15 04:43:08

Vitharix
Member
Registered: 2011-12-29
Post 394/396

Wild Pokemon data when time of day changes

I was curious about the moment in which the game changes time of day, say, from NIGHT to MORNING. The palette changes without a screen refresh, IIRC. So, does the wildpoke data also change dynamically? or, if the player has a wild encounter before the data is reloaded, will they have the encounter using the data from the previous time of day's wildpoke data?

More importantly though, that is something I could check with a disassembler but I have no idea where I would start with that.

Offline

#2 2014-02-15 08:27:46

Miksy91
Member
Registered: 2010-10-16
Post 2,067/2,339

Re: Wild Pokemon data when time of day changes

I'd imagine that every time you take a step, it checks whether you're surfing, walking in an area with wild pokemon everywhere (caves, indoor towers etc.), or reach a tile with wild pokemon (normally a grass tile).
If any of those checks match, the wild pokemon table is accessed and then the time of day is checked. Depending on that, it checks the encounter rate and uses some algorithm to define whether you encounter a pokemon or not.
If you do encounter a pokemon, it uses another algorithm to define which list value (level + pokemon no.) to pick up from that list ("This map" + "This time of day").

Offline

#3 2014-02-19 22:16:16

Vitharix
Member
Registered: 2011-12-29
Post 395/396

Re: Wild Pokemon data when time of day changes

Hmm, okay. Simple enough. I thought there might've been a less-functional operation going on there. Thanks for clarifying!

Offline

Board footer

Powered by FluxBB