Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Time Capsule (How-to Library) » "How does it work?" Part 8: Skill Checks
Re: "How does it work?" Part 8: Skill Checks[message #204906] Thu, 25 December 2008 20:26 Go to previous messageGo to previous message
BirdFlu is currently offline BirdFlu

 
Messages:438
Registered:September 2007
Location: Lampukistan
the formula
iSkill = (iSkill + 100 * (iSkill / 25) ) / (iSkill / 25 + 1);

can be transformed into this
 iSkill = (125 * iSkill) / (25 + iSkill);

And this version doesn't have any serious type conversion errors, because (125 * iSkill) is way larger than (25 + iSkill), for iSkill \in {0,100}.

Basically the function is "y = x * f(x)", with f(x) = 125/(25+x) and it looks like this.

http://img338.imageshack.us/img338/5210/funchr2.png

So you take the original value X and modify it with a value M that depends on X. For small X that modifying value M is large ( M = 5.0 for X = 0)
and for large X that value M is small ( M = 1.0 for X = 100). So, for X = 100 the modifier leaves X unchanged.
For X = 50 you still have a modifier of around +60 Percent.

Report message to a moderator

Master Sergeant
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: "How does it work?" Part 1: Bullet Impact
Next Topic: "How does it work?" Part 5: Melee Combat Chance-to-Hit
Goto Forum:
  


Current Time: Mon Dec 02 09:01:56 GMT+2 2024

Total time taken to generate the page: 0.01132 seconds