Difference between revisions of "Template:HeroAttribute"

From Eurobattle.net WiKi
Jump to navigation Jump to search
Line 16: Line 16:
 
</noinclude><includeonly>{{#switch: {{{1}}}  
 
</noinclude><includeonly>{{#switch: {{{1}}}  
 
| hp = {{{2}}}*19  
 
| hp = {{{2}}}*19  
| mana = 200
+
| mana = {{{2}}}*13
| default }}
+
| attack = {{{2}}}*1
 +
| armor = {{{2}}}/7
 +
| default = ERROR}}
 
</includeonly>
 
</includeonly>

Revision as of 16:06, 22 April 2018

Parameter 1 is not defined, or is defined and non-null/non-empty.


Returns bonus property based on bonus attribute

Example: 
{{HeroAttribute|hp|x}} returns bonus HP based on x bonus strenght
{{HeroAttribute|mana|x}} bonus mana on x bonus intelligence
{{HeroAttribute|attack|x}} bonus damage on x bonus primary stat
{{HeroAttribute|armor|x}} bonus armor on x bonus agility