Difference between revisions of "Template:HeroBasic"
Jump to navigation
Jump to search
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
<noinclude> | <noinclude> | ||
<pre> | <pre> | ||
− | |||
Usage: | Usage: | ||
Line 27: | Line 22: | ||
|Armor=<Start Armor> | |Armor=<Start Armor> | ||
|HP=<StartHP> | |HP=<StartHP> | ||
+ | |Mana=<StartMana> | ||
|Speed=<Movement Speed> | |Speed=<Movement Speed> | ||
}} | }} | ||
Line 34: | Line 30: | ||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
+ | {{{Name}}} the {{{Class}}} | ||
+ | |||
+ | [[File:{{{Icon}}}]] | ||
+ | |||
+ | {{{Description}}} | ||
+ | |||
+ | Attack Type: {{{AttackType}}} | ||
+ | |||
+ | Attack Range: {{#ifeq:{{{AttackType}}}|Melee|128|{{{AttackRange}}}}} | ||
+ | |||
+ | |||
{| | {| | ||
|Attribute | |Attribute | ||
Line 42: | Line 49: | ||
|Attack | |Attack | ||
|{{{DamageMin}}} - {{{DamageMax}}} | |{{{DamageMin}}} - {{{DamageMax}}} | ||
+ | |||
|{{#switch: {{{PrimaryAttribute}}} | |{{#switch: {{{PrimaryAttribute}}} | ||
| STR = {{#expr:{{HeroAttribute|attack|{{#expr:{{{STRG}}}*14}}}}+{{{DamageMin}}}}} - {{#expr:{{HeroAttribute|attack|{{#expr:{{{STRG}}}*14}}}}+{{{DamageMax}}}}} | | STR = {{#expr:{{HeroAttribute|attack|{{#expr:{{{STRG}}}*14}}}}+{{{DamageMin}}}}} - {{#expr:{{HeroAttribute|attack|{{#expr:{{{STRG}}}*14}}}}+{{{DamageMax}}}}} | ||
Line 47: | Line 55: | ||
| INT = {{#expr:{{HeroAttribute|attack|{{#expr:{{{INTG}}}*14}}}}+{{{DamageMin}}}}} - {{#expr:{{HeroAttribute|attack|{{#expr:{{{INTG}}}*14}}}}+{{{DamageMax}}}}} | | INT = {{#expr:{{HeroAttribute|attack|{{#expr:{{{INTG}}}*14}}}}+{{{DamageMin}}}}} - {{#expr:{{HeroAttribute|attack|{{#expr:{{{INTG}}}*14}}}}+{{{DamageMax}}}}} | ||
| default = ERROR}} | | default = ERROR}} | ||
+ | |||
|{{#switch: {{{PrimaryAttribute}}} | |{{#switch: {{{PrimaryAttribute}}} | ||
− | | STR = {{#expr:{{HeroAttribute|attack|{{#expr:{{{STRG}}}* | + | | STR = {{#expr:{{HeroAttribute|attack|{{#expr:{{{STRG}}}*24}}}}+{{{DamageMin}}}}} - {{#expr:{{HeroAttribute|attack|{{#expr:{{{STRG}}}*24}}}}+{{{DamageMax}}}}} |
− | | AGI = {{#expr:{{HeroAttribute|attack|{{#expr:{{{AGIG}}}* | + | | AGI = {{#expr:{{HeroAttribute|attack|{{#expr:{{{AGIG}}}*24}}}}+{{{DamageMin}}}}} - {{#expr:{{HeroAttribute|attack|{{#expr:{{{AGIG}}}*24}}}}+{{{DamageMax}}}}} |
− | | INT = {{#expr:{{HeroAttribute|attack|{{#expr:{{{INTG}}}* | + | | INT = {{#expr:{{HeroAttribute|attack|{{#expr:{{{INTG}}}*24}}}}+{{{DamageMin}}}}} - {{#expr:{{HeroAttribute|attack|{{#expr:{{{INTG}}}*24}}}}+{{{DamageMax}}}}} |
| default = ERROR}} | | 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> | </includeonly> |
Latest revision as of 15: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> }}