:NpcIdFromName/doc

Terraria Wiki
둘러보기로 이동 검색으로 이동

This template returns the NPC ID of an NPC based on its name. It requires the exact name of the NPC, with potential sub-names in parentheses (e.g. Kobold Glider (T3)).

Usage

{{NpcIdFromName | <NPC name> (optional) }}

First unnamed parameter

Name of the NPC. Can be omitted in order to simply load the database and use the generated #dplvars elsewhere.

Notes

Since worms consist of several NPCs with different IDs, lacking a result for their trivial name, the ID of the worm's head will be returned when using its trivial name. Requesting Wyvern, for instance, results in 틀:NpcIdFromName, while the Wyvern's single NPC IDs are as follows:

Wyvern Head 틀:NpcIdFromName
Wyvern Legs 틀:NpcIdFromName
Wyvern Body 틀:NpcIdFromName
Wyvern Body 2 틀:NpcIdFromName
Wyvern Body 3 틀:NpcIdFromName
Wyvern Tail 틀:NpcIdFromName

Examples

  • {{NpcIdFromName|Eye of Cthulhu}} → 틀:NpcIdFromName
  • {{NpcIdFromName|Sand Poacher (On Wall)}} → 틀:NpcIdFromName

See Also

  • {{npcNameFromId}}