Template:Alchemical-Item-Costs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
<pre> | <pre> | ||
{{Alchemical-Item-Costs | {{Alchemical-Item-Costs | ||
| | | cost= | ||
| save= | | save= | ||
| dam= | | dam= | ||
| min= | |||
| max= | |||
}} | }} | ||
</pre> | </pre> | ||
'''Parameters:''' | '''Parameters:''' | ||
* ''' | * '''cost''' = Values: 0 through 4. Sets the item's cost factor. Default is 1. | ||
* '''save''' = Values: N | * '''save''' = Values: 0 through 4 or N. Sets the potency of the item's save DC. "N" will blank out the field (for items with no save). Default is 1. | ||
* '''dam''' = Values: N | * '''dam''' = Values: 0 through 4 or N. Sets the potency of the item's damage. "N" will blank out the field (for non-damaging items). Default is 1. | ||
* '''min''' = Values: 2 through 34 or leave blank. Sets the minimum level the item is available to purchase. Default is level 1. | |||
* '''max''' = Values: 2 through 34 or leave blank. Sets the maximum level the item is available to purchase. Default is level 35. | |||
'''Example:''' | '''Example:''' | ||
Line 22: | Line 26: | ||
</noinclude><includeonly>You can purchase this item at a higher creator level than the minimum required to cast the spell. Doing so increases the potency of the item as described above, but also increases the cost, as follows: | </noinclude><includeonly>You can purchase this item at a higher creator level than the minimum required to cast the spell. Doing so increases the potency of the item as described above, but also increases the cost, as follows: | ||
{{#vardefine: | {{#vardefine:cost0|0.0125 | ||
}}{{#vardefine: | }}{{#vardefine:cost1|0.025 | ||
}}{{#vardefine: | }}{{#vardefine:cost2|0.0375 | ||
}}{{#vardefine: | }}{{#vardefine:cost3|0.05 | ||
}}{{#vardefine: | }}{{#vardefine:cost4|0.0625 | ||
}}{| class="ep-default2" style="display:inline-block; float:left; text-align:center; font-size:85%; border-collapse:collapse;" width="455px" | }} | ||
{| class="ep-default2" style="display:inline-block; float:left; text-align:center; font-size:85%; border-collapse:collapse;" width="455px" | |||
|- style="{{linear-gradient|top|#C0D7EF, #FFF2FB}}; Color:#000;" | |- style="{{linear-gradient|top|#C0D7EF, #FFF2FB}}; Color:#000;" | ||
! width="110" height="25" | Creator Level | ! width="110" height="25" | Creator Level | ||
Line 34: | Line 39: | ||
! width="110" | Damage Dealt | ! width="110" | Damage Dealt | ||
|- | |- | ||
| {{#ifexpr:{{{ | | {{#vardefine:lvl|1}}{{#ifexpr:{{{min|1}}}>{{#var:lvl}} or {{{max|35}}}<{{#var:lvl}}|-|{{#var:lvl}}}} | ||
| align="right" | {{#ifexpr:{{{ | | align="right" | {{#ifexpr:{{{min|1}}}>{{#var:lvl}} or {{{max|35}}}<{{#var:lvl}}|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection={{#var:lvl}}}} * {{#switch:{{{cost}}}|0 = {{#var:cost0}}|1 = {{#var:cost1}}|2 = {{#var:cost2}}|3 = {{#var:cost3}}|4 = {{#var:cost4}}|#default = {{#var:cost1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{ | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{min|1}}}>{{#var:lvl}} or {{{max|35}}}<{{#var:lvl}}|-|{{#expr:{{#switch:{{{save}}}|0=-1|1=0|2=1|3=2|4=3|#default=0}}+{{MonsterAttackSave|transcludesection={{#var:lvl}}}}}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{ | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{min|1}}}>{{#var:lvl}} or {{{max|35}}}<{{#var:lvl}}|-|{{#switch:{{{dam}}}|0 = {{dice|{{#var:lvl}}|d=4}}|1 = {{dice|{{#var:lvl}}|d=6}}|2 = {{dice|{{#var:lvl}}|d=4|add=x1}}|3 = {{dice|{{#var:lvl}}|d=4|add=x2}}|4 = {{dice|{{#var:lvl}}|d=4|add=x3}}}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{ | | {{#vardefine:lvl|2}}{{#ifexpr:{{{min|1}}}>{{#var:lvl}} or {{{max|35}}}<{{#var:lvl}}|-|{{#var:lvl}}}} | ||
| align="right" | {{#ifexpr:{{{ | | align="right" | {{#ifexpr:{{{min|1}}}>{{#var:lvl}} or {{{max|35}}}<{{#var:lvl}}|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection={{#var:lvl}}}} * {{#switch:{{{cost}}}|0 = {{#var:cost0}}|1 = {{#var:cost1}}|2 = {{#var:cost2}}|3 = {{#var:cost3}}|4 = {{#var:cost4}}|#default = {{#var:cost1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{ | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{min|1}}}>{{#var:lvl}} or {{{max|35}}}<{{#var:lvl}}|-|{{#expr:{{#switch:{{{save}}}|0=-1|1=0|2=1|3=2|4=3|#default=0}}+{{MonsterAttackSave|transcludesection={{#var:lvl}}}}}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{ | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{min|1}}}>{{#var:lvl}} or {{{max|35}}}<{{#var:lvl}}|-|{{#switch:{{{dam}}}|0 = {{dice|{{#var:lvl}}|d=4}}|1 = {{dice|{{#var:lvl}}|d=6}}|2 = {{dice|{{#var:lvl}}|d=4|add=x1}}|3 = {{dice|{{#var:lvl}}|d=4|add=x2}}|4 = {{dice|{{#var:lvl}}|d=4|add=x3}}}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{ | | {{#vardefine:lvl|3}}{{#ifexpr:{{{min|1}}}>{{#var:lvl}} or {{{max|35}}}<{{#var:lvl}}|-|{{#var:lvl}}}} | ||
| align="right" | {{#ifexpr:{{{ | | align="right" | {{#ifexpr:{{{min|1}}}>{{#var:lvl}} or {{{max|35}}}<{{#var:lvl}}|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection={{#var:lvl}}}} * {{#switch:{{{cost}}}|0 = {{#var:cost0}}|1 = {{#var:cost1}}|2 = {{#var:cost2}}|3 = {{#var:cost3}}|4 = {{#var:cost4}}|#default = {{#var:cost1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{ | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{min|1}}}>{{#var:lvl}} or {{{max|35}}}<{{#var:lvl}}|-|{{#expr:{{#switch:{{{save}}}|0=-1|1=0|2=1|3=2|4=3|#default=0}}+{{MonsterAttackSave|transcludesection={{#var:lvl}}}}}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{ | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{min|1}}}>{{#var:lvl}} or {{{max|35}}}<{{#var:lvl}}|-|{{#switch:{{{dam}}}|0 = {{dice|{{#var:lvl}}|d=4}}|1 = {{dice|{{#var:lvl}}|d=6}}|2 = {{dice|{{#var:lvl}}|d=4|add=x1}}|3 = {{dice|{{#var:lvl}}|d=4|add=x2}}|4 = {{dice|{{#var:lvl}}|d=4|add=x3}}}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{ | | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|4}} | ||
| align="right" | {{#ifexpr:{{{ | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=4}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{sp|1}}}>2 or {{{max|35}}}<4|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=4}}+11}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{sp|1}}}>2 or {{{max|35}}}<4|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=4}}+11}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{sp|1}}}>2 or {{{max|35}}}<4|-|{{#switch:{{{sp}}}|0 = 4d4|1 = 4d6|2 = 4d6|3 = 4d6|4 = 4d6}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{sp|1}}}>2 or {{{max|35}}}<4|-|{{#switch:{{{sp}}}|0 = 4d4|1 = 4d6|2 = 4d6|3 = 4d6|4 = 4d6}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{ | | {{#ifexpr:{{{min|1}}}>3 or {{{max|35}}}<5|-|5}} | ||
| align="right" | {{#ifexpr:{{{ | | align="right" | {{#ifexpr:{{{min|1}}}>3 or {{{max|35}}}<5|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=5}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<5|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=5}}+11}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<5|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=5}}+11}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<5|-|{{#switch:{{{sp}}}|0 = 5d4|1 = 5d6|2 = 5d6|3 = 5d6|4 = 5d6}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<5|-|{{#switch:{{{sp}}}|0 = 5d4|1 = 5d6|2 = 5d6|3 = 5d6|4 = 5d6}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{ | | {{#ifexpr:{{{min|1}}}>3 or {{{max|35}}}<6|-|6}} | ||
| align="right" | {{#ifexpr:{{{ | | align="right" | {{#ifexpr:{{{min|1}}}>3 or {{{max|35}}}<6|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=6}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<6|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=6}}+11}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<6|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=6}}+11}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<6|-|{{#switch:{{{sp}}}|0 = 6d4|1 = 6d6|2 = 6d6|3 = 6d6|4 = 6d6+6}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{sp|1}}}>3 or {{{max|35}}}<6|-|{{#switch:{{{sp}}}|0 = 6d4|1 = 6d6|2 = 6d6|3 = 6d6|4 = 6d6+6}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<7|-|7}} | | {{#ifexpr:{{{max|35}}}<7|-|7}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>4 or {{{max|35}}}<6|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=7}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<7|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=7}}+11}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<7|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=7}}+11}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<7|-|{{#switch:{{{sp}}}|0 = 7d4|1 = 7d6|2 = 7d6|3 = 7d6|4 = 7d6+7}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<7|-|{{#switch:{{{sp}}}|0 = 7d4|1 = 7d6|2 = 7d6|3 = 7d6|4 = 7d6+7}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<8|-|8}} | | {{#ifexpr:{{{max|35}}}<8|-|8}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=8}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<8|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=8}}+11}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<8|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=8}}+11}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<8|-|{{#switch:{{{sp}}}|0 = 8d4|1 = 8d6|2 = 8d6|3 = 8d6+8|4 = 8d6+8}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<8|-|{{#switch:{{{sp}}}|0 = 8d4|1 = 8d6|2 = 8d6|3 = 8d6+8|4 = 8d6+8}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<9|-|9}} | | {{#ifexpr:{{{max|35}}}<9|-|9}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=9}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<9|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=9}}+11}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<9|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=9}}+11}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<9|-|{{#switch:{{{sp}}}|0 = 9d4|1 = 9d6|2 = 9d6|3 = 9d6+9|4 = 9d6+9}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<9|-|{{#switch:{{{sp}}}|0 = 9d4|1 = 9d6|2 = 9d6|3 = 9d6+9|4 = 9d6+9}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<10|-|10}} | | {{#ifexpr:{{{max|35}}}<10|-|10}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=10}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<10|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=10}}+11}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<10|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=10}}+11}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<10|-|{{#switch:{{{sp}}}|0 = 10d4|1 = 10d6|2 = 10d6|3 = 10d6+10|4 = 10d6+10}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<10|-|{{#switch:{{{sp}}}|0 = 10d4|1 = 10d6|2 = 10d6|3 = 10d6+10|4 = 10d6+10}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<11|-|11}} | | {{#ifexpr:{{{max|35}}}<11|-|11}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=11}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<11|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=11}}+11}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<11|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=11}}+11}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<11|-|{{#switch:{{{sp}}}|0 = 11d4|1 = 11d6|2 = 11d6|3 = 11d6+11|4 = 11d6+11}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<11|-|{{#switch:{{{sp}}}|0 = 11d4|1 = 11d6|2 = 11d6|3 = 11d6+11|4 = 11d6+11}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<12|-|12}} | | {{#ifexpr:{{{max|35}}}<12|-|12}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=12}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<12|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=12}}+11}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<12|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=12}}+11}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<12|-|{{#switch:{{{sp}}}|0 = 12d4|1 = 12d6|2 = 12d6+12|3 = 12d6+12|4 = 12d6+24}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<12|-|{{#switch:{{{sp}}}|0 = 12d4|1 = 12d6|2 = 12d6+12|3 = 12d6+12|4 = 12d6+24}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<13|-|13}} | | {{#ifexpr:{{{max|35}}}<13|-|13}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=13}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<13|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=13}}+11}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<13|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=13}}+11}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<13|-|{{#switch:{{{sp}}}|0 = 13d4|1 = 13d6|2 = 13d6+13|3 = 13d6+13|4 = 13d6+26}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<13|-|{{#switch:{{{sp}}}|0 = 13d4|1 = 13d6|2 = 13d6+13|3 = 13d6+13|4 = 13d6+26}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<14|-|14}} | | {{#ifexpr:{{{max|35}}}<14|-|14}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=14}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<14|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=14}}+11}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<14|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=14}}+11}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<14|-|{{#switch:{{{sp}}}|0 = 14d4|1 = 14d6|2 = 14d6+14|3 = 14d6+14|4 = 14d6+28}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<14|-|{{#switch:{{{sp}}}|0 = 14d4|1 = 14d6|2 = 14d6+14|3 = 14d6+14|4 = 14d6+28}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<15|-|15}} | | {{#ifexpr:{{{max|35}}}<15|-|15}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=15}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<15|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=15}}+11}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<15|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=15}}+11}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<15|-|{{#switch:{{{sp}}}|0 = 15d4|1 = 15d6+15|2 = 15d6+15|3 = 15d6+15|4 = 15d6+30}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<15|-|{{#switch:{{{sp}}}|0 = 15d4|1 = 15d6+15|2 = 15d6+15|3 = 15d6+15|4 = 15d6+30}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<16|-|16}} | | {{#ifexpr:{{{max|35}}}<16|-|16}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=16}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<16|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=16}}+11}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<16|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=16}}+11}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<16|-|{{#switch:{{{sp}}}|0 = 16d4|1 = 16d6+16|2 = 16d6+16|3 = 16d6+32|4 = 16d6+32}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<16|-|{{#switch:{{{sp}}}|0 = 16d4|1 = 16d6+16|2 = 16d6+16|3 = 16d6+32|4 = 16d6+32}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<17|-|17}} | | {{#ifexpr:{{{max|35}}}<17|-|17}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=17}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<17|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=17}}+10}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<17|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=17}}+10}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<17|-|{{#switch:{{{sp}}}|0 = 17d4|1 = 17d6+17|2 = 17d6+17|3 = 17d6+34|4 = 17d6+34}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<17|-|{{#switch:{{{sp}}}|0 = 17d4|1 = 17d6+17|2 = 17d6+17|3 = 17d6+34|4 = 17d6+34}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<18|-|18}} | | {{#ifexpr:{{{max|35}}}<18|-|18}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=18}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<18|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=18}}+10}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<18|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=18}}+10}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<18|-|{{#switch:{{{sp}}}|0 = 18d4|1 = 18d6+18|2 = 18d6+18|3 = 18d6+36|4 = 18d6+54}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<18|-|{{#switch:{{{sp}}}|0 = 18d4|1 = 18d6+18|2 = 18d6+18|3 = 18d6+36|4 = 18d6+54}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<19|-|19}} | | {{#ifexpr:{{{max|35}}}<19|-|19}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=19}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<19|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=19}}+10}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<19|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=19}}+10}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<19|-|{{#switch:{{{sp}}}|0 = 19d4|1 = 19d6+19|2 = 19d6+19|3 = 19d6+38|4 = 19d6+57}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<19|-|{{#switch:{{{sp}}}|0 = 19d4|1 = 19d6+19|2 = 19d6+19|3 = 19d6+38|4 = 19d6+57}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<20|-|20}} | | {{#ifexpr:{{{max|35}}}<20|-|20}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=20}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<20|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=20}}+10}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<20|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=20}}+10}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<20|-|{{#switch:{{{sp}}}|0 = 20d4|1 = 20d6+20|2 = 20d6+20|3 = 20d6+40|4 = 20d6+60}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<20|-|{{#switch:{{{sp}}}|0 = 20d4|1 = 20d6+20|2 = 20d6+20|3 = 20d6+40|4 = 20d6+60}}}}}} | ||
Line 146: | Line 151: | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<21|-|21}} | | {{#ifexpr:{{{max|35}}}<21|-|21}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=21}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<21|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=21}}+10}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<21|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=21}}+10}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<21|-|{{#switch:{{{sp}}}|0 = 21d6|1 = 21d6+21|2 = 21d6+21|3 = 21d6+42|4 = 21d6+63}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<21|-|{{#switch:{{{sp}}}|0 = 21d6|1 = 21d6+21|2 = 21d6+21|3 = 21d6+42|4 = 21d6+63}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<22|-|22}} | | {{#ifexpr:{{{max|35}}}<22|-|22}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=22}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<22|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=22}}+10}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<22|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=22}}+10}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<22|-|{{#switch:{{{sp}}}|0 = 22d6|1 = 22d6+22|2 = 22d6+22|3 = 22d6+44|4 = 22d6+66}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<22|-|{{#switch:{{{sp}}}|0 = 22d6|1 = 22d6+22|2 = 22d6+22|3 = 22d6+44|4 = 22d6+66}}}}}} | ||
|- | |- | ||
| {{#ifexpr:{{{max|35}}}<23|-|23}} | | {{#ifexpr:{{{max|35}}}<23|-|23}} | ||
| align="right" | {{#ifexpr:{{{max|35}}}< | | align="right" | {{#ifexpr:{{{min|1}}}>2 or {{{max|35}}}<4|-|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=23}} * {{#switch:{{{potency}}}|0 = {{#var:potency0}}|1 = {{#var:potency1}}|2 = {{#var:potency2}}|3 = {{#var:potency3}}|4 = {{#var:potency4}}|#default = {{#var:potency1}}}}}}}} gp}}  | ||
| {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<23|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=23}}+10}}}}}} | | {{#ifeq:{{{save}}}|N|-|{{#ifexpr:{{{max|35}}}<23|-|{{#expr:{{{sp|1}}}+{{MonsterStrongSave|transcludesection=23}}+10}}}}}} | ||
| {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<23|-|{{#switch:{{{sp}}}|0 = 23d6|1 = 23d6+23|2 = 23d6+23|3 = 23d6+46|4 = 23d6+69}}}}}} | | {{#ifeq:{{{dam}}}|N|-|{{#ifexpr:{{{max|35}}}<23|-|{{#switch:{{{sp}}}|0 = 23d6|1 = 23d6+23|2 = 23d6+23|3 = 23d6+46|4 = 23d6+69}}}}}} |
Revision as of 16:10, 21 August 2022
Outputs a table of creator level-based alchemical item costs, adjusted via a nudge modifier. Call as follows:
{{Alchemical-Item-Costs | cost= | save= | dam= | min= | max= }}
Parameters:
- cost = Values: 0 through 4. Sets the item's cost factor. Default is 1.
- save = Values: 0 through 4 or N. Sets the potency of the item's save DC. "N" will blank out the field (for items with no save). Default is 1.
- dam = Values: 0 through 4 or N. Sets the potency of the item's damage. "N" will blank out the field (for non-damaging items). Default is 1.
- min = Values: 2 through 34 or leave blank. Sets the minimum level the item is available to purchase. Default is level 1.
- max = Values: 2 through 34 or leave blank. Sets the maximum level the item is available to purchase. Default is level 35.
Example:
{{Alchemical-Item-Costs|price=0.25|save=N}}
Outputs:
You can purchase this item at a higher creator level than the minimum required to cast the spell. Doing so increases the potency of the item as described above, but also increases the cost, as follows:
Creator Level | Cost | Save DC | Damage Dealt |
---|---|---|---|
1 | 50 gp | - | |
2 | 113 gp | - | |
3 | 188 gp | - | |
4 | First argument to "number_format" must be a number. gp | - | |
5 | First argument to "number_format" must be a number. gp | - | |
6 | First argument to "number_format" must be a number. gp | - | |
7 | First argument to "number_format" must be a number. gp | - | |
8 | First argument to "number_format" must be a number. gp | - | |
9 | First argument to "number_format" must be a number. gp | - | |
10 | First argument to "number_format" must be a number. gp | - | |
11 | First argument to "number_format" must be a number. gp | - | |
12 | First argument to "number_format" must be a number. gp | - | |
13 | First argument to "number_format" must be a number. gp | - | |
14 | First argument to "number_format" must be a number. gp | - | |
15 | First argument to "number_format" must be a number. gp | - | |
16 | First argument to "number_format" must be a number. gp | - | |
17 | First argument to "number_format" must be a number. gp | - | |
18 | First argument to "number_format" must be a number. gp | - | |
19 | First argument to "number_format" must be a number. gp | - | |
20 | First argument to "number_format" must be a number. gp | - |
Creator Level | Cost | Save DC | Damage Dealt |
---|---|---|---|
21 | First argument to "number_format" must be a number. gp | - | |
22 | First argument to "number_format" must be a number. gp | - | |
23 | First argument to "number_format" must be a number. gp | - | |
24 | First argument to "number_format" must be a number. gp | - | |
25 | First argument to "number_format" must be a number. gp | - | |
26 | First argument to "number_format" must be a number. gp | - | |
27 | First argument to "number_format" must be a number. gp | - | |
28 | First argument to "number_format" must be a number. gp | - | |
29 | First argument to "number_format" must be a number. gp | - | |
30 | First argument to "number_format" must be a number. gp | - | |
31 | First argument to "number_format" must be a number. gp | - | |
32 | First argument to "number_format" must be a number. gp | - | |
33 | First argument to "number_format" must be a number. gp | - | |
34 | First argument to "number_format" must be a number. gp | - | |
35 | First argument to "number_format" must be a number. gp | - |