Editing User:Blaziken257/Telefang RNG
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
In [[Telefang 1]], random events rely on a random number generator. It is generated using the following variables: | In [[Telefang 1]], random events rely on a random number generator. It is generated using the following variables: | ||
* The frame counter, located at <tt> | * The frame counter, located at <tt>0x3C30</tt> in RAM. This is an 8-bit number, and it increments by 1 for every frame that passes (1 frame = 1/60 second). However, it temporarily freezes in certain situations, mainly when the game has to load screens. The frame counter makes random actions frame dependent. | ||
* Seed 1, located at <tt>0xC41F</tt> in RAM. This value is also an 8-bit number, and it changes every time a random event occurs, and its value depends on the current value of the frame counter, as well as the current values of both seeds. | * Seed 1, located at <tt>0xC41F</tt> in RAM. This value is also an 8-bit number, and it changes every time a random event occurs, and its value depends on the current value of the frame counter, as well as the current values of both seeds. | ||
* Seed 2, located at <tt>0xC420</tt> in RAM. This 8-bit value functions similarly to Seed 1, although it influences the randomly generated number more than Seed 1. | * Seed 2, located at <tt>0xC420</tt> in RAM. This 8-bit value functions similarly to Seed 1, although it influences the randomly generated number more than Seed 1. |