shipdefinitions.xml

From Galactineers
Jump to: navigation, search

The shipdefinitions.xml contains all ship definitions required for that mission. Ships can either be used in the mission itself (as an enemy, quest ship or player ship), or as Loot.

File Definition

The contents of the shipdefinitions.xml look like this:

<ShipDefinitions>
  <ShipDefinition>
    <Id>PirateProbe</Id>
    <Name>Pirate Probe</Name>
    <Author>LInsoDeTeh</Author>
    <Level>1</Level>
    <Blocks>0,0,0,30,125,125</Blocks>
    <Modules>6,0,1,0,1,30,125,125;4,0,-1,0,1,30,125,125;7,0,0,0,0,30,0,0;7,0,0,0,1,30,0,0;7,0,0,0,3,30,0,0;7,0,0,0,2,30,0,0</Modules>
  </ShipDefinition>
</ShipDefinitions>

Options

The <ShipDefinitions> node can contain an unlimited amount of <ShipDefinition> nodes. Each <ShipDefinition> node defines one ship. The <Id> in the ship definition is used either to add the ship to the map (cf AddShip command in the $MissionContext), or to give that ship as Loot to the players. The <ShipDefinition> nodes can be pasted exactly from an .xml file exported from the Ship Designer ingame. You just need to modify the <Id> and <Name> tags.