FANDOM


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

{{Hero HP| 1.Hero Level | 2.Hero Star Level | 3.HP Base | 4.HP per Star | 5.HP per 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: HP Base (Optional): Sets and remembers the Base HP for the hero. Uses {{#var:{{PAGENAME}} HPbase}} 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: HP per Star (Optional): Sets and remembers the amount HP increases per Star for the hero. Uses {{#var:{{PAGENAME}} HP}} 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: HP per Level (Optional): Sets and remembers the amount HP increases per Level for the hero. Uses {{#var:{{PAGENAME}} HPinc}} 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}}
{{Hero HP| 8| 1 | 0 | 1600 |80 }}   
2,160
{{Hero HP| 12| 1 }}    -
{{Hero HP| 80| 4 }}    -
{{Hero HP| 80| 5 }}    -
{{Hero HP| 80| 6=L }}    -
{{Hero HP| 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 }}

HHP

-==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.