Difference between revisions of "Modding:PVEMissions:shipdefinitions.xml"

From Galactineers
Jump to navigationJump to search
Line 18: Line 18:
  
 
==Options==
 
==Options==
The '''<ShipDefinitions>''' node can contain an unlimited amount of '''<ShipDefinition>''' nodes. Each <ShipDefinition> node defines one ship. The '''<Id>''' tag in the ship definition is used either to add the ship to the map (cf ''AddShip'' command in the [[Modding:PVEMissions:mission.php:MissionContextCommands|$MissionContext]]), or to give that ship as [[Modding:PVEMissions:loot.xml|Loot]] to the players.
+
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 [[Modding:PVEMissions:mission.php:MissionContextCommands|$MissionContext]]), or to give that ship as [[Modding:PVEMissions:loot.xml|Loot]] to the players.
 
The <ShipDefinition> nodes can be pasted exactly from an '''.xml''' file exported from the [[HowToPlay:ShipDesigner|Ship Designer]] ingame.
 
The <ShipDefinition> nodes can be pasted exactly from an '''.xml''' file exported from the [[HowToPlay:ShipDesigner|Ship Designer]] ingame.
  
 
[[Category:Modding:PVEMissions]]
 
[[Category:Modding:PVEMissions]]

Revision as of 11:55, 15 March 2016

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.