The Shadow Knight
Member
Ok, I'm trying to catch Heracross but I can't figure out what's actually a "low encounter tree" and because it's Pokémon of course there's a mathematical equation that's like figuring out rocket science. Anyone able to crack the code?
Looking at the info about I don't think you can do much with it unless you know where the start coordinates of the map you are headbutting trees on are.
I can tell you how to get your "good indexes" though: take the last digit of your trainer ID and take the 5 values below it, but wrap around when you hit zero to 9.
For example:
If your TID is 45678 then your good indexes are 7,6,5,4 and 3.
If your TID is 00123 then your good indexes are 2,1,0,9 and 8.
Any tree that matches one of those indexes will be a low-encounter tree and the index of a tree can be found by putting the following formula into a calculator:
Code:
index = ( ( X * Y + X + Y ) / 5 ) % 10
Where X is the X position of tree and Y the Y position taken from the top left of the map. The issue is finding out where the top left of the map is. The article I'm looking at also does not say whether the coordinates are in pixels or in tiles, though I would assume it's tile based.
EDIT:
Looks like bulbapedia has the full maps for the areas as they're in the ROM, you could use those to count out the X and Y coordinates of the trees.
Assuming it uses tile coordinates:
Taking this map for example: https://cdn.bulbagarden.net/upload/c/c5/Johto_Route_30_GSC.png
The most top left tree is at position (2,4). The top left most tiles should have coordinates (0,0).
So its index would be:
Code:
( ( 2 * 4 + 2 + 4 ) / 5 ) % 10 = [B]2[/B]