[HELP] Finding the maximum storage of ware on station

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

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

Post Reply
Vectorial1024
Posts: 224
Joined: Mon, 30. Jul 18, 04:16
x4

[HELP] Finding the maximum storage of ware on station

Post by Vectorial1024 » Thu, 2. Aug 18, 16:19

Hi there all,

I am working on a new mod, but have found some problems.

I want to know the maximum "allocated" storage of a certain ware of a station. I hope to know it either by external calculation, or by some in-game MD script.

For example, suppose there is an Energy Array. How much Food Rations will the station be allowed to store before it shows that "Food Rations storage limit exceeded"?

Is this possible?
The future awaits.

X4 Foundations mods:
Civilian Fleets: Managing your civilian ships has never been easier.
Station Logistics: Managing your station networks has never been easier.
Scrap Delivery Coordination: No more starving scrap processors.

User avatar
Marvin Martian
Posts: 3547
Joined: Sun, 8. Apr 12, 09:40
x4

Post by Marvin Martian » Thu, 2. Aug 18, 16:36

$object.cargo.{ware.foodrations}.target - $object.cargo.{ware.foodrations}.count

but to take care of running deliveries i would suggest to take actuall trade from station what amount is offered

Vectorial1024
Posts: 224
Joined: Mon, 30. Jul 18, 04:16
x4

Post by Vectorial1024 » Fri, 3. Aug 18, 05:00

Thanks for the help!
The future awaits.

X4 Foundations mods:
Civilian Fleets: Managing your civilian ships has never been easier.
Station Logistics: Managing your station networks has never been easier.
Scrap Delivery Coordination: No more starving scrap processors.

Post Reply

Return to “X Rebirth - Scripts and Modding”