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 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 will be
 * (optional) prefix

When you use this module, it sets a number of DPL variables you can retrieve by using, for instance.

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: netID: npcSlots: playersCount: rarity: scale: townNPC: 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: netID: npcSlots: playersCount: rarity: scale: townNPC: 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: netID: npcSlots: playersCount: rarity: scale: townNPC: 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: netID: npcSlots: playersCount: rarity: scale: townNPC: type: value: value_expert: value_hardmode: value_postplantera: