STATION

Stations are dockable (anchor) objects placed around Gemini to facilitate trade, ship refit, ship purchase, repairs, hiring officers etc..

[ TIP ]To make any of the services unavailable, simply empty all items in the appropriate list (set all commodities produce flag to 0 etc.) in the sector file!

DEFINITION FILE (*.sta)

The example used here is Spg2\Models\Stations\Alexandria\station.sta. Station files (*.sta) can be edited with the Notepad++.

	WhaleModel:
	{
		Name:	Spg2\Models\Stations\Alexandria\alexandria.asb
	}
	

The other parameters in the *.sta file are not yet used!


SCRIPT EVENTS

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

MAP FILE PARAMETERS

	Station:	
	{	
		ModelId:	76
		Position:	28220.00	455.05	67780.00
		Rotation:	-0.00	3.58	0.00
		KeyName:	vigoSTA
		Name:	Vigo
		FactionId:	7
		CaptianId:	0
		MaxCargo:	50
		MaxTrooper:	50
		Licenses:	
		{	
		7	
		}	
		Items:	27
		100	0	1	
		Commodities:	102
		27	0	0	
		EnhancementsNew:	270
		0	0	15000	0	0	
		ShipSystemsNew:	130
		0	0	50990	0	0		
		Officers:	344
		
		Ships:	76
		345380	0	0	
		Events:	
		{	
		}	
	}
	
ModelId Specific station model ([ Base\EditorStations.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 ])
CaptianId DEPRECATED
MaxCargo Maximum amount of a single commodity the station can have available for sale
MaxTroopers Maximum number of troopers the station can have available for hiring
Licenses A list of available Licenses. The row below lists license IDs.
7 ... A list of License IDs from Base\Licenses.wdt
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