Space Station 13 - Modules - TypesVar Details - Proc Details

terminal_command

Vars

core_skillThe skill which is checked
man_entryShown when man name is entered. Can be a list of strings, which will then be shown on separate lines.
nameThe name of the command. Used for display and also in syntax checking.
patternMatched using regex against terminal input
regexThe actual regex, produced from above.
regex_flagsUsed in the regex
req_accessAccess needed, if any
skill_neededHow much skill the user needs to use this. This is not for critical failure effects at unskilled; those are handled globally.

Procs

get_argumentsReturns list of arguments (if any), or null on syntax error
parsenull return: continue. "" return will break and show a blank line. Return list() to break and not show anything.
proper_input_enteredShould not return null unless you want parser to continue.

Var Details

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.

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.