Template:Cost

From Epic Path
Jump to navigation Jump to search

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)