Check for gold amount > 65535:
Use Memory Assignment commands to copy the 3 gold bytes (7E2C53, 7E2C54, 7E2C55) somewhere into the 7F02xx+ location event temp memory.
Then, use several If Statements on those bytes to check for the gold amount.
---
Example - check if 500,000G or more obtained ($07A120)
Assignment, Mem to Mem, Variant 48, 7E2C55 to 7F0200, Width 1 byte
Assignment, Mem to Mem, Variant 49, 7E2C53 to 7F0202, Width 2 byte
Comparison, Value to Mem, Variant 12, 7F0200, Value 07, Width 1 byte, Operation >=
Comparison, Value to Mem, Variant 13. 7F0202, Value A120, Width 2 byte, Operation >=
---
The second If Statement should be inside the first one. The code window will look similar to:
Assign(data)
Assign(data)
If(address >= 1 byte number)
If(address >= 2 byte number)
Code to use if gold amount or higher is obtained
Check the Game Clock:
This is very similar to the above example. Copy the clock bytes you want from the 7E0400-7E0406 range to 7F0200+ location event temp memory and use If checks. Read the Memory Locations.txt of the Offsets Guide from Geiger's Crypt to find out how the clock values are stored.
---
Basic example - check if game clock > 99:59:
Assignment, Mem to Mem, Variant 48, 7E0406 to 7F0200, Width 1 byte
Comparison, Value to Mem, Variant 12, 7F0200, Value 00, Width 1 byte, Operation >
---