Module:Npcinfo/doc

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

It can calculate NPC stats for different stages/modes of the game (normal / 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, 1 to 662.
 * 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_e: damage_e_hm: damage_e_pp: DeathSound: defense: defense_e: defense_e_hm: defense_e_pp: dontCountMe: friendly: HitSound: knockBackResist: knockBackResist_e: knockBackResist_e_hm: knockBackResist_e_pp: lifeMax: lifeMax_e: lifeMax_e_hm: lifeMax_e_pp: internalName: netID: npcSlots: playersCount: rarity: scale: townNPC: townCritter: type: value: value_e: value_e_hm: value_e_pp: id=4 (Eye of Cthulhu):

aiStyle: boss: buffImmune: buffImmuneAll: damage: damage_e: damage_e_hm: damage_e_pp: DeathSound: defense: defense_e: defense_e_hm: defense_e_pp: dontCountMe: friendly: HitSound: knockBackResist: knockBackResist_e: knockBackResist_e_hm: knockBackResist_e_pp: lifeMax: lifeMax_e: lifeMax_e_hm: lifeMax_e_pp: internalName: netID: npcSlots: playersCount: rarity: scale: townNPC: townCritter: type: value: value_e: value_e_hm: value_e_pp:

id=54 (Clothier, NPC):

aiStyle: boss: buffImmune: buffImmuneAll: damage: damage_e: damage_e_hm: damage_e_pp: DeathSound: defense: defense_e: defense_e_hm: defense_e_pp: dontCountMe: friendly: HitSound: knockBackResist: knockBackResist_e: knockBackResist_e_hm: knockBackResist_e_pp: lifeMax: lifeMax_e: lifeMax_e_hm: lifeMax_e_pp: internalName: netID: npcSlots: playersCount: rarity: scale: townNPC: townCritter: type: value: value_e: value_e_hm: value_e_pp: