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 #204786]
|
Wed, 24 December 2008 07:32
|
|
Headrock |
|
Messages:1760
Registered:March 2006 Location: Jerusalem |
|
|
Due to the obscurity of the formula (even the code comments are cryptic about its nature), it's quite possible that it doesn't work the way it's supposed to.
In fact, here's the code:
// Ok, this is really damn easy, so skew the values...
// e.g. if calculated skill is 84, skewed up to 96
// 51 to 84
// 22 stays as is
iSkill = (iSkill + 100 * (iSkill / 25) ) / (iSkill / 25 + 1);
Looks like you read it correctly, but I couldn't tell you why it gives the results that you say it does
EDIT: Oh, please note that due to the way C++ works, there are several automatic conversions to integer within that function, of course.
[Updated on: Wed, 24 December 2008 07:34] by Moderator Report message to a moderator
|
|
|
|
|
|
"How does it work?" Part 8: Skill Checks
By: Headrock on Wed, 08 October 2008 15:40
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: Headrock on Wed, 08 October 2008 15:42
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: Panpiper on Wed, 08 October 2008 16:40
|
|
|
Re: "How does it work?" Part 8: Skill Checks
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: Headrock on Wed, 08 October 2008 16:56
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: cdunigan on Wed, 08 October 2008 17:31
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: Headrock on Wed, 08 October 2008 19:13
|
|
|
Re: "How does it work?" Part 8: Skill Checks
|
|
|
Re: "How does it work?" Part 8: Skill Checks
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: Headrock on Wed, 24 December 2008 07:32
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: Kaerar on Wed, 24 December 2008 08:09
|
|
|
Re: "How does it work?" Part 8: Skill Checks
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: Kaerar on Thu, 25 December 2008 12:33
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: Headrock on Thu, 25 December 2008 15:05
|
|
|
Re: "How does it work?" Part 8: Skill Checks
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: Headrock on Thu, 25 December 2008 16:59
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: BirdFlu on Thu, 25 December 2008 20:26
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: Headrock on Fri, 26 December 2008 01:53
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: BirdFlu on Fri, 26 December 2008 02:54
|
|
|
Re: "How does it work?" Part 8: Skill Checks
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: BirdFlu on Fri, 26 December 2008 12:12
|
|
|
Re: "How does it work?" Part 8: Skill Checks
By: BirdFlu on Fri, 26 December 2008 12:21
|
Goto Forum:
Current Time: Mon Dec 02 08:42:38 GMT+2 2024
Total time taken to generate the page: 0.01284 seconds
|