terminal_command ![code/modules/modular_computers/terminal/terminal_commands.dm 4](git.png)
Vars | |
core_skill | The skill which is checked |
---|---|
man_entry | Shown when man name is entered. Can be a list of strings, which will then be shown on separate lines. |
name | The name of the command. Used for display and also in syntax checking. |
pattern | Matched using regex against terminal input |
regex | The actual regex, produced from above. |
regex_flags | Used in the regex |
req_access | Access needed, if any |
skill_needed | How much skill the user needs to use this. This is not for critical failure effects at unskilled; those are handled globally. |
Procs | |
get_arguments | Returns list of arguments (if any), or null on syntax error |
parse | null return: continue. "" return will break and show a blank line. Return list() to break and not show anything. |
proper_input_entered | Should not return null unless you want parser to continue. |
Var Details
core_skill ![code/modules/modular_computers/terminal/terminal_commands.dm 16](git.png)
The skill which is checked
man_entry ![code/modules/modular_computers/terminal/terminal_commands.dm 8](git.png)
Shown when man name is entered. Can be a list of strings, which will then be shown on separate lines.
name ![code/modules/modular_computers/terminal/terminal_commands.dm 6](git.png)
The name of the command. Used for display and also in syntax checking.
pattern ![code/modules/modular_computers/terminal/terminal_commands.dm 10](git.png)
Matched using regex against terminal input
regex ![code/modules/modular_computers/terminal/terminal_commands.dm 14](git.png)
The actual regex, produced from above.
regex_flags ![code/modules/modular_computers/terminal/terminal_commands.dm 12](git.png)
Used in the regex
req_access ![code/modules/modular_computers/terminal/terminal_commands.dm 20](git.png)
Access needed, if any
skill_needed ![code/modules/modular_computers/terminal/terminal_commands.dm 18](git.png)
How much skill the user needs to use this. This is not for critical failure effects at unskilled; those are handled globally.
Proc Details
get_arguments
Returns list of arguments (if any), or null on syntax error
parse
null return: continue. "" return will break and show a blank line. Return list() to break and not show anything.
proper_input_entered
Should not return null unless you want parser to continue.