Template:Ctid
From Tales of Maj'Eyal
Revision as of 23:29, 20 August 2014 by Vyn (Talk | contribs) (Changed formatting to show stat_weight by default)
Introduction
This template is used to denote talent parameters that scale by the combatTalentIntervalDamage function.
The template accepts up to four parameters, corresponding to those in the LUA code: stat, min, max, stat_weight. It is assumed that these parameters will be fed to the template in the order specified above.
The first 3 parameters to this template are required, and the last one is optional.
Basic Example
The LUA code for critical chance bonus of Riposte calls for
self:combatTalentIntervalDamage(t, "dex", 10, 50)
which should be entered into the wiki as
{{CTID|Dex|10|50}}
and will produce the following text
10–50cTID:0.5Dex
Note that any percentage signs must be inserted manually with the parameters.
Additional Parameters
The stat_weight parameter defaults to 0.5 in the LUA, and can be entered as an optional parameter 4 if different from 0.5.