PLANET

Planets can be seen as space stations on a much larger scale. They can offer the same services as space stations with the addition of chance to smuggle onto planet surface. Additionally, planets can require a ship to pay a docking fee to allow anchoring (landing).

Planets cannot be damaged or destroyed.

DEFINITION FILE

Object has no specific file, but uses the standard assembly (*.asb) file instead. Its parameters are either assigned in the object's database or directly in the map files.


SCRIPT EVENTS

OnDock Triggered when anchoring on the planet
OnUndock Triggered when leaving the planet

MAP FILE PARAMETERS

	Planet:	
	{	
		ModelId:	0
		Position:	13098.82	0.00	99159.11
		Rotation:	0.00	0.00	0.00
		KeyName:	ioliaPLA
		Name:	Planet_Iolia
		FactionId:	0
		DockingFee:	0
		SmugglingChance:	0.00
		Size:	2000.00
		Items:	27
		10000	0	1	
		Commodities:	102
		21	0	1	
		EnhancementsNew:	270
		0	0	15000	0	0	
		ShipSystemsNew:	130
		0	0	50990	0	0	
		Officers:	344
		1	1	1	
		Ships:	76
		345380	0	0	
		Events:	
		{
			...
		}	
	}
	
ModelId Specific planet model ([ Base\EditorPlanets.wdt ]) used by this object type instance
Position Object global position
Rotation Object rotation
KeyName Object keyname used for accessing via scripts
Name Specific name of this object instance
FactionId Faction Id of the owner ([ Base\Faction.wdt ])
DockingFee Base docking fee value. Additional calculations are done by the game automatically.
SmugglingChance Base smuggling chance. Additional calculations are done by the game automatically.
Size Planet size. Standard is 2000.0
Items This line and the one immediately below it show the game what Equipment can be purchased here and at what price. This line tells the game how many items are in the list in the next line.
10000 0 1 Series of Equipment parameters. Each Equipment from Base\Items.wdt is represented by 3 parameters:
  • Price
  • Banned (DEPRECATED)
  • Produced (0 = not available / 1 = available)
Use the World editor to set this up properly!
Commodities This line and the one immediately below it show the game what Commodities can be purchased here and at what price. This line tells the game how many Commodities are in the list in the next line. Use the World editor to set this up properly!
28 0 0 Series of Commodity parameters. Each Commodity from Base\Commodities.wdt is represented by 3 parameters:
  • Price
  • Banned (DEPRECATED
  • Produced (0 = not available / 1 = available)
Use the World editor to set this up properly!
EnhancementsNew This line and the one immediately below it show the game what Enhancements can be purchased here and at what price. This line tells the game how many Enhancements are in the list in the next line. Use the World editor to set this up properly!
0 0 15000 0 0 Series of Enhancement parameters. Each Enhancement from their corresponding databases is represented by 5 parameters:
  • Enhancement type Id ( Base\EnhancementType.wdt )
  • Enhancement Id ( Database reference depends on EnhancementType )
  • Price
  • Banned (DEPRECATED)
  • Produced (0 = not available / 1 = available).
Use the World editor to set this up properly!
ShipSystemNew This line and the one immediately below it show the game what Ship systems (Light weapons, Heavy weapons, Fighters) can be purchased here and at what price. This line tells the game how many Ship systems are in the list in the next line. Use the World editor to set this up properly!
0 0 50990 0 0 Series of Ship system parameters. Each Ship system from their corresponding databases is represented by 5 parameters:
  • Ship system type Id ( Base\ShipSystemType.wdt )
  • Ship System Id ( Database reference depends on Ship System Type )
  • Price
  • Banned (DEPRECATED)
  • Produced (0 = not available / 1 = available)
Use the World editor to set this up properly!
Officers
1 1 1 1 ...
Ships This line and the one immediately below it show the game what Ships can be purchased here and at what price. This line tells the game how many Ships are in the list in the next line. Use the World editor to set this up properly!
345380 0 0 Series of Ship parameters. Each Shipfrom Base\Ships.wdt is represented by 3 parameters:
  • Price
  • Banned (DEPRECATED)
  • Produced (0 = not available / 1 = available)
Use the World editor to set this up properly!
Events {} Set of events with linked scripts