what do numbers in talent code mean?
Posted: Mon May 04, 2015 1:14 am
from counterattack code:
getDamage = function(self, t) return self:combatTalentWeaponDamage(t, 0.5, 0.9) + getStrikingStyle(self, dam) end,
counterchance = function(self, t) return self:combatLimit(self:getTalentLevel(t) * (5 + self:getCun(5, true)), 100, 0, 0, 50, 50) end, --Limit < 100%
getCounterAttacks = function(self, t) return self:combatStatScale("cun", 1, 2.24) end,
(though I've seen it say it goes over 100% despite what that says).
So, what do the numbers mean, one after another? If I want to change percent chance?
return ([[When you avoid a melee blow from an adjacent foe, you have a %d%% chance to get a free, automatic attack against the attacker for %d%% damage, up to %0.1f times per turn.
What is %d%% mean and how do I change it?
For example, if character starts with chance to counterattack and then gets a second better chance at higher level, I would put a second talent in that would have to have better chances that would go into effect in addition to the original talent.
getDamage = function(self, t) return self:combatTalentWeaponDamage(t, 0.5, 0.9) + getStrikingStyle(self, dam) end,
counterchance = function(self, t) return self:combatLimit(self:getTalentLevel(t) * (5 + self:getCun(5, true)), 100, 0, 0, 50, 50) end, --Limit < 100%
getCounterAttacks = function(self, t) return self:combatStatScale("cun", 1, 2.24) end,
(though I've seen it say it goes over 100% despite what that says).
So, what do the numbers mean, one after another? If I want to change percent chance?
return ([[When you avoid a melee blow from an adjacent foe, you have a %d%% chance to get a free, automatic attack against the attacker for %d%% damage, up to %0.1f times per turn.
What is %d%% mean and how do I change it?
For example, if character starts with chance to counterattack and then gets a second better chance at higher level, I would put a second talent in that would have to have better chances that would go into effect in addition to the original talent.