> ## 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

> Access custom BTCMob variables.

The `btcmob_npc_generic_variable` retrieves custom variables stored on the BTCMob entity.

## Configuration

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

  <Expandable title="Properties">
    <ResponseField name="variableName" type="String" required>
      The key of the variable.
    </ResponseField>

    <ResponseField name="scope" type="Enum">
      Scope of the variable: `GLOBAL`, `TARGET`, `CASTER`.
    </ResponseField>

    <ResponseField name="npc" type="String">
      Optional NPC ID.
    </ResponseField>
  </Expandable>
</ResponseField>
