Difference between revisions of "Template:CalcBAB"
From ALFA
Foambats4all (talk | contribs) |
Foambats4all (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#switch: {{{2}}} | + | <includeonly>{{#switch: {{{2}}} |
− | | High = | + | | High = {{ExtraBAB|{{{1}}}}} |
− | | Medium = | + | | Medium = {{ExtraBAB|{{#expr: floor( {{formatnum:{{{1|0}}}|R}} * 0.75 ) }}}} |
− | | | + | | {{ExtraBAB|{{#expr: floor( {{formatnum:{{{1|0}}}|R}} * 0.5 ) }}}} |
− | }} | + | }}</includeonly><noinclude>[[Category:Templates]] |
+ | [[Category:Functional Templates]] | ||
+ | This function calculates and displays the [[Base Attack Bonus]], including multiple attacks per round. | ||
+ | |||
+ | = Usage = | ||
+ | The first value passed to the template is the level to calculate for, while the second is the progression used (''High'', ''Medium'', or ''Low''). | ||
+ | <nowiki>{{CalcBAB|20|High}}</nowiki> | ||
+ | |||
+ | = Preview = | ||
+ | {{CalcBAB|20|High}} | ||
+ | </noinclude> |
Latest revision as of 00:30, 28 January 2014
This function calculates and displays the Base Attack Bonus, including multiple attacks per round.
Usage
The first value passed to the template is the level to calculate for, while the second is the progression used (High, Medium, or Low).
{{CalcBAB|20|High}}
Preview
+20/+15/+10/+5