Difference between revisions of "Template:Cl"
From Tales of Maj'Eyal
(Created template for combatScale) |
(No difference)
|
Revision as of 22:33, 5 August 2014
Introduction
This template is used to denote talent parameters that scale by the combatLimit function.
The template accepts six parameters, corresponding to those in the LUA code: x, limit, y_low, x_low, y_high, x_high. It is assumed that these parameters will be fed to the template in the order specified above.
All six parameters are required.
Basic Example
The LUA code for the damage bonus of Berserker calls for
self:combatScale(self:getStr(7, true) * self:getTalentLevel(t), 5, 0, 40, 35)
which requires some interpretation of the first parameter to produce the following wiki markup
{{CS|(0.07 * Str * Talent Level)|5|0|40|35}}
and will in turn produce the following text
5–40cS as (0.07 * Str * Talent Level) varies from 0–35
Be aware that since this template produces a rather long string of text, you may have to rewrite other parts of a talent's description in order to make the whole thing legible.