Difference between revisions of "Talk:Combat damage h.nss"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Created page with '// Exploit Weakness: Backstab Damage + max(CUN-10,0) / 3.0 // ------------------------------------------------------------------------- if (HasAbility(oAttacker,ABILITY_...')
 
(No difference)

Latest revision as of 22:10, 28 October 2009

// Exploit Weakness: Backstab Damage + max(CUN-10,0) / 3.0

   // -------------------------------------------------------------------------
   if (HasAbility(oAttacker,ABILITY_TALENT_EXPLOIT_WEAKNESS))
   {
       float fBase = MaxF(0.0,(GetAttributeModifier(oAttacker,PROPERTY_ATTRIBUTE_CUNNING)/3.0)) ;
       float fMod = MaxF(0.2,RandomFloat());
       fDamage += (fBase * fMod);

________________________________

If Exploit Weakness adds (CUN-10)/3 damage to backstabs, what's the reason for the fMod variable?

Sorry if I misunderstood the script, some elements are new to me here.