Active player (277)
Joined: 11/21/2023
Posts: 42
Location: RNG Bullet Hell
Good evening or morning to you, could you please explain how RNG works in Dynastic Hero / Monster World? It is probably similar to what SMS Dragon's Trap submission page says by The8bitbeast:
The randomness comes from a pointer to the current location in the table, which advances by one each time a random event occurs. Once the end of the table is reached the pointer is reset to 0. The RNG table is stored in RAM from 0x10A5 - 0x10DB and the pointer to the current location in the table is at 0x10DC (16 bit). The table is actually 55 bytes long and updates, but considering it as a static repeating 385 bytes is a simplification. When the game reads a byte from the RNG table it interprets the value as 1 of 16 outcomes. For example, the bytes 0x03 and 0x13 result in the same outcome. As a result, each enemy has 16 possible item slots and there are 16 possible values corresponding to each item slot.
How can I find the table and pointer in Dynastic Hero?