modding:xml:stationtype
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
modding:xml:stationtype [2012/03/17 01:18] – external edit 127.0.0.1 | modding:xml:stationtype [2017/04/13 07:15] (current) – Need to finish Summary 0xabcdef | ||
---|---|---|---|
Line 1: | Line 1: | ||
[[modding: | [[modding: | ||
+ | =====Summary===== | ||
+ | * < | ||
+ | * Zero or one < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * Zero or one < | ||
+ | * Zero or one < | ||
+ | * criteria= | ||
+ | * Zero or one < | ||
+ | * chance= | ||
+ | * Zero or one < | ||
+ | * min= | ||
+ | * max= | ||
+ | * Zero or one < | ||
+ | * criteria= | ||
+ | * nodeID= Cannot be used with **criteria** | ||
+ | * min= | ||
+ | * max= | ||
+ | * Zero or one < | ||
+ | * min= | ||
+ | * max= | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
=====Overview===== | =====Overview===== | ||
< | < | ||
Line 7: | Line 43: | ||
**UNID=** The [[UNID]] of the station type. | **UNID=** The [[UNID]] of the station type. | ||
+ | **sovereign=** The UNID of the sovereign that this station belongs to. | ||
+ | |||
+ | **attributes=** The attributes for the station. Consult the [[XML: | ||
+ | |||
+ | **scale=** The scale property is used to define the size-scale of the object. The following values are defined: | ||
+ | * **star** : A stellar object, generally one that emits light. | ||
+ | * **world** : An asteroids or world. This scale covers all natural objects smaller than a star. | ||
+ | * **structure** : A stationary artificial structure, such as a station. | ||
+ | * **ship** : A moving artificial structure, generally smaller than a station. | ||
+ | * **flotsam** : A piece of debris or wreckage, generally smaller than a ship. | ||
+ | |||
+ | **canAttack=** This specifies whether a station without weapons can attack and should be considered a threat for purposes of targeting. Stations with weapons are automatically considered capable of attacking. | ||
+ | ***" | ||
+ | ***" | ||
+ | =====Naming===== | ||
**name=** The name of the station. | **name=** The name of the station. | ||
Line 16: | Line 67: | ||
Use a [[XML:< | Use a [[XML:< | ||
- | |||
- | **sovereign=** The UNID of the sovereign that this station belongs to. | ||
- | |||
- | **attributes=** The attributes for the station. Consult the [[XML: | ||
- | |||
- | **canAttack=" | ||
=====Placement===== | =====Placement===== | ||
Line 29: | Line 74: | ||
**locationCriteria=** This property defines the kinds of locations within a system that this station is likely to be found in. This property is ignored if the station does not appear randomly. | **locationCriteria=** This property defines the kinds of locations within a system that this station is likely to be found in. This property is ignored if the station does not appear randomly. | ||
+ | |||
+ | LocationCriteria allows you to adjust the probability of a station appearing at a particular **location** based on the **attributes** of that location. LocationCriteria consists of one or more **terms** each of which selects a single attribute. A prefix modifier sets the probability based on the presence or absence of the attribute at the location. | ||
+ | |||
+ | The following modifiers are supported (replace " | ||
+ | |||
+ | * ***attribute**: | ||
+ | * **+++attribute**: | ||
+ | * **++attribute**: | ||
+ | * **+attribute**: | ||
+ | * **-attribute**: | ||
+ | * **--attribute**: | ||
+ | * **---attribute**: | ||
+ | * **!attribute**: | ||
+ | |||
+ | You use a special syntax to have more control over the probability: | ||
+ | |||
+ | * **+attribute|adj**: | ||
+ | |||
+ | * **-attribute|adj**: | ||
**enemyExclusionRadius=** If present, this property specifies that the station should not be placed within this number of light-seconds of an enemy. | **enemyExclusionRadius=** If present, this property specifies that the station should not be placed within this number of light-seconds of an enemy. | ||
+ | **maxAppearing=** If present, this is a [[dice range]] indicating the maximum number of stations of this type that can be created in the entire game. For example, a value of " | ||
+ | |||
+ | =====Stars===== | ||
+ | Star-scale objects have additional properties: | ||
+ | |||
+ | **maxLightRadius=** This is the maximum distance from the star at which light is usable for purposes of solar power generation. The amount of power generated from light is inversely proportional to distance (//not// the square of distance). **[apiVersion 13]** | ||
+ | |||
+ | **spaceColor=** This is an RGB value specifying the color of space in the vicinity of the star. | ||
+ | |||
+ | **mass=** This defines the mass of the star in terms of solar masses (equivalent to 330000 Earth masses). It affects the gravitational acceleration that this object exerts in its gravitational field. | ||
+ | |||
+ | **gravityRadius=** This specifies the radius (in light-minutes) in which the station will exert gravitational force on mobile objects (such as ships and **mobile** stations like cargo crates and shipwrecks. Acceleration applied to nearby space objects may be roughly determined by **V = [g_SecondsPerUpdate * rAccel * vDist / sqrt(rDist2) = 6468 * mass * (gravityRadius^2 / distance^2) * distance / sqrt(distance^2)] km/s / 299792.5 ls/km**, where **V** is the change in speed in light-seconds per second (towards the star) after a single second. The maximum range at which objects can get " | ||
=====Armor and HP===== | =====Armor and HP===== | ||
modding/xml/stationtype.1331947122.txt.gz · Last modified: 2014/12/27 04:40 (external edit)