MD questions

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Aven Valkyr
Posts: 228
Joined: Thu, 13. Mar 14, 23:52
x3ap

Post by Aven Valkyr »

you guys have been so helpful and I really appreciate it but I now have more questions lol. I would like to note though that I am learning and things are coming together :) Once I get a handle on a few of the core items it's just a matter of copy/paste and change some values and the mod will be done.

So here is my next question. In a cue I've created I've got 2 sub-cue's. I'm trying to trigger the 2nd cue from the 1st one being completed. However even though at the end of my first cue I have "complete_cue" and my second cue in the check "cue_complete" they both still want to load at the same time when I get to the trigger mechanism. Here's a shortened example of my code:

<cue name="spawnships">
..<action>
....<create spawn marker>
..</action>
..<cues>
....<cue name="ships">
......<condition>
........<player ship is in position>
......</condition>
......<action>
........<spawn some ships>
......</action>
....</cue>
....<cue>
......<complete_cue cue="spawnships">
....</cue>
..</cues>
<cue name="spawnmoreships">
..<condition>
....<cue_complete cue="spawnships">
..</condition>
..<action>
....<spawn ships which the player can capture>
..</action>
</cue>

This setup doesn't seem to be working. Both cues, which are on the same level of eachother, seem to activate at the same time. I don't understand why since I have the complete_cue tag set. I've looked at variables and there doesn't seem to be a "true" option. So I'm thinking it is what it is. And it's not working. So is there a workaround to this?
Aven Valkyr
Posts: 228
Joined: Thu, 13. Mar 14, 23:52
x3ap

Post by Aven Valkyr »

UPDATE: OMFG I finally did it lol. Got the trigger file to work thanks to your guys' help :) Then I was having some mad problems with the file I was trying to load. Half my problems were with syntax errors. I didn't realize everything was case sensitive. So on triggering the file, I have a marker that spawns and a message saying I've been rewarded with some ships. I am to fly to the position.

On flying to the position 2 escort ships spawn. I get a message to wait a few moments and my reward will be warped in. The reward warps in, and they say "well see ya later" and the escorts warp out and are destroyed afterwords. Awwweeesssooommme :) Now I'm going to copy/paste the hell out of this and set up all the various rewards for completing the missions. Some are ships, some are items, some are even factories. Once I have that all done, I will be on to making the missions themselves.

Interacting with my agent that I've created is going to be another huge problem but one that I won't have to face for a while. It's definitely going to be a headache since talking to the agent will bring up a window with some options that need to be selected. The options will only be available after the player has achieved a certain fightrank/notoriety. But with the success of this one file, I have successfully completed a huge portion of the mod. It will take no time at all now to set up the rewards system.

Thanks for you help guys and I'm sure I will have more questions soon :)

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”