[MOD] NPCs Gain XP

The place to discuss scripting and game modifications for X Rebirth.

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

oliverjanda
Posts: 309
Joined: Sun, 14. Feb 10, 17:47
xr

[MOD] NPCs Gain XP

Post by oliverjanda » Sat, 7. Mar 15, 12:02

Employees slowly gain experience.

Details:
Each hour all your employees have the chance to improve one random skill by 1 star.
The maximum reachable skill level is 4.
You have to earn the fifth star vanilla style (virtual seminar).

Steam link: http://steamcommunity.com/sharedfiles/f ... earchtext=

Thanks to:
*w.evans
*UniTrader
*lubatomy
*YorrickVander
*wysiwyg

Version:
*0.9

Known issues:
*None.

Mod Incompatibilities:
*None.

X:RB Version
*working for 3.2, 3.5
*should work with all other versions of the game as well

Savegame compatible:
*Yes

Future work:
*Balancing.
*I might change the mod so that employees have to actually do something to imrpove their skills.
E.g. enigneers would have to repair a certain amount of components/hull points to gain the next level.


Feedback and bugreports are welcome.
Last edited by oliverjanda on Thu, 12. Mar 15, 18:49, edited 4 times in total.

Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp » Sat, 7. Mar 15, 12:38

Sounds great, and the 4* cap is a nice touch. Particularly for someone like me that doesn't fancy the 5* Mod.

Thanks!

w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans » Sat, 7. Mar 15, 13:01

It's out! Cool! Thanks!

w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Re: [MOD] NpcsGainXp

Post by w.evans » Sat, 7. Mar 15, 13:07

oliverjanda wrote:Each hour all your employees have the chance to improve one random skill by 1 star.
Just to clarify: completely random? So a fighter pilot can, for example, gain a skill point in Science?

User avatar
Tamina
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 4550
Joined: Sun, 26. Jan 14, 09:56

Post by Tamina » Sat, 7. Mar 15, 14:20

When every employee starts with 0 stars, then it needs 28hours to max (4*) everything?
Can I lower this value somehow?

Code: Select all

Und wenn ein Forenbösewicht, was Ungezogenes spricht, dann hol' ich meinen Kaktus und der sticht sticht sticht.
  /l、 
゙(゚、 。 7 
 l、゙ ~ヽ   / 
 じしf_, )ノ 

Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp » Sat, 7. Mar 15, 15:23

Each hour there is a chance of a level-up so duration will be scaled up by the chance.

oliverjanda
Posts: 309
Joined: Sun, 14. Feb 10, 17:47
xr

Re: [MOD] NpcsGainXp

Post by oliverjanda » Sat, 7. Mar 15, 16:04

w.evans wrote:
oliverjanda wrote:Each hour all your employees have the chance to improve one random skill by 1 star.
Just to clarify: completely random? So a fighter pilot can, for example, gain a skill point in Science?
Yes, I wanted to keep the first version as simple and generic as possible.

Tamina wrote:When every employee starts with 0 stars, then it needs 28hours to max (4*) everything?
Can I lower this value somehow?
It will actually take longer.
You can loger this value: checkinterval="1h"

Sparky Sparkycorp wrote:Each hour there is a chance of a level-up so duration will be scaled up by the chance.
Indirectly, yes. As I choose the skill randomly, there is a chance I choose one that's already at 4 or 5 stars and then nothing happens. The more 4s and 5s a character has the higher the chance that nothing happens is.
Last edited by oliverjanda on Sat, 7. Mar 15, 16:12, edited 2 times in total.

User avatar
YorrickVander
Posts: 2702
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander » Sat, 7. Mar 15, 16:05

Good job mate :)
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Re: [MOD] NpcsGainXp

Post by w.evans » Sat, 7. Mar 15, 17:29

oliverjanda wrote:
w.evans wrote:
oliverjanda wrote:Each hour all your employees have the chance to improve one random skill by 1 star.
Just to clarify: completely random? So a fighter pilot can, for example, gain a skill point in Science?
Yes, I wanted to keep the first version as simple and generic as possible.
Cool! Now that there's a way to increase non-primary skills, we can use them for stuff. Been wanting to play around with captains' and defence officers' combat skill.

Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp » Sat, 7. Mar 15, 18:19

Thanks for the duration clarification.

User avatar
werewolves?
Posts: 1166
Joined: Tue, 31. Jan 12, 00:58
x4

Post by werewolves? » Sat, 7. Mar 15, 20:53

This is cool, it doesn't seem like a cheat either.

D.O.S.
Posts: 403
Joined: Wed, 6. Nov 02, 20:31
x4

Post by D.O.S. » Sun, 8. Mar 15, 21:39

werewolves? wrote:This is cool, it doesn't seem like a cheat either.
Same here :lol:
Thanks oliverjanda for this mod
OS:MS Windows 10 Pro x64 / Cpu: AMD-FX Piledriver 8350 @4.0Ghz / Mb:GA-990FXA-UD3 / Memory:16Gb DDR3 Crucial Ballistix Tactical @1866
Gpu:Gigabyte Nvidia 770GTX 4GB GDDR5 / Storage:Crucial RealSSD M4 128GB System, WD Caviar Green 2TB HD Data & Games / Display:24" Asus VG248 1920 x 1080 @144Hz + Nvidia 3D Vision Kit
Input Devices:Razer Deathstalker / Razer Oruoboros / Thrustmaster Hotas Warthog / BroadBand:EE 4GEE MobileBroadBand (50Gb PCM)

oliverjanda
Posts: 309
Joined: Sun, 14. Feb 10, 17:47
xr

Post by oliverjanda » Mon, 9. Mar 15, 15:01

D.O.S. wrote:
werewolves? wrote:This is cool, it doesn't seem like a cheat either.
Same here :lol:
Thanks oliverjanda for this mod
Thanks for testing my mod in 3.5b3

@all thanks

Rubini
Posts: 452
Joined: Mon, 7. May 07, 05:17
xr

Post by Rubini » Mon, 9. Mar 15, 16:11

Hi oliverjanda,

As a suggestion, some random addition to the code will make it yet better. Something like this:

Code: Select all

<set_value name="$chance" min="1" max="3"/>
<do_if value="$npc.skill.{$chosenSkill} lt 4 and $chance == 2">
This way each npc will have an individual chance of 33% per 1h cycle.
Cheers!

oliverjanda
Posts: 309
Joined: Sun, 14. Feb 10, 17:47
xr

Post by oliverjanda » Mon, 9. Mar 15, 16:29

Rubini wrote:Hi oliverjanda,

As a suggestion, some random addition to the code will make it yet better. Something like this:

Code: Select all

<set_value name="$chance" min="1" max="3"/>
<do_if value="$npc.skill.{$chosenSkill} lt 4 and $chance == 2">
This way each npc will have an individual chance of 33% per 1h cycle.
Cheers!
Hi,
thanks for your suggestion. I'm considering it when I have finished my other 2 mod ideas.
There is already some randomness in choosing the skill.
If the chosen skill is already at 4, there will be no improvement.
Thus, gaining the last star is much more difficult than the first one.
A character without 4 star abilities has a 100% chance of leveling up at the next cylce. A character that has only 5 star abilities but one 3 star ability has a chance of about 15%.

wwdragon
Posts: 3746
Joined: Mon, 1. Oct 07, 02:18
x4

Post by wwdragon » Tue, 17. Mar 15, 06:00

I like the idea of training my guys skills automatically. 8)

I don't like that it's limited to 4 stars; maybe make it changable in your config?
I dislike the training non-primary skills; they'd really just be doing their jobs on my ship, not the rest of it. :roll:
Editing posts since long before I remember.

oliverjanda
Posts: 309
Joined: Sun, 14. Feb 10, 17:47
xr

Post by oliverjanda » Tue, 17. Mar 15, 09:21

wwdragon wrote:I like the idea of training my guys skills automatically. 8)

I don't like that it's limited to 4 stars; maybe make it changable in your config?
I dislike the training non-primary skills; they'd really just be doing their jobs on my ship, not the rest of it. :roll:
Thanks for your feedback!
I did it this way because it was the easiest way to do it.
I may change it to gaining only the primary skills and/or to actually have to earn the skills someday.

I do not intend to let them increase to 5 stars as that would make things too easy. If you want your employees trained to 5 stars you can take a look a my virtual seminar craftig mod:
http://forum.egosoft.com/viewtopic.php?t=378237

wwdragon
Posts: 3746
Joined: Mon, 1. Oct 07, 02:18
x4

Post by wwdragon » Tue, 17. Mar 15, 16:43

oliverjanda wrote:
wwdragon wrote:I like the idea of training my guys skills automatically. 8)

I don't like that it's limited to 4 stars; maybe make it changable in your config?
I dislike the training non-primary skills; they'd really just be doing their jobs on my ship, not the rest of it. :roll:
Thanks for your feedback!
I did it this way because it was the easiest way to do it.
I may change it to gaining only the primary skills and/or to actually have to earn the skills someday.

I do not intend to let them increase to 5 stars as that would make things too easy. If you want your employees trained to 5 stars you can take a look a my virtual seminar craftig mod:
http://forum.egosoft.com/viewtopic.php?t=378237
Interesting. I'll have to remember that one for later.
Pitty I havn't been able to win a single skill book the entire time I've been playing though. :roll:
Editing posts since long before I remember.

Scoob
Posts: 10036
Joined: Thu, 27. Feb 03, 22:28
x4

Post by Scoob » Tue, 17. Mar 15, 18:01

Maybe have it so they earn appropriate, skills doing their jobs but the player has to pay to "promote" them - though an option for automatic promotions would be needed when you have 100's of staff like many of us have late-game :)

Also, Captains actively flying around, Defence Officers shooting stuff and Engineers repairing should, ideally, see them gain experience faster. Just sitting idly in a spare ship parked up somewhere should really contribute to their level - obviously a much more challenging coding task of course!

Great idea though, and I think something ES originally intended (or at least spoke about) in the dim and distant past before release.

Scoob.

oliverjanda
Posts: 309
Joined: Sun, 14. Feb 10, 17:47
xr

Post by oliverjanda » Wed, 25. Mar 15, 10:21

added a message how many npc gained skills

Post Reply

Return to “X Rebirth - Scripts and Modding”