> ## Documentation Index
> Fetch the complete documentation index at: https://docs.borntocraftstudio.net/llms.txt
> Use this file to discover all available pages before exploring further.

# NPC Generic Variable

> Reads internal MythicMobs variables.

The `mythicmob_npc_variable` reads a custom variable stored on the MythicMob NPC instance.

## Configuration

<ResponseField name="mythicmob_npc_variable" type="Map" required>
  Configuration for the variable.

  <Expandable title="Properties">
    <ResponseField name="id" type="String" required>
      Unique identifier for this variable.
    </ResponseField>

    <ResponseField name="variableKey" type="String" required>
      The key of the Mythic variable to read.
    </ResponseField>

    <ResponseField name="defaultValue" type="String">
      Value to return if variable is missing.
    </ResponseField>
  </Expandable>
</ResponseField>
