[Help - Solved] MD Objects & Variables

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

dillpickle
Posts: 1159
Joined: Mon, 3. Nov 08, 14:25
x3tc

Post by dillpickle » Thu, 20. Mar 14, 22:04

Createse wrote:I'll need to use a different variable for marines though, {object.marines.maxcount@object} doesn't work.
Are you sure? I had twenty marines added to both the Aran and the Ozias, admittedly only tested a couple of times.

Though you might as well put it back in with the ship creation part with:

Code: Select all

<ware typename="SS_WARE_SOLDIER_1" exact="20" comment="Mercenary" />
As it's a fixed (hard coded) amount that each ship type can carry...

User avatar
Createse
Posts: 58
Joined: Fri, 20. Mar 09, 23:28
x4

Post by Createse » Thu, 20. Mar 14, 22:14

dillpickle wrote:Are you sure? I had twenty marines added to both the Aran and the Ozias, admittedly only tested a couple of times.
Yep, no marines were spawned.

Code: Select all

<reward_player>
    <property>
        <ship typename="SS_SH_GO_MSY" name="this.Aran">
    </property>
</reward_player>
<add_cargo object="this.Aran">
    <ware typename="SS_WARE_SOLDIER_1" exact="{object.marines.maxcount@this.Aran}" />
</add_cargo>
dillpickle wrote:Though you might as well put it back in with the ship creation part . . . As it's a fixed (hard coded) amount that each ship type can carry
I agree. The rest of my cargo is hardcoded too, in the XML.

Post Reply

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