Template:UnitAbility: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
N (talk | contribs)
Added rank support for active and passive abilities
N (talk | contribs)
No edit summary
Line 83: Line 83:
             T.description = description,
             T.description = description,
             CONCAT("{{{rank|}}}") = rank,
             CONCAT("{{{rank|}}}") = rank,
             CONCAT("{{{rank_explanation}}}") = rank_explanation
             CONCAT("{{{rank_explanation|This ability has multiple versions.}}}") = rank_explanation
         | format = template
         | format = template
         | template = UnitAbility/base
         | template = UnitAbility/base

Revision as of 13:26, 31 July 2026

Renders one generic/passive/active ability for a unit.

1. Creature type:

Input: {{UnitAbility | lang=en | id=dragon}}

Output:

Creature Type
Dragon
A powerful ancient creature, often intelligent and imbued with wondrous magic.
0 to 5Morale range
0 to 3Luck range
YesFallen Dragons can be raised as Undead after battle.


2. Attack type:

Input: {{UnitAbility | lang=en | id=melee_attack}}

Output:

Attack Type
Melee Attack
Can only attack adjacent enemies. Provokes counterattacks.


3. Movement type:

Input: {{UnitAbility | lang=en | id=fly}}

Output:

Movement Type
Flying
Movement ignores obstacles and traps.


4. Passive ability:

Input: {{UnitAbility | lang=en | id=black_dragon_upg_alt_passive_1}}

Output:

Passive Ability
Dominating Presence
All adjacent enemies always deal minimum Damage.


5. Alternative attack:

Input: {{UnitAbility | lang=en | id=black_dragon_upg_alt_1}}

Output:

Alternative Attack
Fighting Style: Sulfurous Assault
Performs a Cone Strike, dealing –50% Damage to each target.
Does not spend Focus Charges.


6. Active ability:

Input: {{UnitAbility | lang=en | id=black_dragon_2}}

Output:

Active Ability
Inner Flame
Positive effect
Cost: 3 Focus ChargesCooldown: 3 roundsTier III
Until the end of the next round, deals [ 30 × amount of units ] Magic Damage when attacked in Melee.
Does not end the turn.


7. Japanese:

Input: {{UnitAbility | lang=ja | id=dragon}}

Output:

Creature Type💬
ドラゴン
強大な力を持つ古代の生物。高い知性を持ち、驚くべき魔力を宿している。
0~5士気
0~3幸運
Yes💬倒れたドラゴンは、戦闘後にアンデッドとして蘇生できる。