diff --git a/Scripting.md b/Scripting.md index c626cd1..896ea75 100644 --- a/Scripting.md +++ b/Scripting.md @@ -5,7 +5,16 @@ GodMode9 is a large and complicated program, which since release v1.2.7 has had To run a GodMode9 script, all one must do is place the script file in the `/gm9/scripts` folder on the SD card. Then, in GodMode9, press the HOME button, press on Scripts... and select the script that you would like to run. One can also place the script anywhere on the SD (or any other drive, for that matter), and press A on the script file. There will be the option to Execute GM9 Script. You will get another prompt (are you sure you would like to execute this script?), press A there, and then the script will be run. +### Basics -**echo** command +GodMode9 script resembles shell script. Comments are denoted by `#` and work anywhere. Variable are in the format `$[VAR]` where `VAR` is the name of the variable. (i.e. $[HAX]). Surround an argument with `"` if it must contain whitespaces. Any redundant whitespaces outside of `"` will be treated as a single whitespace. +An unknown command will lead to script abort. -**chk** command \ No newline at end of file +### Commands + +A short description of every command. [Click on the command to go to a more detailed page about it]("WIP"). +`<>` Denotes a required parameter. `[]` denotes an optional parameter. + +**echo** command - Outputs data to the screen. Syntax: `echo ""` Example: `echo "Hello There!"` + +**chk** command - Checks two values against each other. Syntax: `chk ` Example: `chk $[HAX] a9lh` \ No newline at end of file