Note: Related to https://tasvideos.org/Forum/Posts/535292 and https://tasvideos.org/GameResources/NES/Famidash
This script tells you, starting with an RNG value either specified or read from memory, whether Lucky Draw will eventually be successful or end in an infinite loop (modes 1&2), or alternatively whether the first attempt is successful or fails a particular check (modes 3&4).
- mode 1: Starting with initial RNG given below, determine whether Lucky Draw will eventually be successful and on which attempt, or end up in an infinite loop and state which attempt repeats which attempt, and what the RNG value is when it repeats.
- mode 2: Same as mode 1, but with RNG value read from memory address 0x1B (4-byte little-endian)
- mode 3: Starting with initial RNG given below, determine whether the first attempt is successful, and if not, which of the 788 checks it fails, and the final RNG value upon death (this RNG value is the value for the next attempt).
- mode 4: Same as mode 2, but with RNG value read from memory address 0x1B (4-byte little-endian)