Changing building requirements for Terran ships

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

Post Reply
Jonzac
Posts: 296
Joined: Sun, 27. Feb 05, 22:59
x3tc

Changing building requirements for Terran ships

Post by Jonzac » Fri, 5. Dec 14, 08:14

Cana you change the building mats that the player HQ needs for Terran ships from rastor oil and teladium to hull plates and c-rations

User avatar
RoverTX
Posts: 1436
Joined: Wed, 16. Nov 11, 18:37
x4

Post by RoverTX » Fri, 5. Dec 14, 16:32

Yes you can!

When you look at the hq.xml file you will notice that nividim is set to only be required on Khaak ships. You could do the same thing with hull plating for terran and atf ships, you sperate more than one race with a | in the xml attrbute. You can then make the other resources only apply to every other race. I do something similar in my game. Makes things more realistic.

User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle » Fri, 5. Dec 14, 23:18

Cool.

Do you know how the factor value works? It looks like "less is more", but I was wondering if you (or anyone) had more details on that?

User avatar
RoverTX
Posts: 1436
Joined: Wed, 16. Nov 11, 18:37
x4

Post by RoverTX » Tue, 9. Dec 14, 08:13

Sorry got distracted.

Nope I don't sorry. All I did was change a few wares around.

Here is an example of some of what I did.

Code: Select all

    <!-- Teladianium -->
    <resource typename="SS_WARE_R255">
      <factor racemask="argon|boron|split|paranid|teladi|pirate|yaki|goner"  value="28333" primary="1" />
    </resource>
    <!-- Hull Plating -->
    <resource typename="SS_WARE_TR_TECH8">
      <factor racemask="terran|atf|xenon" value="28333" primary="1" />
    </resource>
    <!-- Nividium -->
    <resource typename="SS_WARE_NIVIDIUM2">
      <factor racemask="khaak" value="170000" primary="1" />
    </resource>
I basically just took what ES had done with the Nividium for Khaak ships and did the same for other races.

Post Reply

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