Module:Npcinfo/doc

This module is used to obtain the base statistics of an NPC. It should only be used in templates and the like; use getNpcInfo in article text.

It can calculate NPC stats for different stages/modes of the game (Classic / Expert pre-Hardmode / Expert Hardmode / Expert post-Plantera / Master pre-Hardmode / Master Hardmode / Master post-Plantera).

The code is synchronized with version of Terraria.

Usage
NPC id. Can be -1 to -65 or 1 to 662.
 * id

The prefix for the output variables. Default is. For example, the default variable name for damage is. If $prefix was set to, the variable name would be.
 * prefix

Statistics
Invoking this module sets a number of DPL variables, one for each stat. They can be retrieved via, e.g. for the defense stat with the default $prefix. The following table contains the most important stats:

In addition, a variable named _fields is set. It contains the names of all available statistics.

Examples
}} |}}