Template:Rod-Costs: Difference between revisions

From Epic Path
Jump to navigation Jump to search
No edit summary
No edit summary
Line 57: Line 57:
| {{#ifexpr:{{{max|35}}}<32|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=32}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}}
| {{#ifexpr:{{{max|35}}}<32|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=32}} * {{#switch:{{{sp}}}|1 = 0.375|2 = 0.6|3 = 0.75|4 = 0.9|#default = 0.375}}}}}} gp}}
|-
|-
| 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}}}<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}}
| {{#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}}
|  
|  

Revision as of 15:17, 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
- - 11 37,200 gp - - - -
- - - - - - - -
3 4,500 gp - - - - - -
4 6,600 gp - - - - - -
5 9,000 gp - - - - - -
6 12,000 gp - - - - - -
7 15,000 gp - - - - - -
8 19,200 gp - - - - - -
9 24,000 gp - - - - - -
10 30,000 gp - - - - - -