Template:5e24 SaveCalc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#if: {{{2|}}}|{{#ifeq: {{#expr:(floor(({{{1|}}}/2)+{{{2}}}) >= 5)}} | 1 |+{{#expr:(floor(({{{1|}}}/2)+{{{2}}}) - 5)}}|{{#expr:((floor(({{{1|}}}/2)+{{{2}}}) - 5)}} }}|<!--if not 2-->{{#ifeq: {{#expr:(floor({{{1|}}}/2) >= 5)}} | 1 |+{{#expr:(floor({{{1}}}/2) - 5)}}|{{#expr:(floor({{{1}}}/2) - 5)}} }} }}<!--end if 2--></includeonly><noinclude>{{tocright}} ==Useage== Give it an attribute number and proficiency bonus. It calculates a properly formatted save mo...") |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{{2|}}}|{{#ifeq: {{#expr:(floor(({{{1|}}}/2)+{{{2}}}) >= 5)}} | 1 |+{{#expr:(floor(({{{1|}}}/2)+{{{2}}}) - 5)}}|{{#expr: | <includeonly>{{#if: {{{2|}}}|{{#ifeq: {{#expr:(floor(({{{1|}}}/2)+{{{2}}}) >= 5)}} | 1 | +{{#expr:(floor(({{{1|}}}/2)+{{{2}}}) - 5)}}|{{#expr:(floor(({{{1|}}}/2)+{{{2}}}) - 5)}} }}|<!--if not 2-->{{#ifeq: {{#expr:(floor({{{1|}}}/2) >= 5)}} | 1 | +{{#expr:(floor({{{1}}}/2) - 5)}}|{{#expr:(floor({{{1}}}/2) - 5)}} }} }}<!--end if 2--></includeonly><noinclude>{{template badge}}{{tocright}} | ||
==Useage== | ==Useage== | ||
| Line 10: | Line 10: | ||
<pre>{{5e24 SaveCalc|14|3}}</pre> | <pre>{{5e24 SaveCalc|14|3}}</pre> | ||
{{5e24 SaveCalc|14|3}} | {{5e24 SaveCalc|14|3}} | ||
<!-- | |||
{{5e24 SaveCalc|1|3}} | |||
{{5e24 SaveCalc|1}} | |||
--> | |||
</noinclude> | </noinclude> | ||
Latest revision as of 05:07, 20 August 2025
Template ⁿ
Useage
Give it an attribute number and proficiency bonus. It calculates a properly formatted save modifier for that number.
Syntax
{{5e24 SaveCalc|AbilityScore|ProfBonus}}
Example
{{5e24 SaveCalc|14|3}}
+5