FANDOM


Calculates the DMG based on the Hero Variables (applies to hero pages but can base values can be manually set):

{{Hero DMG 1.Hero Level | 2.Hero Star Level | 3.DMG Base | 4.DMG per Star | 5.DMGper Level | 6.Hero Type | 7.Style | 8.Class }}

Parameters:

1: Hero Level: The Hero's level number as in LEVEL. If not supplied to show the next level. Also this needs to be initually set, the last value will be used if a value is not supplied.
2: Star Level: The Star level numberr. If not supplied to show the next level. Also this needs to be initually set, the last value will be used if a value is not supplied.
3: DMG Base (Optional): Sets and remembers the Base DMG for the hero. Uses {{#var:{{PAGENAME}} DMGbase}} as the default value if nothing specified. Useful for where you want to override the default. This value is remembered until changes so only needs to be set once until it needs to be changed.
4: DMG per Star (Optional): Sets and remembers the amount DMG increases per Star for the hero. Uses {{#var:{{PAGENAME}} DMG}} as the default value if nothing specified. Useful for where you want to override the default. This value is remembered until changes so only needs to be set once until it needs to be changed.
5: DMG per Level (Optional): Sets and remembers the amount DMG increases per Level for the hero. Uses {{#var:{{PAGENAME}} DMGinc}} as the default value if nothing specified. Useful for where you want to override the default. This value is remembered until changes so only needs to be set once until it needs to be changed.
6: Hero Type: Optional: If a value is supplied, {{Hero Set Type}} is then called with the given value. The value must be (uppercase): C, E, L, 1 or 2
7: STYLE: Optional Style
8: CLASS: Optional Class

Examples:

{{Hero Set Type|L}}
{{HDMG| 8| 1 | 0 | 1600 |80 }}   
 :2,160
{{HDMG| 12| 1 }}    -
{{HDMG| 80| 4 }}    -
{{HDMG| 80| 5 }}    -
{{Hero Set Type|L}}
{{HDMG| 80| 6=L }}   
 :-
{{Hero Set Type|2}}
{{HDMG| 80| 6=2 }}   
 :-

Hero Set Type

Overview of template: {{Hero Hero Set Type}}
Sets up key variables used in Templates (calculations)
Usage: {{Hero Set Type| 1.Hero Type }}
Parameter: Hero Type: The Hero's level number as in LEVEL. If not supplied, the last level used will be used.
Hero Type Code Example
Common C {{Hero Set Type| C }}
Elite E {{Hero Set Type| E }}
Legendary L or 0 {{Hero Set Type| L }}
Evo1 E1 or 1 {{Hero Set Type| E1 }}
Evo2 E2 or 2 {{Hero Set Type| 2 }}

HDMG

-==Important Templates==

Buildings

Here Be Monsters

Dungeons

Heroes

Home

Infoboxes

Icons

Navigation

Tabs

Troops

Pets

TextBlocks

TexturePacker

Variables and Hero Calculations

Experimental

Community content is available under CC-BY-SA unless otherwise noted.