> For the complete documentation index, see [llms.txt](https://wiki.thescriptersguild.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.thescriptersguild.com/scripting/nodes/ai-modifiers/set-ai-difficulty.md).

# Set AI Difficulty

![](https://692276616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN06Vv6nlwviUQ4hI2Kkd%2Fuploads%2Fgit-blob-091b939d4485ee358f1a4a8af9c5bfd7715888ef%2Fset-ai-difficulty.png?alt=media)

## Description

Changes Global AI Difficulty, ranging from Easy to Legendary, and Co-op Scaled Difficulty, which scales difficulty based off the number of players. Only newly-spawned squads will have the new difficulty, so the node can optionally Kill All Squads to ensure difficulties match.

## Node Type

Nodes fall into two basic categories: Data and Execution. This node Executes a function directly in the node string.

## Inputs

| Input                   | Type                                                             | Required | Description                                                                         |
| ----------------------- | ---------------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------- |
| Global AI Difficulty    | Easy / Heroic / Legendary / Normal                               | Yes      | Sets difficulty level for all AI in the game.                                       |
| Co-op Scaled Difficulty | Dynamic / Four Players / Many Players / One Player / Two Players | Yes      | Sets difficulty of all AI based off number of players in the game.                  |
| Kill All Squads         | Boolean                                                          | Yes      | Whether or not to kill all currently existing AI that have old difficulty settings. |

## Outputs

| Output | Type | Description |
| ------ | ---- | ----------- |
| N/A    | N/A  | N/A         |

\
\
**Contributors**

AddiCt3d 2CHa0s
