Template:Rod-Costs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
'''Outputs:''' | '''Outputs:''' | ||
{{Rod-Costs|sp= | {{Rod-Costs|sp=1|max=11}} | ||
</noinclude><includeonly>{| style="ep-default2" style="text-align:right" | </noinclude><includeonly>{| style="ep-default2" style="text-align:right" | ||
Line 58: | Line 58: | ||
|- | |- | ||
| align="center" | {{#ifexpr:{{{sp|1}}}>2 or {{{max|35}}}<3|-|3}} | | align="center" | {{#ifexpr:{{{sp|1}}}>2 or {{{max|35}}}<3|-|3}} | ||
| {{#ifexpr:{{{sp|1}}} | | {{#ifexpr:{{{sp|1}}}>2 or {{{max|35}}}<3|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=3}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}} | ||
| | | | ||
| align="center" | {{#ifexpr:{{{max|35}}}<13|-|13}} | | align="center" | {{#ifexpr:{{{max|35}}}<13|-|13}} |
Revision as of 15:19, 24 August 2019
Outputs a table of caster level-based rod costs, adjusted by spell level. Call as follows:
{{Rod-Costs | sp= | max= }}
Parameters:
- sp = Values: 1 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.
Example:
{{Rod-Costs|sp=2|max=11}}
Outputs:
Caster Level | Cost | Caster Level | Cost | Caster Level | Cost | Caster Level | Cost | |||
---|---|---|---|---|---|---|---|---|---|---|
1 | 750 gp | 11 | 23,250 gp | - | - | - | - | |||
2 | 1,688 gp | - | - | - | - | - | - | |||
3 | 2,813 gp | - | - | - | - | - | - | |||
4 | 4,125 gp | - | - | - | - | - | - | |||
5 | 5,625 gp | - | - | - | - | - | - | |||
6 | 7,500 gp | - | - | - | - | - | - | |||
7 | 9,375 gp | - | - | - | - | - | - | |||
8 | 12,000 gp | - | - | - | - | - | - | |||
9 | 15,000 gp | - | - | - | - | - | - | |||
10 | 18,750 gp | - | - | - | - | - | - |