Template:Hero: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
m (add additional secondary skills)
(add params for full # of troops)
Line 1: Line 1:
<includeonly>{| border=0 cellpadding=0 cellspacing=0 style="background:#{{green 3}}; color:darkolivegreen; border:1px solid; border-color:rgba(0,0,0,0); width:300px; margin-right: 20px; float:{{{float|left}}}"  
<includeonly>{| border=0 cellpadding=0 cellspacing=0 style="background:#{{green 3}}; color:darkolivegreen; border:1px solid; border-color:rgba(0,0,0,0); width:300px; margin-right: 20px; float:{{{float|left}}}"  
! colspan=3 style="height: 25px; background:#{{Green 1}}; color:lightgreen;" | {{{name|{{PAGENAME}}}}} the {{{classname|{{{class|}}}}}}{{#switch: {{{flavor|}}}| = | <br>({{{flavor|}}})}}
! colspan=3 style="height: 25px; background:#{{Green 1}}; color:#{{Green 2}};" | {{{name|{{PAGENAME}}}}} the {{{classname|{{{class|}}}}}}{{#switch: {{{flavor|}}}| = | <br>({{{flavor|}}})}}
|-
|-
| colspan=3 align=center bgcolor={{green 2}} | '''Basic information:'''
| colspan=3 align=center bgcolor={{green 2}} | '''Basic information:'''
Line 64: Line 64:
|-
|-
| colspan=3 |  
| colspan=3 |  
 
{| border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;"
{| border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;"  
|-
| {{Cn|{{{troop_1}}}}}
| {{Cn|{{{troop_1}}}}}
| style="padding-left:5px" | {{{nmb_1|}}}
| style="padding-left:5px" | {{{nmb_1|}}}
| style="padding-left:5px" | {{{chance_1|Always}}}
| style="padding-left:5px" | {{{chance_1|Always}}}
|-
|- {{#if: {{{troop_2|}}} |  | style="display: none;"}}
| {{{notroop_2|{{Cn|{{{troop_2}}}}}
| {{Cn|{{{troop_2}}}}}
{{!}} style="padding-left:5px; padding-right:5px" {{!}} {{{nmb_2|}}}
| style="padding-left:5px" | {{{nmb_2|}}}
{{!}} style="padding-left:5px" {{!}} {{{chance_2|88%}}}{{#if:{{{hota_same_troops|}}}|{{-}}''(Always{{-wh}})''|}}
| style="padding-left:5px" | {{{chance_2|88%}}}{{#if:{{{hota_same_troops|}}}|{{-}}''(Always{{-wh}})''|}}
{{!-}}
|- {{#if: {{{troop_3|}}} |  | style="display: none;"}}
{{!}} }}}{{Cn|{{{troop_3}}}}}
| {{Cn|{{{troop_3}}}}}
| style="padding-left:5px" | {{{nmb_3|}}}
| style="padding-left:5px" | {{{nmb_3|}}}
| style="padding-left:5px" | {{{chance_3|25%}}}{{#if:{{{hota_same_troops|}}}|{{-}}''(Always{{-wh}})''|}}
| style="padding-left:5px" | {{{chance_3|25%}}}{{#if:{{{hota_same_troops|}}}|{{-}}''(Always{{-wh}})''|}}
|- {{#if: {{{troop_4|}}} |  | style="display: none;"}}
| {{Cn|{{{troop_4}}}}}
| style="padding-left:5px" | {{{nmb_4|}}}
| style="padding-left:5px" | {{{chance_4|Always}}}
|- {{#if: {{{troop_5|}}} |  | style="display: none;"}}
| {{Cn|{{{troop_5}}}}}
| style="padding-left:5px" | {{{nmb_5|}}}
| style="padding-left:5px" | {{{chance_5|Always}}}
|- {{#if: {{{troop_6|}}} |  | style="display: none;"}}
| {{Cn|{{{troop_6}}}}}
| style="padding-left:5px" | {{{nmb_6|}}}
| style="padding-left:5px" | {{{chance_6|Always}}}
|- {{#if: {{{troop_7|}}} |  | style="display: none;"}}
| {{Cn|{{{troop_7}}}}}
| style="padding-left:5px" | {{{nmb_7|}}}
| style="padding-left:5px" | {{{chance_7|Always}}}
|}
|}
{{{no_hota_starting_troops|
{{{no_hota_starting_troops|
Line 177: Line 193:
* '''sp''': Custom primary skill stat (spell power)
* '''sp''': Custom primary skill stat (spell power)
* '''know''': Custom primary skill stat (knowledge)
* '''know''': Custom primary skill stat (knowledge)
* '''skill_#''': Replace # with the skill number 1-8
* '''troop_#''': Replace # with the troop number 1-8
** '''nmb_#''': The number of creatures in this troop
** '''chance_#''': The chance that this troop appears in the hero's army


=== Other Options ===
=== Other Options ===
Line 199: Line 219:
  | s_text    = Casts [[Frost Ring]] with increased effect, based on hero level compared to the level of the target unit.
  | s_text    = Casts [[Frost Ring]] with increased effect, based on hero level compared to the level of the target unit.
  | skill_1    = Advanced Wisdom
  | skill_1    = Advanced Wisdom
| oneskill  =
  | spell      = Frost Ring
  | spell      = Frost Ring
  | troop_1    = Pikeman
  | troop_1    = Pikeman
Line 218: Line 237:
}}
}}


== Lorem ipsum ==
'''Blah Blah Blah'''
* text 1
* text 1
* text 2
* text 2
Line 302: Line 321:
  | skill_5    = Advanced Offense
  | skill_5    = Advanced Offense
  | skill_6    = Advanced Armorer
  | skill_6    = Advanced Armorer
  | troop_1    = Pikeman
  | troop_1    = Halberdier
  | troop_3    = Griffin
| troop_2    = Marksman
  | nmb_1      = 10–20
  | troop_3    = Royal Griffin
  | nmb_3      = 2–3  
| troop_4    = Crusader
  | notroop_2 =
| troop_5    = Zealot
  | nmb_1      = 37
| nmb_2      = 22
  | nmb_3      = 8
| nmb_4      = 6
  | nmb_5      = 3
  | chance_2  = Always
  | chance_3  = Always
  | warmachine = Ballista
  | warmachine = Ballista
  | nospell    =  
  | nospell    =  
  | s_hota_mp  =
  | s_hota_mp  =
  | s_hota2_mp = 1560
  | s_hota2_mp = 1560
| hota_same_troops = 1
  | no_hota_starting_troops =
  | no_hota_starting_troops =
}}
}}


[[Category: Hero templates]]</noinclude>
[[Category: Hero templates]]</noinclude>

Revision as of 19:37, 25 April 2024


How to use

The code is copied at the beginning of the hero's article, and fill in the missing information. It should be noticed, that the factors below are case sensitive meaning, that "Town" is not the same as "town".

{{Hero
 | town       = 
 | class      = 
 | gender     = 
 | race       = 
 | specialty  = 
 | s_text     = 
 | skill_1    = 
 | skill_2    = 
 | spell      =
 | warmachine =
 | min_mp     =
 | max_mp     =
 | hota_mp    =
 | s_mp       =
}}

Hide components

The following parameters defined without any value hide certain elements of the template:

  • nospell: No spell
  • nowar: No War Machine
  • notext: No Intro text to the right (useful for showing different flavors of a hero).

HotA Movement Points

For all heroes amount of starting movement points depends on their starting army: if they got a slow creature in starting army - they start with less movement points. In HotA Horn of the Abyss all heroes are guaranteed to start with a certain set of creatures, so their starting movement points are constant. For all heroes that were introduced in HotA Horn of the Abyss parameter s_mp must be replaced with s_hota_mp with defined value.

 | s_hota_mp = 

Optional components

  • flavor: The scenario name or version of the hero that appears in a different scenario.
  • atk: Custom primary skill stat (attack)
  • def: Custom primary skill stat (defense)
  • sp: Custom primary skill stat (spell power)
  • know: Custom primary skill stat (knowledge)
  • skill_#: Replace # with the skill number 1-8
  • troop_#: Replace # with the troop number 1-8
    • nmb_#: The number of creatures in this troop
    • chance_#: The chance that this troop appears in the hero's army

Other Options

If for some reason certain parameters do not appear automatically, you can add the following rows:

 | picture       = 
 | specialty_pic = 
 | name          = 

Example

Normal Case

Adelaide the Cleric
Basic information:
Adelaide Class: Cleric
Gender: Female
Race: Human
Caught at sea during a storm, Adelaide was shipwrecked on the shores of Vori, home of the Snow Elves. She trained with them for some twenty years, and upon her return to Erathia discovered that no time had passed in her absence.
Specialty: Frost Ring
Specialty Frost Ring Casts Frost Ring with increased effect, based on hero level compared to the level of the target unit.
Starting primary skills:
Attack 1 Defense 0 Spell Power 2 Knowledge 2
Starting secondary skill:
Wisdom Advanced Wisdom
[[File:{{{skill_2}}} .png|48px link=]] {{{skill_2}}} [[]]
[[File:{{{skill_3}}} .png|48px link=]] {{{skill_3}}} [[]]
[[File:{{{skill_4}}} .png|48px link=]] {{{skill_4}}} [[]]
[[File:{{{skill_5}}} .png|48px link=]] {{{skill_5}}} [[]]
[[File:{{{skill_6}}} .png|48px link=]] {{{skill_6}}} [[]]
[[File:{{{skill_7}}} .png|48px link=]] {{{skill_7}}} [[]]
[[File:{{{skill_8}}} .png|48px link=]] {{{skill_8}}} [[]]
Starting troops:
Pikeman Pikeman 10–20 Always
Archer Archer 4–7 75%
Griffin Griffin 2–3 25%
[[File: Creature portrait {{{troop_4}}} small.gif|{{{troop_4}}}|link={{{troop_4}}}]] [[{{{troop_4}}}|{{{troop_4}}}]] Always
[[File: Creature portrait {{{troop_5}}} small.gif|{{{troop_5}}}|link={{{troop_5}}}]] [[{{{troop_5}}}|{{{troop_5}}}]] Always
[[File: Creature portrait {{{troop_6}}} small.gif|{{{troop_6}}}|link={{{troop_6}}}]] [[{{{troop_6}}}|{{{troop_6}}}]] Always
[[File: Creature portrait {{{troop_7}}} small.gif|{{{troop_7}}}|link={{{troop_7}}}]] [[{{{troop_7}}}|{{{troop_7}}}]] Always
Starting troops Horn of the Abyss:
Pikeman Pikeman 300–999 Always
Archer Archer 44–777 Always
Griffin Griffin 20–30 Always
Starting spell:
Frost Ring Frost Ring
Starting movement points:
Minimum Maximum HotA Horn of the Abyss
1560 1560 1560

Adelaide the Cleric is a Castle hero. Adelaide starts with a spell book and the spell Frost Ring.

Blah Blah Blah

  • text 1
  • text 2
  • text 3

Flavor Case

Boyd the Death Knight
(Dead or Alive)
Basic information:
Boyd Class: Death Knight
Gender: Male
Race: Human
All scary stories feature a horseman who had been hanged, stabbed or even beheaded and now rides by night, intending to exact revenge on his killers. Nonsense, a necromancer would say, a dead man risen by himself cannot have memory or will. It may well be so, but then Boyd has scores to settle not only with the traitor who slayed him, but also with the one who denied him rest in peace.
Specialty: Skeletons
Specialty Skeletons Increases the speed of Skeletons or Skeleton Warriors by 1 and their Attack and Defense skills for each level attained after 1st level.
Starting primary skills:
Attack 1 Defense 2 Spell Power 2 Knowledge 1
Starting secondary skills:
Necromancy Basic Necromancy
Armorer Basic Armorer
[[File:{{{skill_3}}} .png|48px link=]] {{{skill_3}}} [[]]
[[File:{{{skill_4}}} .png|48px link=]] {{{skill_4}}} [[]]
[[File:{{{skill_5}}} .png|48px link=]] {{{skill_5}}} [[]]
[[File:{{{skill_6}}} .png|48px link=]] {{{skill_6}}} [[]]
[[File:{{{skill_7}}} .png|48px link=]] {{{skill_7}}} [[]]
[[File:{{{skill_8}}} .png|48px link=]] {{{skill_8}}} [[]]
Starting troops:
Skeleton Skeleton 78 Always
[[File: Creature portrait {{{troop_2}}} small.gif|{{{troop_2}}}|link={{{troop_2}}}]] [[{{{troop_2}}}|{{{troop_2}}}]] 9 Always
Sandworm Sandworm 9 Always
[[File: Creature portrait {{{troop_4}}} small.gif|{{{troop_4}}}|link={{{troop_4}}}]] [[{{{troop_4}}}|{{{troop_4}}}]] Always
[[File: Creature portrait {{{troop_5}}} small.gif|{{{troop_5}}}|link={{{troop_5}}}]] [[{{{troop_5}}}|{{{troop_5}}}]] Always
[[File: Creature portrait {{{troop_6}}} small.gif|{{{troop_6}}}|link={{{troop_6}}}]] [[{{{troop_6}}}|{{{troop_6}}}]] Always
[[File: Creature portrait {{{troop_7}}} small.gif|{{{troop_7}}}|link={{{troop_7}}}]] [[{{{troop_7}}}|{{{troop_7}}}]] Always
Starting spell:
Shield Shield
Starting movement points:
Boyd the Death Knight
(Tomb Raiders)
Basic information:
Boyd Class: Death Knight
Gender: Male
Race: Human
 
Specialty: Liches
Specialty Liches Increases the speed of Liches or Power Liches by 1 and their Attack and Defense skills by 5% for every 5 levels (rounded up).
Starting primary skills:
Attack 20 Defense 21 Spell Power 22 Knowledge 23
Starting secondary skills:
Fire Magic Advanced Fire Magic
Earth Magic Advanced Earth Magic
[[File:{{{skill_3}}} .png|48px link=]] {{{skill_3}}} [[]]
[[File:{{{skill_4}}} .png|48px link=]] {{{skill_4}}} [[]]
[[File:{{{skill_5}}} .png|48px link=]] {{{skill_5}}} [[]]
[[File:{{{skill_6}}} .png|48px link=]] {{{skill_6}}} [[]]
[[File:{{{skill_7}}} .png|48px link=]] {{{skill_7}}} [[]]
[[File:{{{skill_8}}} .png|48px link=]] {{{skill_8}}} [[]]
Starting troops:
Skeleton Warrior Skeleton Warrior 910 Always
Ghost Dragon Ghost Dragon 12 Always
Olgoi-Khorkhoi Olgoi-Khorkhoi 96 Always
[[File: Creature portrait {{{troop_4}}} small.gif|{{{troop_4}}}|link={{{troop_4}}}]] [[{{{troop_4}}}|{{{troop_4}}}]] Always
[[File: Creature portrait {{{troop_5}}} small.gif|{{{troop_5}}}|link={{{troop_5}}}]] [[{{{troop_5}}}|{{{troop_5}}}]] Always
[[File: Creature portrait {{{troop_6}}} small.gif|{{{troop_6}}}|link={{{troop_6}}}]] [[{{{troop_6}}}|{{{troop_6}}}]] Always
[[File: Creature portrait {{{troop_7}}} small.gif|{{{troop_7}}}|link={{{troop_7}}}]] [[{{{troop_7}}}|{{{troop_7}}}]] Always
Starting spell:
Stone Skin Stone Skin
Starting movement points:

Advanced Case

Sir Michael the Knight
Basic information:
Sir Michael Class: Knight
Gender: Male
Race: Human
Christian was always more of a frontiersman than a Knight, having set foot in nearly every part of Enroth before finally settling into military service in Erathia. Though a wanderer and a bit of a dreamer, his battlefield tactics are feared throughout the world.
Specialty: Ballista
Specialty Ballista Increases the Attack and Defense skills of any Ballista by 5% for every 5 levels (rounded up).
Starting primary skills:
Attack 2 Defense 2 Spell Power 1 Knowledge 1
Starting secondary skills:
Leadership Expert Leadership
Luck Advanced Luck
Ballistics Advanced Ballistics
Artillery Expert Artillery
Offense Advanced Offense
Armorer Advanced Armorer
[[File:{{{skill_7}}} .png|48px link=]] {{{skill_7}}} [[]]
[[File:{{{skill_8}}} .png|48px link=]] {{{skill_8}}} [[]]
Starting troops:
Halberdier Halberdier 37 Always
Marksman Marksman 22 Always
Royal Griffin Royal Griffin 8 Always
Crusader Crusader 6 Always
Zealot Zealot 3 Always
[[File: Creature portrait {{{troop_6}}} small.gif|{{{troop_6}}}|link={{{troop_6}}}]] [[{{{troop_6}}}|{{{troop_6}}}]] Always
[[File: Creature portrait {{{troop_7}}} small.gif|{{{troop_7}}}|link={{{troop_7}}}]] [[{{{troop_7}}}|{{{troop_7}}}]] Always
Starts with:
Ballista
Ballista
88%
(Always Horn of the Abyss)
Starting movement points:
1560

Sir Michael the Knight is a Castle hero.