Simply put, most cheat tools allow you to easily replace certain values in the program with a different value while it's running (such as 50 gold with 1000000 gold). This often requires some trial-and-error as well as general computing knowledge on the part of the hacker. For more on hex...
kairosoft.fandom.com