Updated Scripting (markdown)

SirNapkin1334 2018-04-15 17:35:01 -07:00
parent 333db65bb6
commit 1969868e24

@ -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
### 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 "<text to be outputted>"` Example: `echo "Hello There!"`
**chk** command - Checks two values against each other. Syntax: `chk <value1> <value2>` Example: `chk $[HAX] a9lh`