Module:HeroStats2/Infobox/doc

From Darkest Dungeon Wiki
Jump to navigation Jump to search

This is the documentation page for Module:HeroStats2/Infobox

Template-info.svg Documentation

This module renders infoboxes for Heroes in Darkest Dungeon II.

There are two API functions, render and query, both with Lua and Wikitext variants. The primary point of access is the _query function; other functions mostly exist for testing purposes.

render and _render

Renders the given hero data into an infobox. In addition to all the hero attributes (see Template:HeroStats2/Add), it also accepts the following parameters:

  • (stat)_cdf: numeric, for each stat. E.g. hp_cdf or upgraded_bleed_cdf. This (optional) value determines the colour of the displayed stat.
  • _pageName: string. This is used to generate an edit link for entries that are loaded from Cargo. (Click on the small "+" button to view it.)

default_name and permanent_conditions are both optional.

Examples

Test Custom Hero
Spearman.png
Default Name
Test Default Name
Stats
BaseUpgraded
HP HP11
Speed Speed34
Resistances
Bleed Bleed5%6%
Blight Blight7%8%
Burn Burn9%9%
Disease Disease17%18%
Stun Stun11%12%
Move Move13%14%
Debuff Debuff15%15%
Deathblow Deathblow19%19%
LowMediumHighUpgraded
Movement
21 forward, 22 backward
Permanent Condition(s)
On Combat Start:
  • StealthBlock+
  • This is a test.
No Optionals
Swordman.png
Stats
HP HP1
Speed Speed3
Resistances
Bleed Bleed5%
Blight Blight7%
Burn Burn9%
Disease Disease17%
Stun Stun11%
Move Move13%
Debuff Debuff15%
Deathblow Deathblow19%
LowMediumHigh

query and _query

As above, but fetches the data from Cargo instead of using arguments.

Examples

Bounty Hunter
Bh 2.png
Stats
HP HP48
Speed Speed3
Resistances
Bleed Bleed30%
Blight Blight30%
Burn Burn30%
Disease Disease40%
Stun Stun40%
Move Move30%
Debuff Debuff40%
Deathblow Deathblow75%
LowMediumHigh
Movement
2 forward, 2 backward
Permanent Condition(s)
When Target Combo:
  • Reapply Combo (50%)
Grave Robber
Gr wiki.png
Default Name
Audrey
Stats
BaseUpgraded
HP HP2929
Speed Speed57
Resistances
Bleed Bleed30%30%
Blight Blight30%40%
Burn Burn30%30%
Disease Disease30%30%
Stun Stun20%20%
Move Move20%20%
Debuff Debuff30%30%
Deathblow Deathblow60%75%
LowMediumHighUpgraded
Movement
2 forward, 2 backward
Leper
Lep wiki2.png
Default Name
Baldwin
Stats
BaseUpgraded
HP HP4452
Speed Speed22
Resistances
Bleed Bleed10%10%
Blight Blight10%10%
Burn Burn20%20%
Disease Disease30%30%
Stun Stun30%30%
Move Move20%30%
Debuff Debuff20%20%
Deathblow Deathblow60%75%
LowMediumHighUpgraded
Movement
1 forward
Permanent Condition(s)
Combat Start:
Add Blind (50%)
Add Blind (25%)