Question: Set max skill level?

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

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

ApoxNM
Posts: 783
Joined: Wed, 5. Dec 18, 06:17
x4

Question: Set max skill level?

Post by ApoxNM »

Hi guys,

I am trying to change my mods a bit to get the game I want.

In which files (and lines) can I change the max skill level of recruitable NPCs on stations?

Are the levels defined by the roles. xml? Not quite sure what the values mean or I have no reference (for max values).

How can I change th skill levels of all the NPCs that spawn on stations?

Thanks in advance!
User avatar
Moonrat
Posts: 1354
Joined: Sun, 20. Apr 08, 16:20
x4

Re: Question: Set max skill level?

Post by Moonrat »

This is the mod that I use to up the number of NPCs in stations with more skills...

https://www.nexusmods.com/x4foundations/mods/27

In the "..\libraries\characters.xml" file you'll see entries such as this ...

Code: Select all

<skill type="piloting" min="3" max="9"/>
Every 3 increments gives you 1 star, so the above would generate a pilot between 1 and 3 stars and everything in between
Image
IEX Download Statistics - LUVi / XRMi ( 3115 / 5415 )
X4 Crexit 324 ; X4 Encounters 3193 (STEAM Unique/Current 6341/3412)
ApoxNM
Posts: 783
Joined: Wed, 5. Dec 18, 06:17
x4

Re: Question: Set max skill level?

Post by ApoxNM »

Moonrat wrote: Thu, 10. Jan 19, 20:55 This is the mod that I use to up the number of NPCs in stations with more skills...

https://www.nexusmods.com/x4foundations/mods/27

In the "..\libraries\characters.xml" file you'll see entries such as this ...

Code: Select all

<skill type="piloting" min="3" max="9"/>
Every 3 increments gives you 1 star, so the above would generate a pilot between 1 and 3 stars and everything in between
Thank you for the hint, after fiddling around with the files and restarting the game a hundret times I figured it out.

So can I create as many new characters as I want? Is there a way to set their spawn frequency? I would like mostly 1-2 star pilotes and a rare and occasional 3-4 star pilot on certain stations.
User avatar
Moonrat
Posts: 1354
Joined: Sun, 20. Apr 08, 16:20
x4

Re: Question: Set max skill level?

Post by Moonrat »

This other Nexus mod increases the numbers...
Since I've been using it in combination with the other Nexus mod above there are definitely more NPCs milling about making stations more life-like... this is usually at the lower levels plus my FPS hasn't taken a dive so it's a big :thumb_up: :)

I wanted to achieve more or less exactly what you desire so I use both and I've hacked the "\libraries\characters.xml" file within "Various NPCs" so that 3-star NPCs appear sometimes. By upping the "max" value further you could have 4-star and 5-star characters also appearing... I might have to do this soon if Egosoft don't fix or give a clue how the levelling works.
Image
IEX Download Statistics - LUVi / XRMi ( 3115 / 5415 )
X4 Crexit 324 ; X4 Encounters 3193 (STEAM Unique/Current 6341/3412)

Return to “X4: Foundations - Scripts and Modding”