getNpcId Lua export - VanaDev/Vana GitHub Wiki

getNpcId

Script Type(s): NPC Scripts

Category: Miscellaneous Exports

Return(s):

  • npcId: number
Argument(s):
  • N/A
Notes: Returns the NPC identifier. This is useful because some scripts are referenced by multiple NPCs and have differing logic or dialog depending on which one it is.
⚠️ **GitHub.com Fallback** ⚠️