Module:Npcinfo/doc

This module is used to obtain the base statistics of each NPC.

It can calculate NPC stats for different numbers of players (for multiplayer) and/or different stages/modes of the game (normal / expert pre-Hardmode / expert Hardmode / expert post-Plantera).

The code is synchronized with version of Terraria.

Usage
NPC id. Can be -1 to -65, 1 to 579 (except 76, 146, 408).
 * id

The number of active players, default is 1. For some bosses and boss-like NPCs in Expert mode, the number of players determines the health.
 * (optional) players

The prefix for the output variable. Default is. For example, the default variable name for damage is. If you used, the variable name would be.
 * (optional) prefix

When you use this module, it sets a number of DPL variables you can retrieve by using, for instance. Use getNpcInfo for easily retrieving these variables and using them in articles.

Main variables:

Examples
See the source code of this documentation for details.

id= -3 (Green Slime):

aiStyle: boss: buffImmune: buffImmuneAll: damage: damage_expert: damage_hardmode: damage_postplantera: defense: defense_expert: defense_hardmode: defense_postplantera: dontCountMe: friendly: knockBackResist: knockBackResist_expert: knockBackResist_hardmode: knockBackResist_postplantera: lifeMax: lifeMax_expert: lifeMax_hardmode: lifeMax_postplantera: internalName: netID: npcSlots: playersCount: rarity: scale: townNPC: townCritter: type: value: value_expert: value_hardmode: value_postplantera: id=4 (Eye of Cthulhu):

aiStyle: boss: buffImmune: buffImmuneAll: damage: damage_expert: damage_hardmode: damage_postplantera: defense: defense_expert: defense_hardmode: defense_postplantera: dontCountMe: friendly: knockBackResist: knockBackResist_expert: knockBackResist_hardmode: knockBackResist_postplantera: lifeMax: lifeMax_expert: lifeMax_hardmode: lifeMax_postplantera: internalName: netID: npcSlots: playersCount: rarity: scale: townNPC: townCritter: type: value: value_expert: value_hardmode: value_postplantera: id=4 (Eye of Cthulhu), players=3 (more health):

aiStyle: boss: buffImmune: buffImmuneAll: damage: damage_expert: damage_hardmode: damage_postplantera: defense: defense_expert: defense_hardmode: defense_postplantera: dontCountMe: friendly: knockBackResist: knockBackResist_expert: knockBackResist_hardmode: knockBackResist_postplantera: lifeMax: lifeMax_expert: lifeMax_hardmode: lifeMax_postplantera: internalName: netID: npcSlots: playersCount: rarity: scale: townNPC: townCritter: type: value: value_expert: value_hardmode: value_postplantera: id=54 (Clothier, NPC):

aiStyle: boss: buffImmune: buffImmuneAll: damage: damage_expert: damage_hardmode: damage_postplantera: defense: defense_expert: defense_hardmode: defense_postplantera: dontCountMe: friendly: knockBackResist: knockBackResist_expert: knockBackResist_hardmode: knockBackResist_postplantera: lifeMax: lifeMax_expert: lifeMax_hardmode: lifeMax_postplantera: internalName: netID: npcSlots: playersCount: rarity: scale: townNPC: townCritter: type: value: value_expert: value_hardmode: value_postplantera: