Template:Hero: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(add flavor param)
(add customizable primary stats)
Line 32: Line 32:
{| cellpadding=0 cellspacing=0
{| cellpadding=0 cellspacing=0
| style="width:34px;"| [[File: Attack small.png|Attack|link=Primary skill]]
| style="width:34px;"| [[File: Attack small.png|Attack|link=Primary skill]]
| style="width:37px; padding-left:12px;"| {{#ifeq:{{{class}}}|Knight|2|{{#ifeq:{{{class}}}|Cleric|1|{{#ifeq:{{{class}}}|Ranger|1|{{#ifeq:{{{class}}}|Druid|0|{{#ifeq:{{{class}}}|Alchemist|1|{{#ifeq:{{{class}}}|Wizard|0|{{#ifeq:{{{class}}}|Demoniac|2|{{#ifeq:{{{class}}}|Heretic|1|{{#ifeq:{{{class}}}|Death Knight|1|{{#ifeq:{{{class}}}|Necromancer|1|{{#ifeq:{{{class}}}|Overlord|2|{{#ifeq:{{{class}}}|Warlock|0|{{#ifeq:{{{class}}}|Barbarian|4|{{#ifeq:{{{class}}}|Battle Mage|2|{{#ifeq:{{{class}}}|Beastmaster|0|{{#ifeq:{{{class}}}|Witch|0|{{#ifeq:{{{class}}}|Planeswalker|3|{{#ifeq:{{{class}}}|Elementalist|0|{{#ifeq:{{{class}}}|Captain|3|{{#ifeq:{{{class}}}|Navigator|2|{{#ifeq:{{{class}}}|Artificer|0|{{#ifeq:{{{class}}}|Mercenary|3|{{#ifeq:{{{class}}}|Sorceress (Campaign) |0|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}  
| style="width:37px; padding-left:12px;"| {{{atk|{{#switch: {{{class|}}}| Knight = 2 | Cleric = 1 | Ranger = 1 | Druid = 0 | Alchemist = 1 | Wizard = 0 | Demoniac = 2 | Heretic = 1 | Death Knight = 1 | Necromancer = 1 | Overlord = 2 | Warlock = 0 | Barbarian = 4 | Battle Mage = 2| Beastmaster = 0 | Witch = 0 | Planeswalker = 3 | Elementalist = 0 | Captain = 3 | Navigator = 2 | Artificer = 0 | Mercenary = 3 | Sorceress (Campaign) = 0 | }}}}}
| style="width:34px;"| [[File: Defense small.png|Defense|link=Primary skill]]
| style="width:34px;"| [[File: Defense small.png|Defense|link=Primary skill]]
| style="width:37px; padding-left:12px;"| {{#ifeq:{{{class}}}|Knight|2|{{#ifeq:{{{class}}}|Cleric|0|{{#ifeq:{{{class}}}|Ranger|3|{{#ifeq:{{{class}}}|Druid|2|{{#ifeq:{{{class}}}|Alchemist|1|{{#ifeq:{{{class}}}|Wizard|0|{{#ifeq:{{{class}}}|Demoniac|2|{{#ifeq:{{{class}}}|Heretic|1|{{#ifeq:{{{class}}}|Death Knight|2|{{#ifeq:{{{class}}}|Necromancer|0|{{#ifeq:{{{class}}}|Overlord|2|{{#ifeq:{{{class}}}|Warlock|0|{{#ifeq:{{{class}}}|Barbarian|0|{{#ifeq:{{{class}}}|Battle Mage|1|{{#ifeq:{{{class}}}|Beastmaster|4|{{#ifeq:{{{class}}}|Witch|1|{{#ifeq:{{{class}}}|Planeswalker|1|{{#ifeq:{{{class}}}|Elementalist|0|{{#ifeq:{{{class}}}|Captain|0|{{#ifeq:{{{class}}}|Navigator|0|{{#ifeq:{{{class}}}|Artificer|1|{{#ifeq:{{{class}}}|Mercenary|1|{{#ifeq:{{{class}}}|Sorceress (Campaign) |2|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}  
| style="width:37px; padding-left:12px;"| {{{def|{{#switch: {{{class|}}}| Knight = 2 | Cleric = 0 | Ranger = 3 | Druid = 2 | Alchemist = 1 | Wizard = 0 | Demoniac = 2 | Heretic = 1 | Death Knight = 2 | Necromancer = 0 | Overlord = 2 | Warlock = 0 | Barbarian = 0 | Battle Mage = 1| Beastmaster = 4 | Witch = 1 | Planeswalker = 1 | Elementalist = 0 | Captain = 0 | Navigator = 0 | Artificer = 1 | Mercenary = 1 | Sorceress (Campaign) = 2 | }}}}}
| style="width:34px;"| [[File: Power small.png|Spell Power|link=Primary skill]]
| style="width:34px;"| [[File: Power small.png|Spell Power|link=Primary skill]]
| style="width:37px; padding-left:12px;"| {{#ifeq:{{{class}}}|Knight|1|{{#ifeq:{{{class}}}|Cleric|2|{{#ifeq:{{{class}}}|Ranger|1|{{#ifeq:{{{class}}}|Druid|1|{{#ifeq:{{{class}}}|Alchemist|2|{{#ifeq:{{{class}}}|Wizard|2|{{#ifeq:{{{class}}}|Demoniac|1|{{#ifeq:{{{class}}}|Heretic|2|{{#ifeq:{{{class}}}|Death Knight|2|{{#ifeq:{{{class}}}|Necromancer|2|{{#ifeq:{{{class}}}|Overlord|1|{{#ifeq:{{{class}}}|Warlock|3|{{#ifeq:{{{class}}}|Barbarian|1|{{#ifeq:{{{class}}}|Battle Mage|1|{{#ifeq:{{{class}}}|Beastmaster|1|{{#ifeq:{{{class}}}|Witch|2|{{#ifeq:{{{class}}}|Planeswalker|1|{{#ifeq:{{{class}}}|Elementalist|3|{{#ifeq:{{{class}}}|Captain|2|{{#ifeq:{{{class}}}|Navigator|1|{{#ifeq:{{{class}}}|Artificer|2|{{#ifeq:{{{class}}}|Mercenary|1|{{#ifeq:{{{class}}}|Sorceress (Campaign) |1|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}  
| style="width:37px; padding-left:12px;"| {{{sp|{{#switch: {{{class|}}}| Knight = 1 | Cleric = 2 | Ranger = 1 | Druid = 1 | Alchemist = 2 | Wizard = 2 | Demoniac = 1 | Heretic = 2 | Death Knight = 2 | Necromancer = 2 | Overlord = 1 | Warlock = 3 | Barbarian = 1 | Battle Mage = 1| Beastmaster = 1 | Witch = 2 | Planeswalker = 1 | Elementalist = 3 | Captain = 2 | Navigator = 1 | Artificer = 2 | Mercenary = 1 | Sorceress (Campaign) = 1 | }}}}}
| style="width:34px;"| [[File: Knowledge small.png|Knowledge|link=Primary skill]]
| style="width:34px;"| [[File: Knowledge small.png|Knowledge|link=Primary skill]]
| style="width:37px; padding-left:12px;"| {{#ifeq:{{{class}}}|Knight|1|{{#ifeq:{{{class}}}|Cleric|2|{{#ifeq:{{{class}}}|Ranger|1|{{#ifeq:{{{class}}}|Druid|2|{{#ifeq:{{{class}}}|Alchemist|2|{{#ifeq:{{{class}}}|Wizard|3|{{#ifeq:{{{class}}}|Demoniac|1|{{#ifeq:{{{class}}}|Heretic|1|{{#ifeq:{{{class}}}|Death Knight|1|{{#ifeq:{{{class}}}|Necromancer|2|{{#ifeq:{{{class}}}|Overlord|1|{{#ifeq:{{{class}}}|Warlock|2|{{#ifeq:{{{class}}}|Barbarian|1|{{#ifeq:{{{class}}}|Battle Mage|1|{{#ifeq:{{{class}}}|Beastmaster|1|{{#ifeq:{{{class}}}|Witch|2|{{#ifeq:{{{class}}}|Planeswalker|1|{{#ifeq:{{{class}}}|Elementalist|3|{{#ifeq:{{{class}}}|Captain|1|{{#ifeq:{{{class}}}|Navigator|2|{{#ifeq:{{{class}}}|Artificer|2|{{#ifeq:{{{class}}}|Mercenary|1|{{#ifeq:{{{class}}}|Sorceress (Campaign) |2|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
| style="width:37px; padding-left:12px;"| {{{know|{{#switch: {{{class|}}}| Knight = 1 | Cleric = 2 | Ranger = 1 | Druid = 2 | Alchemist = 2 | Wizard = 3 | Demoniac = 1 | Heretic = 1 | Death Knight = 1 | Necromancer = 2 | Overlord = 1 | Warlock = 2 | Barbarian = 1 | Battle Mage = 1| Beastmaster = 1 | Witch = 2 | Planeswalker = 1 | Elementalist = 3 | Captain = 1 | Navigator = 2 | Artificer = 2 | Mercenary = 1 | Sorceress (Campaign) = 2 | }}}}}
|}
|}


Line 172: Line 172:
=== Optional components ===
=== Optional components ===
* '''flavor''': The scenario name or version of the hero that appears in a different scenario.
* '''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)


=== Other Options ===
=== Other Options ===
Line 258: Line 262:
  | specialty  = Liches
  | specialty  = Liches
  | s_text    = Increases the [[speed]] of [[Lich and Power Lich|Liches or Power Liches]] by 1 and their [[Attack]] and [[Defense]] skills by 5% for every 5 levels (rounded up).
  | s_text    = Increases the [[speed]] of [[Lich and Power Lich|Liches or Power Liches]] by 1 and their [[Attack]] and [[Defense]] skills by 5% for every 5 levels (rounded up).
| atk        = 20
| def        = 21
| sp        = 22
| know      = 23
  | skill_1    = Advanced Fire Magic
  | skill_1    = Advanced Fire Magic
  | skill_2    = Advanced Earth Magic
  | skill_2    = Advanced Earth Magic

Revision as of 18:46, 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)

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:
Advanced Wisdom  Advanced Wisdom
Starting troops:
Pikeman Pikeman 10–20 Always
Archer Archer 4–7 75%
Griffin Griffin 2–3 25%
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.

Lorem ipsum

  • text 1
  • text 2
  • text 3

Advanced 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:
Basic Necromancy  Basic Necromancy
Basic Armorer  Basic Armorer
Starting troops:
Skeleton Skeleton 78 Always
Sandworm Sandworm 9 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:
Advanced Fire Magic  Advanced Fire Magic
Advanced Earth Magic  Advanced Earth Magic
Starting troops:
Skeleton Warrior Skeleton Warrior 910 Always
Ghost Dragon Ghost Dragon 12 Always
Olgoi-Khorkhoi Olgoi-Khorkhoi 96 Always
Starting spell:
Stone Skin Stone Skin
Starting movement points: