Enhancing Resources Dynamically

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

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

Post Reply
fargazer
Posts: 1
Joined: Tue, 13. Jul 21, 05:09
x4

Enhancing Resources Dynamically

Post by fargazer » Sun, 19. Sep 21, 06:48

Greetings all!

I know the approach needed to enhance / deplete static resources in a game before start, via region_definitions.xml and so on. Given the custom start editor that now exists, what I'd like to try is:
  • Check if the custom start has a operational HQ (no problem - I can do that)
  • If it is, use find_sector to determine where the custom HQ is located (no problem - I can do that too)
  • --> Tweak the resources in that sector <-- here's the rub
I saw somewhere in my research that changing resources on the map once started is impossible. Anyone have any thoughts how one might approach this? I'm doing my RTFM, but given how much poking I've been doing to figure things out, hearing about anyone's experience trying this - even hearing about approaches that didn't work - would save me some research time.

Post Reply

Return to “X4: Foundations - Scripts and Modding”