Editing
Template
:
HeroData/doc
(section)
Give feedback
Jump to navigation
Jump to search
Warning:
You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more
.
Log in
or
create an account
to continue receiving notifications after this account expires, and to access other features.
Anti-spam check. Do
not
fill this in!
== π Template Functions == The template has different modes depending on what information you need. === Getting Stats (Default) === This is the most common use case. Retrieves a hero's base stat value. The module automatically checks the hero's top-level stats, then Weapon stats, then AltFire stats. '''Syntax:''' <code><nowiki>{{HeroData|HERO_NAME|STAT_NAME|sig_figs_or_localize}}</nowiki></code> '''Parameters:''' * '''HERO_NAME''' - The hero's name (e.g., <code>Abrams</code>, <code>Bebop</code>) or internal key (e.g., <code>hero_atlas</code>) * '''STAT_NAME''' - The stat to retrieve (e.g., <code>MaxHealth</code>, <code>BulletResist</code>) * '''sig_figs_or_localize''' (optional) - Either a number for rounding (significant figures) or <code>true</code> to localize the value '''Examples:''' * <code><nowiki>{{HeroData|Abrams|MaxHealth}}</nowiki></code> β {{HeroData|Abrams|MaxHealth}} * <code><nowiki>{{HeroData|Bebop|BulletResist}}</nowiki></code> β {{HeroData|Bebop|BulletResist}} * <code><nowiki>{{HeroData|Abrams|MaxHealth|2}}</nowiki></code> β {{HeroData|Abrams|MaxHealth|2}} ''(rounded to 2 sig figs)'' * <code><nowiki>{{HeroData|Bebop|DPS|3}}</nowiki></code> β {{HeroData|Bebop|DPS|3}} === Getting Alt Fire Stats === Retrieves stats specifically from a hero's alternate fire mode. '''Syntax:''' <code><nowiki>{{HeroData|altfire|HERO_NAME|STAT_NAME|sig_figs_or_localize}}</nowiki></code> '''Example:''' * <code><nowiki>{{HeroData|altfire|Shiv|BulletDamage}}</nowiki></code> β {{HeroData|altfire|Shiv|BulletDamage}} === Getting List Elements === Retrieves a specific element from a list/array property. Primarily used for weapon types. '''Syntax:''' <code><nowiki>{{HeroData|list|HERO_NAME|LIST_NAME|INDEX|localize}}</nowiki></code> '''Parameters:''' * '''LIST_NAME''' - The name of the list property (usually <code>WeaponTypes</code>) * '''INDEX''' - Which element to get (1 for first, 2 for second, etc.) * '''localize''' (optional) - Defaults to <code>true</code> for readable names. Set to <code>false</code> for raw internal keys. '''Examples:''' * <code><nowiki>{{HeroData|list|Abrams|WeaponTypes|1}}</nowiki></code> β {{HeroData|list|Abrams|WeaponTypes|1}} ''(returns "Spreadshot")'' * <code><nowiki>{{HeroData|list|Abrams|WeaponTypes|2}}</nowiki></code> β {{HeroData|list|Abrams|WeaponTypes|2}} ''(returns "Close Range")'' * <code><nowiki>{{HeroData|list|Abrams|WeaponTypes|1|false}}</nowiki></code> β {{HeroData|list|Abrams|WeaponTypes|1|false}} ''(returns raw "Attribute_EWeaponAttribute_Spreadshot")'' '''Note:''' By default, list elements are localized to give readable names like "Spreadshot" instead of "Attribute_EWeaponAttribute_Spreadshot". === Getting Scaling Values === Retrieves the scaling value for a stat and returns it formatted with the appropriate scaling template ({{tl|Ss}} for Spirit or {{tl|PI}} for Power Increases). '''Syntax:''' <code><nowiki>{{HeroData|scalar|HERO_NAME|SCALING_TYPE|STAT_NAME|sig_figs_or_localize}}</nowiki></code> '''Parameters:''' * '''SCALING_TYPE''' - Either <code>Spirit</code> or <code>Level</code> (for Power Increases) * '''STAT_NAME''' - The stat to check scaling for * '''sig_figs_or_localize''' (optional) - Rounding or localization '''Examples:''' * <code><nowiki>{{HeroData|scalar|Sinclair|Spirit|MaxMoveSpeed}}</nowiki></code> β {{HeroData|scalar|Sinclair|Spirit|MaxMoveSpeed}} * <code><nowiki>{{HeroData|scalar|Bebop|Level|BulletResist}}</nowiki></code> β {{HeroData|scalar|Bebop|Level|BulletResist}} '''Note:''' Returns an empty string if the hero doesn't have scaling for that stat. === Getting Hero Tags === Retrieves one of a hero's three descriptive tags. '''Syntax:''' <code><nowiki>{{HeroData|tag|HERO_NAME|TAG_NUMBER}}</nowiki></code> '''Parameters:''' * '''HERO_NAME''' - The hero's display name (e.g., <code>Abrams</code>, <code>Lady Geist</code>) * '''TAG_NUMBER''' - 1, 2, or 3 (for the first, second, or third tag) '''Examples:''' * <code><nowiki>{{HeroData|tag|Abrams|1}}</nowiki></code> β {{HeroData|tag|Abrams|1}} * <code><nowiki>{{HeroData|tag|Lady Geist|2}}</nowiki></code> β {{HeroData|tag|Lady Geist|2}}
Summary:
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Deadlock:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Navigation menu
Personal tools
Create account
Log in
associated-pages
Template
Discussion
English
Views
Read
Edit source
History
Tools
Search
Discord
Discord
Navigation
Main page
About us
Random page
Special pages
Recent changes
Neutral
8h ago
Β·
~2026-LaneFireUrn1085
Souls
8h ago
Β·
Gammaton32
Neutral
8h ago
Β·
~2026-LaneFireUrn1085
Victor/Lore
10h ago
Β·
Roseabrams96
Show more...
Interface Admin
Common CSS
Vector CSS
Minerva CSS
Citizen CSS
Brown theme CSS
Gadgets
Gadgets definition
Editing
How to edit
Style guide
All guides
New files
Unresolved feedback
Tools
What links here
Related changes
Page information