Difference between revisions of "Template:HeroAttribute"
Jump to navigation
Jump to search
(Created page with "{{#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.}} Returns...") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | <noinclude> | |
− | + | <pre> | |
Returns bonus property based on bonus attribute | Returns bonus property based on bonus attribute | ||
Line 8: | Line 8: | ||
{{HeroAttribute|attack|x}} bonus damage on x bonus primary stat | {{HeroAttribute|attack|x}} bonus damage on x bonus primary stat | ||
{{HeroAttribute|armor|x}} bonus armor on x bonus agility | {{HeroAttribute|armor|x}} bonus armor on x bonus agility | ||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
Line 17: | Line 13: | ||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
</noinclude><includeonly>{{#switch: {{{1}}} | </noinclude><includeonly>{{#switch: {{{1}}} | ||
− | | hp = {{{2}}}*19 | + | | hp = {{#expr:{{{2}}}*19}} |
− | | mana = | + | | mana = {{#expr:{{{2}}}*13}} |
− | | default }} | + | | attack = {{#expr:{{{2}}}*1}} |
+ | | armor = {{#expr:{{{2}}}/7}} | ||
+ | | default = ERROR}} | ||
</includeonly> | </includeonly> |
Latest revision as of 15:57, 22 April 2018
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