Note: The script is not very fast, it may take up to five minutes (at max_attempt=999999) to finish. It will freeze Bizhawk in the meantime
For Famidash v1.2.1+. Does not apply to v1.2 and earlier.
This script tells you, starting with an RNG value either specified or read from memory, whether Lucky Draw will eventually be successful within "max_attempt" loops (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 within "max_attempt" loops, and how many attempts it takes.
- 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 3, but with RNG value read from memory address 0x1B (4-byte little-endian)