[Request] Ship and station maintenance

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

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

Post Reply
Falcrack
Posts: 4911
Joined: Wed, 29. Jul 09, 00:46
x4

[Request] Ship and station maintenance

Post by Falcrack » Sun, 29. Aug 21, 01:21

Would it be possible to make a mod which charges the player a regular maintenance fee every hour for ships and stations? Basically it would work like this:

1. Every hour, mod checks the total value of all player ships and stations, and subtracts 1% (or some user defined amount) of that total from the player account. The total value of ships and stations can be seen under "player information", subheading "empire overview"
2. If the player does not have the required amount in the player account to pay the maintenance fee, then the deficit is carried over and added to the next time a maintenance fee is charged, and in addition, morale of all hired crew drops by 1 star.
3. If morale of crew members drops below 0 stars, they quit (captains of ships excluded).

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

Re: [Request] Ship and station maintenance

Post by user1679 » Sun, 29. Aug 21, 09:17

Falcrack wrote:
Sun, 29. Aug 21, 01:21
Would it be possible to make a mod which charges the player a regular maintenance fee every hour for ships and stations? Basically it would work like this:

1. Every hour, mod checks the total value of all player ships and stations, and subtracts 1% (or some user defined amount) of that total from the player account. The total value of ships and stations can be seen under "player information", subheading "empire overview"
2. If the player does not have the required amount in the player account to pay the maintenance fee, then the deficit is carried over and added to the next time a maintenance fee is charged, and in addition, morale of all hired crew drops by 1 star.
3. If morale of crew members drops below 0 stars, they quit (captains of ships excluded).
Landlord - Station Upkeep and Taxes might be of interest.

I think having crew lose 1 star and eventually quit is a bit too harsh. It takes a long time to train crew and if you don't use a mod that changes their price, some crew can cost a lot to hire.

tezboyes
Posts: 18
Joined: Tue, 1. Apr 08, 20:52
x4

Re: [Request] Ship and station maintenance

Post by tezboyes » Sun, 29. Aug 21, 18:00

There's also a mod for ship damage/degradation.
And one about paying your crew.

That lot together covers quite a lot.

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

Re: [Request] Ship and station maintenance

Post by user1679 » Tue, 31. Aug 21, 08:27

tezboyes wrote:
Sun, 29. Aug 21, 18:00
There's also a mod for ship damage/degradation.
And one about paying your crew.

That lot together covers quite a lot.
Wear and Tear (by kuertee) (I use this one)
Getting Paid (haven't tried this one)

Post Reply

Return to “X4: Foundations - Scripts and Modding”