Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!

Template:Calc

From DFO World Wiki
Revision as of 23:02, 26 September 2021 by Altair (talk | contribs)
Jump to: navigation, search

This is the "Calc" template. It calculates a value when provided certain variables.

Argument Description
1 (VAR) The variable that will be iterated within the arraylist. Will most likely be represented with the value:
{{#var:i}}
.
2 (BASELvVALUE) The base value to be used for calculation.
3 (MAXLvVALUE) The max value to be used for calculation.
4 (MAXLv) The max level to be used for calculation. This level must correspond to MAXLvVALUE.
5 (BASELv) The base level to be used for calculation. This level must correspond to BASELvVALUE. Default value is set to 1.
6 (ROUND) The rounded nearest decimal place, in front or behind. Increase values for nearest tenths/hundredths decimal place. Decrease values for tens/hundreds place. Default value is set to 0.
7 (PercentMultiplier) The percent multiplier (increase / decrease) listed in future KDnF patches. Can accept positive and negative values. Default value is set to 0.

It should be called in the following format:


Examples:

{{Calc|3|3767|11629|10|1|0|0}}

5514

{{Calc|3|3767|11629|10}}

5514


Copy and Paste Version:

{{Calc|{{#var:i}}|BASELvVALUE|MAXLvVALUE|MAXLv}}