X4: Foundations

X4: Foundations

Entering System: X4 Workshop
The easiest way to find, install and manage extensions for X4: Foundations. Share your work with the community and see what others have created.
Learn More
SRGBread 15 Feb, 2024 @ 9:28am
Need some modding help with an md file
<?xml version="1.0" encoding="utf-8"?>
<mdscript name="Setup_Apoc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd">
<cues>
<cue name="xenpo_defence_cluster_01_sector001Destruction" checktime="10s" onfail="cancel">
<conditions>
<event_object_destroyed godstationentry="'xenpo_defence_cluster_01_sector001'" space="player.galaxy" />
</conditions>
<delay min="if player.debug then 1min else 1min" />
<actions>
<set_job_active activate="true" job="'terran_carrier_defence_xl_test'"/>
</actions>
</cue>
</cues>
</mdscript>


so this is the file im trying to figure out how to get it to work how i want what i want is when a xenon station is destroyed in a certain sector it activates a job what am i doing wrong first time im trying to build md files its prob a easy fix any help is appeciated
< >
Showing 1-1 of 1 comments
Ketraar 15 Feb, 2024 @ 12:23pm 
<cue name="Setup"> <actions> <find_station name="$XenonStation" godproductionentry="'xenpo_defence_cluster_01_sector001'" space="player.galaxy"/> </actions> <cues> <cue name="SetJobs"> <conditions> <event_object_destroyed object="$XenonStation"/> </conditions> <delay min="1min" /> <actions> <set_job_active activate="true" job="'terran_carrier_defence_xl_test'"/> </actions> </cue> </cues> </cue>
Something like this. You cant just use anything as condition, you need to be editing the MD files within the same folder as the schema file which wil give you the options nodes have.

MFG

Ketraar
Last edited by Ketraar; 15 Feb, 2024 @ 12:24pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50