Instructions
Download a memory editor program that has to ability to export the cheats as a trainer. Cheat Engine and Trainer Maker Kit both have this feature.
Install the memory editor and leave it running.
Start the RPG for which you want to create your own trainer.
Look for the values in the game that you want to change. Most RPGs have a statistics screen that shows you stats like what your health and money values are.
Press ALT+TAB to task-switch out of the game then enter this value in the cheat program. For example, if you have 100 health in the RPG, you will enter the number "100" in the cheat program and then press "search." The program will scan the game and return all the memory addresses that contain that value. Your first search will most likely contain hundreds of results so you will have to narrow things down.
Task-switch back to the game, by pressing ALT+TAB, and change the value. For money, you would spend some cash to lower the value or for health you will take damage to change the amount. Other role playing statistics, such as strength, endurance, stamina and agility, often only change when your character goes up a level, so you may need to wait for this to occur before you can change these values.
Task-switch back to the cheat program and enter the new value. This will narrow down the search and return fewer memory addresses that could be the correct ones. Keep repeating this process until you are left with only one memory address. This will be the exact location in memory where the value is stored.
Change the value contained in this memory address. If your gold is 10,000, for example, change the value to 20,000 and switch back to the game. Check your gold in the game and if the value has changed you will know you have found the exact address and can now create the trainer. If the value does not change, the game more than likely has some sort of protection that prevents important values from being changed. This is often the case in online RPGs, such as "World of Warcraft."
Click "File" then "Save as..." in the cheat program to create the trainer. The file extension should be ".exe," and the trainer will need to be run before the game is started. For as long as the trainer remains open, the cheats it contains will be active in the game.