Template:Rod-Costs: Difference between revisions

From Epic Path
Jump to navigation Jump to search
No edit summary
No edit summary
Line 34: Line 34:
| {{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<1|-|1}}
| {{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<1|-|1}}
| align="right" | {{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<1|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=1}} * {{#switch:{{{sp}}}|0 = 0.25|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}}&ensp;
| align="right" | {{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<1|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=1}} * {{#switch:{{{sp}}}|0 = 0.25|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}}&ensp;
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<1|-|{{#expr:{{{sp|1}}}+{{MonsterWeakSave|transcludesection=1}}+11}}}}}}}}
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<1|-|{{#expr:{{{sp|1}}}+{{MonsterWeakSave|transcludesection=1}}+11}}}}}}
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<1|-|{{#switch:{{{sp}}}|0 = 1d4|1 = 1d4|2 = 1d4|3 = 1d4|4 = 1d4}}}}}}
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{sp|1}}}>1 or {{{max|35}}}<1|-|{{#switch:{{{sp}}}|0 = 1d4|1 = 1d4|2 = 1d4|3 = 1d4|4 = 1d4}}}}}}
|-
|-

Revision as of 16:09, 30 August 2019

Outputs a table of caster level-based rod costs, adjusted by spell level. Call as follows:

{{Rod-Costs
| sp= 
| max= 
| save=
| dam=
}}

Parameters:

  • sp = Values: 0 through 4. Sets the spell level of the spell on the rod. This sets the minimum caster level and the price factors. Default is 1.
  • max = Values: 5 through 35. Sets the max caster level the rod can be purchased at. Typically where the spell maxes out (e.g. 20 for all cure spells). Default is 35.
  • save = Values: N or leave blank. "N" will hide all save DCs in the table.
  • dam = Values: N or leave blank. "N" will hide all damage info in the table.

Example:

  • {{Rod-Costs|sp=2|max=11}}

Outputs:
You can purchase this rod at a higher caster level than the minimum required to cast the spell. Doing so increases the potency of the spell as described above, but also increases the cost, as follows:

Caster Level Cost Save DC (1) Damage Dealt (2)
- -  - -
- -  - -
3 4,500 gp  Expression error: Unrecognized punctuation character "[". 3d4
4 6,600 gp  Expression error: Unrecognized punctuation character "[". 4d4
5 9,000 gp  Expression error: Unrecognized punctuation character "[". 5d4
6 12,000 gp  Expression error: Unrecognized punctuation character "[". 6d4
7 15,000 gp  Expression error: Unrecognized punctuation character "[". 7d4
8 19,200 gp  Expression error: Unrecognized punctuation character "[". 8d4
9 24,000 gp  Expression error: Unrecognized punctuation character "[". 9d4
10 30,000 gp  Expression error: Unrecognized punctuation character "[". 10d4
11 37,200 gp  Expression error: Unrecognized punctuation character "[". 11d6
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
Caster Level Cost Save DC (1) Damage Dealt (2)
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
- -  - -
(1) – If the listed spell effect calls for a saving throw, this save DC is used, based on the caster level of the rod purchased.
(2) – If the listed spell effect states that it deals damage, use this value for damage dealt, based on the caster level of the rod purchased.