Difference between revisions of "GetEffectiveSkill"

49 bytes added ,  13:48, 20 March 2011
it's fActorLuckSkillMult, not iActorLuckSkillMult
imported>Tejón
imported>Low Post
(it's fActorLuckSkillMult, not iActorLuckSkillMult)
 
(3 intermediate revisions by 2 users not shown)
Line 26: Line 26:
  let callerSkill := caller.GetAVC skillAVC
  let callerSkill := caller.GetAVC skillAVC
  let value := caller.GetAV Luck
  let value := caller.GetAV Luck
  let value *= GetGameSetting iActorLuckSkillMult
  let value *= GetGameSetting fActorLuckSkillMult
  let value += GetGameSetting iActorLuckSkillBase
  let value += GetGameSetting iActorLuckSkillBase
  let value += callerSkill
  let value += callerSkill
  if value < 0
  if value < 0
  let callerSkill := 0
  let callerSkill := 0
  elseif value > 100
  elseif Eval value > 100 && !IsPluginInstalled "OBSE_Elys_Uncapper"
  if callerSkill < 100
  if callerSkill < 100
  let callerSkill := 100
  let callerSkill := 100
  endif
  endif
; Note: if the unmodified skill is over 100, it remains unmodified!
; Note: if the unmodified skill is over 100, it remains unmodified!
  else
  else
  let callerSkill := floor value
  let callerSkill := floor value
Anonymous user