Difference between revisions of "Template:HeroBasic"

From Eurobattle.net WiKi
Jump to navigation Jump to search
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if: {{{1}}} | Parameter 1 is not defined, or is defined and non-null/non-empty. | Parameter 1 is null. It contains only empty string(s) or breaking space(s) etc.}}
 
 
 
 
 
<noinclude>
 
<noinclude>
 
<pre>
 
<pre>
[[File:{{{1}}}.png|alt={{{1}}}|link={{{1}}}]]
 
  
 
Usage:
 
Usage:
Line 14: Line 9:
 
  |Description=<Hero Description>
 
  |Description=<Hero Description>
 
  |PrimaryAttribute=<STR/AGI/INT>
 
  |PrimaryAttribute=<STR/AGI/INT>
 +
|PrimaryAttributeValue=<Value>
 
  |STR=<Strength>
 
  |STR=<Strength>
 
  |STRG=<Strength Growth>
 
  |STRG=<Strength Growth>
Line 26: Line 22:
 
  |Armor=<Start Armor>
 
  |Armor=<Start Armor>
 
  |HP=<StartHP>
 
  |HP=<StartHP>
 +
|Mana=<StartMana>
 
  |Speed=<Movement Speed>
 
  |Speed=<Movement Speed>
 
}}
 
}}
Line 32: Line 29:
  
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
</noinclude><includeonly>{{HeroAttribute|hp|20}}</includeonly>
+
</noinclude><includeonly>
 +
{{{Name}}} the {{{Class}}}
 +
 
 +
[[File:{{{Icon}}}]]
 +
 
 +
{{{Description}}}
 +
 
 +
Attack Type: {{{AttackType}}}
 +
 
 +
Attack Range: {{#ifeq:{{{AttackType}}}|Melee|128|{{{AttackRange}}}}}
 +
 
 +
 
 +
{|
 +
|Attribute
 +
|Level 1
 +
|Level 15
 +
|Level 25
 +
|-
 +
|Attack
 +
|{{{DamageMin}}} - {{{DamageMax}}}
 +
 
 +
|{{#switch: {{{PrimaryAttribute}}}
 +
| STR = {{#expr:{{HeroAttribute|attack|{{#expr:{{{STRG}}}*14}}}}+{{{DamageMin}}}}} - {{#expr:{{HeroAttribute|attack|{{#expr:{{{STRG}}}*14}}}}+{{{DamageMax}}}}}
 +
| AGI = {{#expr:{{HeroAttribute|attack|{{#expr:{{{AGIG}}}*14}}}}+{{{DamageMin}}}}} - {{#expr:{{HeroAttribute|attack|{{#expr:{{{AGIG}}}*14}}}}+{{{DamageMax}}}}}
 +
| INT = {{#expr:{{HeroAttribute|attack|{{#expr:{{{INTG}}}*14}}}}+{{{DamageMin}}}}} - {{#expr:{{HeroAttribute|attack|{{#expr:{{{INTG}}}*14}}}}+{{{DamageMax}}}}}
 +
| default = ERROR}}
 +
 
 +
|{{#switch: {{{PrimaryAttribute}}}
 +
| STR = {{#expr:{{HeroAttribute|attack|{{#expr:{{{STRG}}}*24}}}}+{{{DamageMin}}}}} - {{#expr:{{HeroAttribute|attack|{{#expr:{{{STRG}}}*24}}}}+{{{DamageMax}}}}}
 +
| AGI = {{#expr:{{HeroAttribute|attack|{{#expr:{{{AGIG}}}*24}}}}+{{{DamageMin}}}}} - {{#expr:{{HeroAttribute|attack|{{#expr:{{{AGIG}}}*24}}}}+{{{DamageMax}}}}}
 +
| INT = {{#expr:{{HeroAttribute|attack|{{#expr:{{{INTG}}}*24}}}}+{{{DamageMin}}}}} - {{#expr:{{HeroAttribute|attack|{{#expr:{{{INTG}}}*24}}}}+{{{DamageMax}}}}}
 +
| default = ERROR}}
 +
 
 +
|-
 +
|Armor
 +
|{{{Armor}}}
 +
|{{#expr:{{HeroAttribute|armor|{{#expr:{{{AGIG}}}*14}}}}+{{HeroAttribute|armor|{{{AGI}}}}} round 0}}
 +
|{{#expr:{{HeroAttribute|armor|{{#expr:{{{AGIG}}}*24}}}}+{{HeroAttribute|armor|{{{AGI}}}}} round 0}}
 +
|-
 +
|Strength
 +
|{{{STR}}}
 +
|{{#expr:{{{STR}}}+{{#expr:{{{STRG}}}*14}} round 0}}
 +
|{{#expr:{{{STR}}}+{{#expr:{{{STRG}}}*24}} round 0}}
 +
|-
 +
|Agility
 +
|{{{AGI}}}
 +
|{{#expr:{{{AGI}}}+{{#expr:{{{AGIG}}}*14}} round 0}}
 +
|{{#expr:{{{AGI}}}+{{#expr:{{{AGIG}}}*24}} round 0}}
 +
|-
 +
|Intelligence
 +
|{{{STR}}}
 +
|{{#expr:{{{INT}}}+{{#expr:{{{INTG}}}*14}} round 0}}
 +
|{{#expr:{{{INT}}}+{{#expr:{{{INTG}}}*24}} round 0}}
 +
|-
 +
|HP
 +
|{{{HP}}}
 +
|{{#expr:{{HeroAttribute|hp|{{#expr:{{{STRG}}}*14}}}}+{{{HP}}} round 0}}
 +
|{{#expr:{{HeroAttribute|hp|{{#expr:{{{STRG}}}*24}}}}+{{{HP}}} round 0}}
 +
|-
 +
|Mana
 +
|{{{Mana}}}
 +
|{{#expr:{{HeroAttribute|mana|{{#expr:{{{INTG}}}*14}}}}+{{{Mana}}} round 0}}
 +
|{{#expr:{{HeroAttribute|mana|{{#expr:{{{INTG}}}*24}}}}+{{{Mana}}} round 0}}
 +
|}
 +
 
 +
 
 +
</includeonly>

Latest revision as of 16:56, 22 April 2018


Usage:
{{HeroBasic
 |Name=<Hero Name>
 |Class=<Hero Class>
 |Icon=<Icon of the hero>
 |Description=<Hero Description>
 |PrimaryAttribute=<STR/AGI/INT>
 |PrimaryAttributeValue=<Value>
 |STR=<Strength>
 |STRG=<Strength Growth>
 |AGI=<Agility>
 |AGIG=<Agility Growth>
 |INT=<Intelligence>
 |INTG=<Intelligence Growth>
 |AttackType=<Melee/Ranged>
 |AttackRange=<Ignored if melee>
 |DamageMin=<Start Min Damage>
 |DamageMax=<Start Max Damage>
 |Armor=<Start Armor>
 |HP=<StartHP>
 |Mana=<StartMana>
 |Speed=<Movement Speed>
}}