Honey: Difference between revisions

21 bytes removed ,  26 February 2009
m
Line 12: Line 12:


==Technical Mechanics==
==Technical Mechanics==
Each of the 21 Honey trees throughout the game occupy 8bytes in the Save file starting from 0x72E4.
Each of the 21 Honey trees throughout the game occupy 8 bytes in the save file starting from 0x72E4.


<code><span style="background:#FF9999">A0050000</span><span style="background:#5555FF">00</span><span style="background:#9999FF">00</span><span style="background:#99FF99">00</span><span style="background:#FFFF99">00</span></code>
<code><span style="background:#FF9999">A0050000</span><span style="background:#5555FF">00</span><span style="background:#9999FF">00</span><span style="background:#99FF99">00</span><span style="background:#FFFF99">00</span></code>


The <span style="background:#FF9999">red value</span> represents the countdown timer of playing time. This value starts at 1440 minutes and when it reaches 720 minutes, the pokemon will be on the tree. Once the countdown timer gets to 0, the player must put more honey on the tree and time has expired. The counter decreases by 1 every minute while playing the game.
The <span style="background:#FF9999">red value</span> represents the countdown timer of playing time. This value starts at 1440 minutes and when it reaches 720 minutes, the Pokémon will be on the tree. Once the countdown timer gets to 0, the player must put more honey on the tree and time has expired. The counter decreases by 1 every minute while playing the game.


The <span style="background:#9999FF">light blue value</span> represents the column for which Pokémon will appear. The <span style="background:#5555FF">dark blue value</span> represents the row for which the Pokémon will appear.
The <span style="background:#9999FF">light blue value</span> represents the column for which Pokémon will appear. The <span style="background:#5555FF">dark blue value</span> represents the row for which the Pokémon will appear.


The <span style="background:#99FF99">green value</span> represents how the next Pokémon will be determined.
The <span style="background:#99FF99">green value</span> represents how the next Pokémon will be determined.


The <span style="background:#FFFF99">yellow value</span> represents how much the tree will shake when the Pokémon is on it. This value is determined by the weight of the Pokémon. Some Pokémon such as {{p|Wurmple}} will not shake the tree at all, and the value will be 0. Other Pokémon such as {{p|Heracross}} will shake the tree quite a bit, and the value will be 2.
The <span style="background:#FFFF99">yellow value</span> represents how much the tree will shake when the Pokémon is on it. This value is determined by the weight of the Pokémon. Some Pokémon such as {{p|Wurmple}} will not shake the tree at all, and the value will be 0. Other Pokémon such as {{p|Heracross}} will shake the tree quite a bit, and the value will be 2.


===Determining the Pokémon===
===Determining the Pokémon===
The Pokémon is determined by calling the game's [[PRNG|Pseudo-Random Number Generator]] twice, once for the column and once for the row.  The PRNG result is put into the following calculation:
The Pokémon is determined by calling the game's Pseudo-Random Number Generator twice, once for the column and once for the row.  The PRNG result is put into the following calculation:


Let ''R'' be the result of the PRNG.
Let ''R'' be the result of the PRNG.
Line 31: Line 31:
''P = ( R >> 16 ) % 100''
''P = ( R >> 16 ) % 100''


For the List, if the number ''P'' is between 0 and 10, a Pokémon from List 1 will be chosen. If the number is between 11 and 30, {{p|Munchlax}} will be chosen. If the number is between 31 and 100, a Pokémon from List 2 will be chosen.
For the list, if the number ''P'' is between 0 and 10, a Pokémon from List 1 will be chosen. If the number is between 11 and 30, {{p|Munchlax}} will be chosen. If the number is between 31 and 100, a Pokémon from List 2 will be chosen.


For the row, if the number ''P'' is between 0 and 5, row 6 is used. If the number is between 6 and 10, row 5 is used. If the number is between 11 and 20, row 4 is used. If the number is between 21 and 40, row 3 is used. If the number is between 41 and 60, row 2 is used. If the number is between 61 and 100, row 1 is used.
For the row, if the number ''P'' is between 0 and 5, row 6 is used. If the number is between 6 and 10, row 5 is used. If the number is between 11 and 20, row 4 is used. If the number is between 21 and 40, row 3 is used. If the number is between 41 and 60, row 2 is used. If the number is between 61 and 100, row 1 is used.


This table displays the percentage chance for each row and column separately, as used by the game to determine which Pokémon will be on the Honey Tree.
This table displays the percentage chance for each row and column separately, as used by the game to determine which Pokémon will be on the Honey Tree.
1,218

edits