# CustomTerminalCommand

Defines custom terminal commands.

## Fields

### Command - String

Name of the command.

### CommandDesc - [LocalizedText](/wiki/reference/nested-types/localizedtext.md) (nested type)

Description of the command.

### PostCommandOutputs - [List TerminalOutput](/wiki/reference/nested-types/terminaloutput.md) (nested type)

List of output returned after terminal command is posted.

### CommandEvents - [List WardenObjectiveEventData](/wiki/reference/nested-types/wardenobjectiveeventdata.md) (nested type)

List of events to execute when command is executed.

Note 1: if you want to set a Chained Puzzle to this command, **only 1 chained puzzle** can be set at once (otherwise, upon command execution, there will be 2 chained puzzle being activated at the same time).

Note 2: basing on Note 1, if you set a Chained Puzzle to the command, for example, let's say that you set the 4th event in the event list with a chained puzzle; by doing so, upon command execution, all events prior to the 4th event will be executed, whereas the 4th event and the events lies after it would be executed after Chained Puzzle Completion.

Note 3: for command set with a Chained Puzzle, you should set the SpecialCommandRule to either `OnlyOnce` or `OnlyOnceDeleted`. Otherwise, executing the command multiple times leads to some bugs (for example, the command events not being executed, the enemy wave for the Chained Puzzle not stopping).

### SpecialCommandRule - [TERM\_CommandRule](/wiki/reference/enum-types.md#term_commandrule) (enum)

Specifies what happens to the terminal command after executing it.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gtfo-modding.gitbook.io/wiki/reference/nested-types/customterminalcommand.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
