Template:Hero: Difference between revisions
(add sk1only/sk2only for content switching) |
No edit summary |
||
Line 52: | Line 52: | ||
|- {{#if: {{{skill_2|}}} | class='{{sourceToggle||{{{sk2only}}}}}' | style="display: none;"}} | |- {{#if: {{{skill_2|}}} | class='{{sourceToggle||{{{sk2only}}}}}' | style="display: none;"}} | ||
| colspan=3 | {{Ss3|{{#explode:{{{skill_2}}}| |1|2}}|{{#explode:{{{skill_2}}}| |0}}}}{{{skill_2+|}}} | | colspan=3 | {{Ss3|{{#explode:{{{skill_2}}}| |1|2}}|{{#explode:{{{skill_2}}}| |0}}}}{{{skill_2+|}}} | ||
|- {{#if: {{{skill_3|}}} | | |- {{#if: {{{skill_3|}}} | class='{{sourceToggle||{{{sk3only}}}}}' | style="display: none;"}} | ||
| colspan=3 | {{Ss3|{{#explode:{{{skill_3}}}| |1|2}}|{{#explode:{{{skill_3}}}| |0}}}}{{{skill_3+|}}} | | colspan=3 | {{Ss3|{{#explode:{{{skill_3}}}| |1|2}}|{{#explode:{{{skill_3}}}| |0}}}}{{{skill_3+|}}} | ||
|- {{#if: {{{skill_4|}}} | | |- {{#if: {{{skill_4|}}} | class='{{sourceToggle||{{{sk4only}}}}}' | style="display: none;"}} | ||
| colspan=3 | {{Ss3|{{#explode:{{{skill_4}}}| |1|2}}|{{#explode:{{{skill_4}}}| |0}}}} | | colspan=3 | {{Ss3|{{#explode:{{{skill_4}}}| |1|2}}|{{#explode:{{{skill_4}}}| |0}}}} | ||
|- {{#if: {{{skill_5|}}} | | |- {{#if: {{{skill_5|}}} | class='{{sourceToggle||{{{sk5only}}}}}' | style="display: none;"}} | ||
| colspan=3 | {{Ss3|{{#explode:{{{skill_5}}}| |1|2}}|{{#explode:{{{skill_5}}}| |0}}}} | | colspan=3 | {{Ss3|{{#explode:{{{skill_5}}}| |1|2}}|{{#explode:{{{skill_5}}}| |0}}}} | ||
|- {{#if: {{{skill_6|}}} | | |- {{#if: {{{skill_6|}}} | class='{{sourceToggle||{{{sk6only}}}}}' | style="display: none;"}} | ||
| colspan=3 | {{Ss3|{{#explode:{{{skill_6}}}| |1|2}}|{{#explode:{{{skill_6}}}| |0}}}} | | colspan=3 | {{Ss3|{{#explode:{{{skill_6}}}| |1|2}}|{{#explode:{{{skill_6}}}| |0}}}} | ||
|- {{#if: {{{skill_7|}}} | | |- {{#if: {{{skill_7|}}} | class='{{sourceToggle||{{{sk7only}}}}}' | style="display: none;"}} | ||
| colspan=3 | {{Ss3|{{#explode:{{{skill_7}}}| |1|2}}|{{#explode:{{{skill_7}}}| |0}}}} | | colspan=3 | {{Ss3|{{#explode:{{{skill_7}}}| |1|2}}|{{#explode:{{{skill_7}}}| |0}}}} | ||
|- {{#if: {{{skill_8|}}} | | |- {{#if: {{{skill_8|}}} | class='{{sourceToggle||{{{sk8only}}}}}' | style="display: none;"}} | ||
| colspan=3 | {{Ss3|{{#explode:{{{skill_8}}}| |1|2}}|{{#explode:{{{skill_8}}}| |0}}}} | | colspan=3 | {{Ss3|{{#explode:{{{skill_8}}}| |1|2}}|{{#explode:{{{skill_8}}}| |0}}}} | ||
Line 204: | Line 204: | ||
* '''skill_#''': Replace # with the skill number 1-8 | * '''skill_#''': Replace # with the skill number 1-8 | ||
** '''skill_#+''': Extra test to add to the skill row (e.g. for expansion symbols) | ** '''skill_#+''': Extra test to add to the skill row (e.g. for expansion symbols) | ||
** ''' | ** '''sk#only''': Set to the expansion (e.g. sod/hota) that you want to ONLY show the row for | ||
* '''troop_#''': Replace # with the troop number 1-8 | * '''troop_#''': Replace # with the troop number 1-8 | ||
** '''troop_#_img''': Display an alternate (e.g. HotA) image for this troop. | ** '''troop_#_img''': Display an alternate (e.g. HotA) image for this troop. |
Revision as of 14:27, 5 December 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).
- no_hota_starting_troops: HotA troops are the same as normal troops.
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 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 parameter s_mp must be replaced with s_hota_mp with defined value.
| s_hota_mp = |
Optional components
- classname: An override to the displayed class name
- hpicture: set to "_(HotA)" if there is a hota version of the hero picture
- hspec: set to "_(HotA)" if there is a hota version of the specialty image
- 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
- skill_#+: Extra test to add to the skill row (e.g. for expansion symbols)
- sk#only: Set to the expansion (e.g. sod/hota) that you want to ONLY show the row for
- troop_#: Replace # with the troop number 1-8
- troop_#_img: Display an alternate (e.g. HotA) image for this troop.
- nmb_#: The number of creatures in this troop
- chance_#: The chance that this troop appears in the hero's army
- biography: If left out, removes the blank space created by an empty biography.
- marginR: Used to set a different right margin (useful for showing different flavors of a hero).
- level: Starting hero level
Other Options
If for some reason certain parameters do not appear automatically, you can add the following rows:
| picture = | specialty_pic = | name = |
Examples
Normal Case
Adelaide the Cleric | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Basic information: | |||||||||||
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 | |||||||||||
| |||||||||||
Starting primary skills: | |||||||||||
| |||||||||||
Starting secondary skill: | |||||||||||
Advanced Wisdom | |||||||||||
Starting troops: | |||||||||||
| |||||||||||
Starting troops : | |||||||||||
| |||||||||||
Starting spell: | |||||||||||
Frost Ring | |||||||||||
Starting movement points: | |||||||||||
|
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: | ||||||||||
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 | ||||||||||
| ||||||||||
Starting primary skills: | ||||||||||
| ||||||||||
Starting secondary skills: | ||||||||||
Basic Necromancy | ||||||||||
Basic Armorer | ||||||||||
Starting troops: | ||||||||||
| ||||||||||
Starting spell: | ||||||||||
Shield | ||||||||||
Starting movement points: | ||||||||||
|
Boyd the Death Knight (Tomb Raiders) | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Basic information: | |||||||||||
Class: | Death Knight | ||||||||||
Gender: | Male | ||||||||||
Race: | Human | ||||||||||
Specialty: Liches | |||||||||||
| |||||||||||
Starting primary skills: | |||||||||||
| |||||||||||
Starting secondary skills: | |||||||||||
Advanced Fire Magic | |||||||||||
Advanced Earth Magic | |||||||||||
Starting troops: | |||||||||||
| |||||||||||
Starting spell: | |||||||||||
Stone Skin | |||||||||||
Starting movement points: | |||||||||||
|
Advanced Case
Sir Michael the Knight | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Basic information: | |||||||||||||||||
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 | |||||||||||||||||
| |||||||||||||||||
Starting Level: | |||||||||||||||||
Level 11 | |||||||||||||||||
Starting primary skills: | |||||||||||||||||
| |||||||||||||||||
Starting secondary skills: | |||||||||||||||||
Expert Leadership | |||||||||||||||||
Advanced Luck | |||||||||||||||||
Advanced Ballistics | |||||||||||||||||
Expert Artillery | |||||||||||||||||
Advanced Offense | |||||||||||||||||
Advanced Armorer | |||||||||||||||||
Starting troops: | |||||||||||||||||
| |||||||||||||||||
Starts with: | |||||||||||||||||
(Always ) | |||||||||||||||||
Starting movement points: | |||||||||||||||||
|
Sir Michael the Knight is a Castle hero.
Gem the Sorceress | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Basic information: | ||||||||||
Class: | Sorceress | |||||||||
Gender: | Female | |||||||||
Race: | Human | |||||||||
After her Deyjan raiders campaign, Gem agrees to help a wizard's anti-necromancy research by getting an Amulet of the Undertaker. | ||||||||||
Specialty: First Aid | ||||||||||
| ||||||||||
Starting primary skills: | ||||||||||
| ||||||||||
Starting secondary skills: | ||||||||||
Basic First Aid | ||||||||||
Basic Wisdom | ||||||||||
Starting troops: | ||||||||||
| ||||||||||
Starting spell: | ||||||||||
Lightning Bolt | ||||||||||
Starts with: | ||||||||||
(Always ) | ||||||||||
Starting movement points: | ||||||||||
|
Content Switch image/specialty/skills
Sir Mullich the Knight | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Basic information: | |||||||||||
Class: | Knight | ||||||||||
Gender: | Male | ||||||||||
Race: | Human | ||||||||||
Generally stoic, Sir Mullich is prone to spasmodic fits of uncoordinated excitement believed to intimidate his troops into working faster. | |||||||||||
Specialty: Speed | |||||||||||
| |||||||||||
Starting primary skills: | |||||||||||
| |||||||||||
Starting secondary skill: | |||||||||||
Advanced Leadership | |||||||||||
Starting troops: | |||||||||||
| |||||||||||
Starting movement points: | |||||||||||
|
Sir Mullich the Knight is a Castle hero.
Mutare the Overlord | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Basic information: | |||||||||||
Class: | Overlord | ||||||||||
Gender: | Female | ||||||||||
Race: | Human | ||||||||||
With her uncanny talent for commanding dragons on the field of combat, many have noticed Mutare's quick rise among the current overlords of Nighon. | |||||||||||
Specialty: Dragons | |||||||||||
| |||||||||||
Starting primary skills: | |||||||||||
| |||||||||||
Starting secondary skills: | |||||||||||
Basic Tactics | |||||||||||
Basic Estates | |||||||||||
Starting troops: | |||||||||||
| |||||||||||
Starting troops : | |||||||||||
| |||||||||||
Starting spell: | |||||||||||
Magic Arrow | |||||||||||
Starting movement points: | |||||||||||
|
Mutare the Overlord is a Dungeon hero. Mutare starts with a spell book and the spell Magic Arrow.
Clancy the Ranger | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Basic information: | |||||||||||
Class: | Ranger | ||||||||||
Gender: | Male | ||||||||||
Race: | Dwarf | ||||||||||
It was by pure accident that Clancy discovered he could communicate with Unicorns, but this unique ability has served him well as he worked his way through the ranks of AvLee's Military Elite. | |||||||||||
Specialty: Unicorns | |||||||||||
| |||||||||||
Starting primary skills: | |||||||||||
| |||||||||||
Starting secondary skills: | |||||||||||
Basic Resistance | |||||||||||
Basic Interference | |||||||||||
Basic Pathfinding | |||||||||||
Starting troops: | |||||||||||
| |||||||||||
Starting troops : | |||||||||||
| |||||||||||
Starting movement points: | |||||||||||
|