注意:1.4.5 的更新内容量较大,页面上很可能仍有内容尚未更新。
如中文 wiki 信息过时,可以参考英文 wiki 对应页面。
见 Terraria Wiki:项目/1.4.5 获取 wiki 状态与更新指南
如中文 wiki 信息过时,可以参考英文 wiki 对应页面。
见 Terraria Wiki:项目/1.4.5 获取 wiki 状态与更新指南
Template:NpcIdFromInternalName
跳转到导航
跳转到搜索
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 |