Difference between revisions of "Template:QuestReaperXP"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>This template is used for | <noinclude>{{TemplateDocumentation | ||
|name = QuestReaperXP | |||
|description = This template is used to format and calculate the base reaper xp given for a quest. This is automatically added by the Quest template. | |||
< | |category = Quest and Area Templates | ||
< | |example1 = <nowiki>{{QuestReaperXP|30|Short}}</nowiki> | ||
|example1output = {{QuestReaperXP|30|Short}} | |||
|example2 = <nowiki>{{QuestReaperXP|30|Short}}</nowiki> | |||
<onlyinclude>'''Reaper:''' {{#if: {{{3|}}}|N/A|{{#ifexpr: {{{1}}} >= 30| | |example2output = {{QuestReaperXP|10|Long}} | ||
| short= {{#expr: 3*{{{1}}}*.8}} | |example3 = <nowiki>{{QuestReaperXP|20|Medium}}</nowiki> | ||
| medium= {{#expr: 3*{{{1}}}*1}} | |example3output = {{QuestReaperXP|20|Medium}} | ||
| long= {{#expr: 3*{{{1}}}*1.2}} | |example4 = <nowiki>{{QuestReaperXP|32|Very Long}}</nowiki> | ||
| very long = {{#expr: 3*{{{1}}}*1.4}} per skull}}}}</onlyinclude> | |example4output = {{QuestReaperXP|32|Very Long}} | ||
|parameter1name = Quest Level | |||
|parameter1description = This is the level of the quest. | |||
|parameter1values = | |||
|parameter2name = Quest Length | |||
|parameter2description = This is the length of the quest. | |||
|parameter2values = | |||
* Short | |||
* Medium | |||
* Long | |||
* Very Long | |||
}} | |||
{{#if: {{{3|}}}|N/A|{{#ifexpr: {{{1}}} >= 30|2*(}}50+{{#switch: {{lc:{{{2}}}}} | |||
| short= {{#expr: 3*{{{1}}}*.8}} | |||
| medium= {{#expr: 3*{{{1}}}*1}} | |||
| long= {{#expr: 3*{{{1}}}*1.2}} | |||
| very long = {{#expr: 3*{{{1}}}*1.4}}}}{{#ifexpr: {{{1}}} >= 30|)}} per skull}} | |||
</noinclude> | |||
<onlyinclude>'''Reaper:''' | |||
{{#if: {{{3|}}}|N/A| | |||
{{#ifexpr: {{{1}}} >= 30|{{#dplvar:set|multiplier|2}}|{{#dplvar:set|multiplier|1}}}} | |||
{{#switch: {{lc:{{{2}}}}} | |||
| short= {{#expr: {{#dplvar:multiplier}}*(50+(3*{{{1}}}*.8))}} | |||
| medium= {{#expr: {{#dplvar:multiplier}}*(50+(3*{{{1}}}*1))}} | |||
| long= {{#expr: {{#dplvar:multiplier}}*(50+(3*{{{1}}}*1.2))}} | |||
| very long = {{#expr: {{#dplvar:multiplier}}*(50+(3*{{{1}}}*1.4))}}}} RXP per skull | |||
{{#dplvar:set|multiplier|}}}}</onlyinclude> |
Latest revision as of 16:09, 23 November 2022
QuestReaperXP[edit]
This template is used to format and calculate the base reaper xp given for a quest. This is automatically added by the Quest template.
Example Usage | |
{{QuestReaperXP|30|Short}} | Reaper: 244 RXP per skull |
{{QuestReaperXP|30|Short}} | Reaper: 86 RXP per skull |
{{QuestReaperXP|20|Medium}} | Reaper: 110 RXP per skull |
{{QuestReaperXP|32|Very Long}} | Reaper: 368.8 RXP per skull |
Usage[edit]
{{QuestReaperXP|(Quest Level)|(Quest Length)}}
Parameter Documentation | |
Quest Level | This is the level of the quest. |
Quest Length | This is the length of the quest. Possible Values:
|
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
Expression error: Unrecognized punctuation character "{".50+Expression error: Unrecognized punctuation character "{". per skull
Reaper: Expression error: Unrecognized punctuation character "{".
RXP per skull