mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Updated Scripting (markdown)
parent
333db65bb6
commit
1969868e24
13
Scripting.md
13
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.
|
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.
|
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`
|
Loading…
x
Reference in New Issue
Block a user