Job delay

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

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

Malchar
Posts: 398
Joined: Wed, 7. Apr 21, 00:56
x4

Job delay

Post by Malchar »

Hi

Rookie here.

Like players are stronger with time, I tried to also reinforce xenons with time, using like it was adviced to me, here, the start time pararm. However it failed.

Below how I scripted it. Did I made a mistake or is it time start that dont works ? The job currently works but start immediatly when game is launch. I know a other solution exist with md, but I m a bit relunctant to use it. Thanks


<job id="xenon_destroyer_taskforce5" name="{20204,5201}">
<modifiers commandeerable="true"/>
<orders>
<order order="Patrol" default="true">
<param name="range" value="class.zone"/>
</order>
</orders>
<category faction="xenon" tags="[factionlogic, military, destoyer]" size="ship_xl"/>
<quota galaxy="4" maxgalaxy="4" cluster="4"/>
<time start="432000" interval="60"/>
<location class="galaxy" macro="xu_ep2_universe_macro" faction="xenon" relation="self" comparison="exact" matchextension="false"/>
<environment buildatshipyard="true"/>
<ship>
<select faction="xenon" tags="[military, destroyer]" size="ship_xl"/>
<owner exact="xenon" overridenpc="true"/>
</ship>
<subordinates>
<subordinate job="xenon_destroyer_escort_xl"/>
<subordinate job="xenon_destroyer_escort_xl"/>
</subordinates>
</job>
Mysterial
Posts: 661
Joined: Wed, 6. Nov 02, 20:31
x4

Re: Job delay

Post by Mysterial »

Did you test by starting a new game? I haven't used it and don't know for sure if it works (although Egosoft is using it in a few spots) but if it does work the start time will be from game start.
Malchar
Posts: 398
Joined: Wed, 7. Apr 21, 00:56
x4

Re: Job delay

Post by Malchar »

Yes I tested many time with fresh new games with same results each time.
Aristagoras
Posts: 1
Joined: Sun, 30. Mar 25, 18:52

Re: Job delay

Post by Aristagoras »

Hi, in line 8 there's a typo. Should problably be destroyer, not destoyer. Hope that helps. First post ;)
Malchar
Posts: 398
Joined: Wed, 7. Apr 21, 00:56
x4

Re: Job delay

Post by Malchar »

Thank and welcome. Mistyping is usual with me and caused many trouble. However I have many other jobs implementing carriers or battleships without syntax problem and all end in the same way. Job works but start immediatly ignoring delay.
I sometime doubt time delay really works.
Mysterial
Posts: 661
Joined: Wed, 6. Nov 02, 20:31
x4

Re: Job delay

Post by Mysterial »

You can always do it manually by starting it deactivated and activating with a simple MD script.

Return to “X4: Foundations - Scripts and Modding”