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
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).
:: 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).


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

Revision as of 19:16, 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.
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).

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)