I've been trying to follow the Schema and Definitions for snippets like 'object.marines.maxcount@object' but I am unsure how to use these useful snippets in context. I also tried assigning a name to the objects beforehand and trying to reference them by name.
Please ignore the values placed in the relevant sections, these are just placeholders as the only time I've got this to work was when I used 'player.ship' as the object, but of course this made calculations based on the player's ship which isn't ideal, despite Egosoft using the same method for Yaki Insurgent and Humble Merchant starts.
Code: Select all
. . .
<do_when value="{player.gamestart}" exact="1">
<set_value name="Albion Prelude Link Plot" exact="1" />
<reward_player>
<notoriety>
<relation race="argon" operation="set" exact="neutral" mutual="1" />
<relation race="boron" operation="set" exact="neutral" mutual="1" />
<relation race="paranid" operation="set" exact="neutral" mutual="1" />
<relation race="split" operation="set" exact="neutral" mutual="1" />
<relation race="teladi" operation="set" exact="neutral" mutual="1" />
<relation race="goner" operation="set" exact="neutral" mutual="1" />
<relation race="pirate" operation="set" exact="neutral" mutual="1" />
<relation race="khaak" operation="set" exact="neutral" mutual="1" />
<relation race="xenon" operation="set" exact="neutral" mutual="1" />
<relation race="atf" operation="set" exact="neutral" mutual="1" />
<relation race="terran" operation="set" exact="neutral" mutual="1" />
<relation race="yaki" operation="set" exact="neutral" mutual="1" />
</notoriety>
<equipment>
<!-- Equipment -->
<ware typename="SS_WARE_BEAMING" exact="1" />
<ware typename="SS_WARE_BESTBUY" exact="1" />
<ware typename="SS_WARE_BESTSELL" exact="1" />
<ware typename="SS_WARE_BIOSCANNER" exact="1" />
<ware typename="SS_WARE_BOOST" exact="1" />
<ware typename="SS_WARE_LIFESUPPORT" exact="1" />
<ware typename="SS_WARE_ORECOLLECTOR" exact="1" />
<ware typename="SS_WARE_SCANNER2" exact="1" />
<ware typename="SS_WARE_SCANNER3" exact="1" />
<ware typename="SS_WARE_SPACEFLYCOLLECTOR" exact="1" />
<ware typename="SS_WARE_SW_CARRIER_1" exact="1" />
<ware typename="SS_WARE_SW_EXPLORE_1" exact="1" />
<ware typename="SS_WARE_SW_FIGHT_1" exact="1" />
<ware typename="SS_WARE_SW_FIGHT_2" exact="1" />
<ware typename="SS_WARE_SW_NAV_1" exact="1" />
<ware typename="SS_WARE_SW_NEW2" exact="1" />
<ware typename="SS_WARE_SW_NEW3" exact="1" />
<ware typename="SS_WARE_SW_NEW13" exact="1" />
<ware typename="SS_WARE_SW_PATROL_1" exact="1" />
<ware typename="SS_WARE_SW_SPECIAL_1" exact="1" />
<ware typename="SS_WARE_SW_SUPPLY_1" exact="1" />
<ware typename="SS_WARE_SW_TRADE_1" exact="1" />
<ware typename="SS_WARE_SW_TRADE_2" exact="1" />
<ware typename="SS_WARE_TECH231" exact="1" />
<ware typename="SS_WARE_TECH241" exact="1" />
<ware typename="SS_WARE_TECH242" exact="1" />
<ware typename="SS_WARE_TECH275" exact="1" />
<ware typename="SS_WARE_TECH276" exact="1" />
<ware typename="SS_WARE_TECH277" exact="1" />
<ware typename="SS_WARE_WARPING" exact="1" />
<!-- Inventory -->
<ware typename="SS_WARE_L_A" exact="1" />
<ware typename="SS_WARE_L_B" exact="1" />
<ware typename="SS_WARE_L_S" exact="1" />
<ware typename="SS_WARE_L_P" exact="1" />
<ware typename="SS_WARE_L_T" exact="1" />
<ware typename="SS_WARE_UNFOCUS_JUMP" exact="1" />
<!-- Shields -->
<ware typename="SS_SHIELD_D" exact="1" />
<!-- Upgrades -->
<ware typename="SS_WARE_TECH213" exact="{player.ship.equipment.SS_WARE_TECH213.maxcount}" />
<ware typename="SS_WARE_TECH246" exact="{player.ship.equipment.SS_WARE_TECH246.maxcount}" />
<ware typename="SS_WARE_TECH251" exact="{player.ship.equipment.SS_WARE_TECH251.maxcount}" />
</equipment>
<cargo>
<!-- Cargo -->
<ware typename="SS_WARE_ENERGY" exact="125" />
</cargo>
<property>
<ship typename="SS_SH_GO_MSY" name="aran">
<equipment>
<!-- Equipment -->
<ware typename="SS_WARE_BEAMING" exact="1" />
<ware typename="SS_WARE_BESTBUY" exact="1" />
<ware typename="SS_WARE_BESTSELL" exact="1" />
<ware typename="SS_WARE_BIOSCANNER" exact="1" />
<ware typename="SS_WARE_BOOST" exact="1" />
<ware typename="SS_WARE_LIFESUPPORT" exact="1" />
<ware typename="SS_WARE_ORECOLLECTOR" exact="1" />
<ware typename="SS_WARE_SCANNER2" exact="1" />
<ware typename="SS_WARE_SCANNER3" exact="1" />
<ware typename="SS_WARE_SPACEFLYCOLLECTOR" exact="1" />
<ware typename="SS_WARE_SW_CARRIER_1" exact="1" />
<ware typename="SS_WARE_SW_EXPLORE_1" exact="1" />
<ware typename="SS_WARE_SW_FIGHT_1" exact="1" />
<ware typename="SS_WARE_SW_FIGHT_2" exact="1" />
<ware typename="SS_WARE_SW_NAV_1" exact="1" />
<ware typename="SS_WARE_SW_NEW2" exact="1" />
<ware typename="SS_WARE_SW_NEW3" exact="1" />
<ware typename="SS_WARE_SW_NEW13" exact="1" />
<ware typename="SS_WARE_SW_PATROL_1" exact="1" />
<ware typename="SS_WARE_SW_SPECIAL_1" exact="1" />
<ware typename="SS_WARE_SW_SUPPLY_1" exact="1" />
<ware typename="SS_WARE_SW_TRADE_1" exact="1" />
<ware typename="SS_WARE_SW_TRADE_2" exact="1" />
<ware typename="SS_WARE_TECH231" exact="1" />
<ware typename="SS_WARE_TECH241" exact="1" />
<ware typename="SS_WARE_TECH242" exact="1" />
<ware typename="SS_WARE_TECH275" exact="1" />
<ware typename="SS_WARE_TECH276" exact="1" />
<ware typename="SS_WARE_TECH277" exact="1" />
<ware typename="SS_WARE_WARPING" exact="1" />
<!-- Shields -->
* * * * * * * * * <ware typename="SS_SHIELD_F" exact="{this.maxshieldcount}" />
<!-- Upgrades -->
* * * * * * * * * <ware typename="SS_WARE_TECH213" exact="{this.equipment.SS_WARE_TECH213.maxcount}" />
* * * * * * * * * <ware typename="SS_WARE_TECH246" exact="{this.equipment.SS_WARE_TECH246.maxcount}" />
* * * * * * * * * <ware typename="SS_WARE_TECH251" exact="{this.equipment.SS_WARE_TECH251.maxcount}" />
</equipment>
<cargo>
<!-- Cargo -->
<ware typename="SS_WARE_ENERGY" exact="2000" />
<ware typename="SS_WARE_FREIGHTDRONE" exact="150" />
<ware typename="SS_WARE_JUMPBEACON" exact="1000" />
<!-- Marines -->
* * * * * * * * * <ware typename="SS_WARE_SOLDIER_1" exact="{this.marines.maxcount}" />
</cargo>
</ship>
<ship typename="SS_SH_GO_TL" dockobject="{object@aran}" homebase="{object@aran}" name="ozias">
<equipment>
<!-- Equipment -->
<ware typename="SS_WARE_BEAMING" exact="1" />
<ware typename="SS_WARE_BESTBUY" exact="1" />
<ware typename="SS_WARE_BESTSELL" exact="1" />
<ware typename="SS_WARE_BIOSCANNER" exact="1" />
<ware typename="SS_WARE_BOOST" exact="1" />
<ware typename="SS_WARE_LIFESUPPORT" exact="1" />
<ware typename="SS_WARE_ORECOLLECTOR" exact="1" />
<ware typename="SS_WARE_SCANNER2" exact="1" />
<ware typename="SS_WARE_SCANNER3" exact="1" />
<ware typename="SS_WARE_SPACEFLYCOLLECTOR" exact="1" />
<ware typename="SS_WARE_SW_CARRIER_1" exact="1" />
<ware typename="SS_WARE_SW_EXPLORE_1" exact="1" />
<ware typename="SS_WARE_SW_FIGHT_1" exact="1" />
<ware typename="SS_WARE_SW_FIGHT_2" exact="1" />
<ware typename="SS_WARE_SW_NAV_1" exact="1" />
<ware typename="SS_WARE_SW_NEW2" exact="1" />
<ware typename="SS_WARE_SW_NEW3" exact="1" />
<ware typename="SS_WARE_SW_NEW13" exact="1" />
<ware typename="SS_WARE_SW_PATROL_1" exact="1" />
<ware typename="SS_WARE_SW_SPECIAL_1" exact="1" />
<ware typename="SS_WARE_SW_SUPPLY_1" exact="1" />
<ware typename="SS_WARE_SW_TRADE_1" exact="1" />
<ware typename="SS_WARE_SW_TRADE_2" exact="1" />
<ware typename="SS_WARE_TECH231" exact="1" />
<ware typename="SS_WARE_TECH241" exact="1" />
<ware typename="SS_WARE_TECH242" exact="1" />
<ware typename="SS_WARE_TECH275" exact="1" />
<ware typename="SS_WARE_TECH276" exact="1" />
<ware typename="SS_WARE_TECH277" exact="1" />
<ware typename="SS_WARE_WARPING" exact="1" />
<!-- Shields -->
* * * * * * * * * <ware typename="SS_SHIELD_D" exact="{this.maxshieldcount}" />
<!-- Upgrades -->
* * * * * * * * * <ware typename="SS_WARE_TECH213" exact="{player.ship.equipment.SS_WARE_TECH213.maxcount}" />
* * * * * * * * * <ware typename="SS_WARE_TECH246" exact="{player.ship.equipment.SS_WARE_TECH246.maxcount}" />
* * * * * * * * * <ware typename="SS_WARE_TECH251" exact="{player.ship.equipment.SS_WARE_TECH251.maxcount}" />
</equipment>
<cargo>
<!-- Cargo -->
<ware typename="SS_WARE_ENERGY" exact="2000" />
<ware typename="SS_WARE_FREIGHTDRONE" exact="150" />
<ware typename="SS_WARE_JUMPBEACON" exact="1000" />
<!-- Marines -->
* * * * * * * * * <ware typename="SS_WARE_SOLDIER_1" exact="{this.marines.maxcount}" />
</cargo>
</ship>
</property>
</reward_player>
</do_when>
. . .