30,374
edits
Tiddlywinks (talk | contribs) (Gen II details (correct--I hope...), "courtesy" of UPokecenter. Still wanna test those mechanics... Gen IV remains messy at best) |
Tiddlywinks (talk | contribs) m (→Mechanics: Forgot to explain X/Y. Frankly, I'm not 100% sure the origins are north/west (also, whether it starts at 0 or 1). I'll do tests another time, though) |
||
Line 11: | Line 11: | ||
===Mechanics=== | ===Mechanics=== | ||
Every headbuttable tree can be associated with an index from 0 to 9. Depending on the player's [[Trainer ID number|Trainer ID]], half of those indices correspond to trees with moderate encounter chances, while the other half correspond to trees with a low encounter chance. | Every headbuttable tree can be associated with an index from 0 to 9. Depending on the player's [[Trainer ID number|Trainer ID]], half of those indices correspond to trees with moderate encounter chances, while the other half correspond to trees with a low encounter chance. | ||
A tree's index depends on its X and Y coordinates in the map; that is, its distance from, respectively, the westmost and and northmost edges. | |||
:<code>''index'' = ( ( ''X'' * ''Y'' + ''X'' + ''Y'' ) / 5 ) [[wp:modulo operation|%]] 10</code> | :<code>''index'' = ( ( ''X'' * ''Y'' + ''X'' + ''Y'' ) / 5 ) [[wp:modulo operation|%]] 10</code> |