Template:InfNPCInfobox

From Infernum Mod Wiki
Jump to navigation Jump to search
This template is i18n-ready, which means it is easy to localize for different languages. Please see tgc:Help:I18n & l10n for templates to learn more.
See Template:InfNPCInfobox/l10n for the localization of this template.

width sets the width of the template

alignment sets the positioning of the template, pick between left, right, none, or initial

rightMargin is not necessary, but when you make a template in a tabber use it, otherwise the infobox overflows. Make it 10px or so

name sets the name of the NPC

card sets the descriptor of the NPC

mainGif sets the main image or gif you're using. You'll need to put it in the file format (this allows for positioning, resolution, etc to be set by you)

type sets the type of NPC this is, and automatically puts a link to it

environment sets the environment the NPC can be found in. Only put it when there is a necessity

damage sets the damage from an NPC, it takes all text as arguments

same for life and defense

kb sets the knockback resistance, only takes a numbered argument and automatically adds a %

there are three debuffs which can be accounted for with name, duration, and tooltip. The name autolinks to Terraria or Calamity wikis, so no typos.

money uses the value argument, see the Calamity wiki for how to use

items uses the normal "|item|quantity|drop%" argument. There are ways to make custom item cells, look at the Hive Mind infobox to see how

mapPng adds a map icon. Use mapPng1 if you wanna add another map icon, it'll auto adjust. Two map icons max though. If we need more, we'll see. If the map icon is a gif, use mapGif and mapGif1


Statistics