Template:NpcIdFromInternalName
Jump to navigation
Jump to search
Documentation The documentation below is transcluded from Template:NpcIdFromInternalName/doc. (edit | history)
[purge]
This template returns the ID of an NPC based on its internal name.
Usage
{{ npcIdFromInternalName | <internal NPC name> }}
- First unnamed parameter
Internal name of the NPC. If it is empty or invalid, the template will return an empty string. Count is a special internal name which returns the greatest possible NPC ID plus 1. Use {{npcinfo/maxId}} instead preferably to retrieve the maximum NPC ID.
Examples
| Code | Result |
|---|---|
{{npcIdFromInternalName|BlueSlime}} |
1 |
{{npcIdFromInternalName|NonexistentNpcName}} |
|
{{npcIdFromInternalName|Count}} |
697 |