In short, the process of creating a script looks like this:
In the latest versions of GameGuardian, you can write the script directly from the interface:
http://gameguardian.net/forum/gallery/image/517-record-script-gameguardian/
You turn on script recording and perform consistently all the action to produce a result. GameGuardian writes your actions to a script file.
However, not all of your actions fall into this record and not all parameters are taken into account. So this is only suitable for very simple scripts, or as a workpiece for later editing.
For example, you need to crack some game A.
Take the first action "find dword 123" and browse the list of functions until you find the one you need.
In this case, this is
mixed searchNumber (string text, int type = gg.TYPE_AUTO, bool encrypted = false, int sign = gg.SIGN_EQUAL, long memoryFrom = 0, long memoryTo = -1)
Perform a search for a number, with the specified parameters. More ...
Write the first line of the script:
gg.searchNumber ('123', gg.TYPE_DWORD)
Let's move on to the second action "replace the first 100 results by 456."
We read the reference again.
We see that we need two functions:
mixed getResults (int maxCount)
Load results into results. More ...mixed editAll (string value, int type)
Edit all search results. More ...
We write down the following two lines of code:
gg.getResults (100) gg.editAll ('456', gg.TYPE_DWORD)
Continue until you have written the script completely.
In this case, the script is already ready:
gg.searchNumber ('123', gg.TYPE_DWORD) gg.getResults (100) gg.editAll ('456', gg.TYPE_DWORD)
This example is very simple, but it shows the essence. As an extension of the script, you can add cleaning results at the very beginning, setting search regions and so on.
For more complex scripts, you need to understand the programming language Lua and the ability to write code.