diff --git a/Scripting.md b/Scripting.md index a2e20fd..7ee53f4 100644 --- a/Scripting.md +++ b/Scripting.md @@ -17,4 +17,17 @@ A short description of every command. Click on the command to go to a more detai **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 +**chk** command - Checks two values against each other. Syntax: `chk ` Example: `chk $[HAX] a9lh` + +[more to come ofc] + +#### Environmental Variables + +Environmental Variables are variables that are always available, no matter what. They are determined when GodMode9 boots, and cannot be changed via scripting commands. Remember, when including a variable in a command, use `$[VAR]` where `VAR` is the name of the variable (i.e. `$[HAX]`). + +`GM9VER` - the version of the currently running GodMode9 firm. (i.e. v5.0.0) +`REGION` - the region of the console's SysNAND. (can be `USA`, `EUR`, `JPN`, `KOR`, `CHN`, `TWN`, or `UNK` for unknown) +`SERIAL` - the serial of the console's SysNAND, not including Check Digit. (i.e. `CW13701547`) +`GM9OUT` - the standard output path (i.e. `0:/gm9/out`) +`CURRDIR` - the directory the script is running from (i.e. `0:/gm9/scripts`) +`HAX` - the exploit the system is running from (can be `ntrboot`, `sighax`, `a9lh`, or ` ` (empty, would be "")) \ No newline at end of file