How is "skill" actually calculated?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

user1679
Posts: 853
Joined: Fri, 20. Jul 18, 23:20

How is "skill" actually calculated?

Post by user1679 » Sun, 30. Jul 23, 20:54

Trying to help a modder troubleshoot:

I have a pilot that has 2-stars piloting, 2-stars morale and 2-stars under "skill" on the ship orders screen. The problem is I can't assign global orders that require 2-stars. I unpacked my save and here are her stats:

skill type="boarding" value="3"
skill type="engineering" value="7"
skill type="management" value="1"
skill type="morale" value="6"
skill type="piloting" value="6"

I also looked at the requirements of the default order added by the mod and it says:

skill min="45"

Is that "skill min" simply the sum of all the individual skills? That doesn't seem right because if the requirement is "2 stars skill", my pilot has that already.

Some screens:

IMG_PILOT_SKILLS
IMG_PILOT_TOTAL_SKILL

DeadAirRT
Posts: 1037
Joined: Fri, 25. Jan 19, 03:26
x4

Re: How is "skill" actually calculated?

Post by DeadAirRT » Sun, 30. Jul 23, 21:06

Skill is 0-15
Skill min in ai script is 0-100 and is the weighted outcome for the position type (pilot manager etc). You can find the weighting of the skills in one of the files in libraries.

100 == 15 == 5 stars
40 == 6 == 2 stars
20 == 3 == 1 star

user1679
Posts: 853
Joined: Fri, 20. Jul 18, 23:20

Re: How is "skill" actually calculated?

Post by user1679 » Mon, 31. Jul 23, 05:59

DeadAirRT wrote:
Sun, 30. Jul 23, 21:06
Skill is 0-15
Skill min in ai script is 0-100 and is the weighted outcome for the position type (pilot manager etc). You can find the weighting of the skills in one of the files in libraries.

100 == 15 == 5 stars
40 == 6 == 2 stars
20 == 3 == 1 star
Thanks, so it appears a min skill of 45 is what's throwing things off. Technically from the screenshots I meet the requirements (2 stars) and from my save file, both piloting and morale are 6 but that's actually only 40... the mod seems like it's looking for "2 plus a little" stars (45) instead of 2 stars (40).

jan12342203
Posts: 65
Joined: Sat, 14. May 16, 22:13
x4

Re: How is "skill" actually calculated?

Post by jan12342203 » Wed, 2. Aug 23, 13:05

you guys know the file and the part in the file where this skill stuff is defined?

Return to “X4: Foundations - Scripts and Modding”