Template:Cost: Difference between revisions

From Epic Path
Jump to navigation Jump to search
(Created page with "<noinclude> Outputs the gold piece cost of something, based on a percentage of total wealth by level, and a character level. All values are rounded to the nearest gold piece....")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
* '''l''' = the character level you want to use as the basis for the total wealth by level.
* '''l''' = the character level you want to use as the basis for the total wealth by level.
* '''s''' = the percentage of total wealth by level you want to use. 1 is 1% (0.01).  You can also use numbers less than 1%, such as .25 (a quarter of a percent).  You can see total wealth by level listed out in the [[Character_Advancement#Table:_Level_Advancement|character advancement table]] under the "Starting Wealth" column.
* '''s''' = the percentage of total wealth by level you want to use. 1 is 1% (0.01).  You can also use numbers less than 1%, such as .25 (a quarter of a percent).  You can see total wealth by level listed out in the [[Character_Advancement#Table:_Level_Advancement|character advancement table]] under the "Starting Wealth" column.
: For reference, weapons generally use an "s" value of 20, armor uses an "s" value of 10, and most magic items use an "s" value of 5 (based on the CL of the item in question).
:: References:
:::{| class="ep-default"
|-
| weapon enhancement bonus  || s value = 20
|-
| armor enhancement bonus || s value = 10
|-
| miscellaneous magic items || s value = 5
|-
| painfully expensive spell component || s value = 1
|-
| expensive spell component || s value = 0.25
|}


'''Examples:'''
'''Examples:'''

Latest revision as of 19:21, 17 October 2018

Outputs the gold piece cost of something, based on a percentage of total wealth by level, and a character level. All values are rounded to the nearest gold piece. The template automatically adds "gp" to the output. Call as follows:

{{cost|l=1|s=1}}

Parameters (all are MANDATORY):

  • l = the character level you want to use as the basis for the total wealth by level.
  • s = the percentage of total wealth by level you want to use. 1 is 1% (0.01). You can also use numbers less than 1%, such as .25 (a quarter of a percent). You can see total wealth by level listed out in the character advancement table under the "Starting Wealth" column.
References:
weapon enhancement bonus s value = 20
armor enhancement bonus s value = 10
miscellaneous magic items s value = 5
painfully expensive spell component s value = 1
expensive spell component s value = 0.25

Examples:

  • {{Cost|l=1|s=1}} - outputs 1% of level 1 total wealth. (3 gp)
  • {{Cost|l=5|s=0.25}} - outputs 0.25% of level 5 total wealth. (55 gp)