> 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/lists/declare-generic-item-variable.md).

# Declare Generic Item Variable

![](https://692276616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN06Vv6nlwviUQ4hI2Kkd%2Fuploads%2Fgit-blob-7087939b1826be9337a4f674d5dae4bf51198d66%2Fdeclare-generic-item-variable.png?alt=media)

## Description

Declare a Generic Item variable with a custom Identifier. Variable declarations do not require an event node to trigger. They are automatically performed when the node graph script is run.

## Node Type

Nodes fall into two basic categories: Data and Execution. This node Executes a function when the game loads.

## Inputs

| Input         | Type       | Required | Description                                                                                    |
| ------------- | ---------- | -------- | ---------------------------------------------------------------------------------------------- |
| Identifier    | String     | Yes      | The string id for this variable.                                                               |
| Initial Value | (anything) | No       | What the variable holds when the game starts.                                                  |
| Scope         | Scope      | Yes      | Determines if this item can be accessed by other brains, and what the item is associated with. |

## Outputs

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

\
\
**Contributors**

AddiCt3d 2CHa0s
