User Tools

Site Tools


modding:xml:shipclass

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
modding:xml:shipclass [2012/08/10 18:34] gpmmodding:xml:shipclass [2017/04/13 07:22] – Added new properties from armor balance update 0xabcdef
Line 1: Line 1:
-Discuss this page on this page'[[shipclass_Talk Page|Talk Page]].+[[shipclass Talk Page|Discuss this page]].
  
 +=====Summary=====
 +  * <ShipClass>
 +    * manufacturer=
 +    * class=
 +    * type=
 +    * armorCriteria=
 +    * deviceCriteria=
 +    * level=
 +    * drivePowerUse=
 +    * inertialessDrive=
 +    * reactorPower=
 +    * fuelCapacity=
 +    * cargoSpace=
 +    * maxCargoSpace=
 +    * maxArmor=
 +    * maxStructuralHitPoints=
 +    * maxDevices=
 +    * maxWeapons=
 +    * maxNonWeapons=
 +    * maxReactorPower=
 +    * cyberDefenseLevel=
 +    * size=
 +    * debugOnly=
 +    * character=
 +    * characterClass=
 +    * dockscreen=
 +    * defaultBackgroundID=
 +    * defaultSovereign=
 +    * score=
 +    * explosionType=
 +    * leavesWreck=
 +    * radioactiveWreck=
 +      * "[0-100]"
 +
 +    * <Names>
 +      * noArticle=
 +        * "true"
 +      * definiteArticle=
 +        * "true"
 +      * personalName=
 +        * "true"
 +      * personalName
 +    * <Armor>
 +      * armorID=
 +      * count=
 +      * level=
 +      * startAt=
 +      * <ArmorSection>
 +        * start= Degree (clockwise) where the segment starts. 0 means the front of the ship
 +        * span= Degrees (clockwise) covered by the segment.
 +        * armorID= UNID of armor to use
 +        * level= Used for scaling armor
 +        * nonCritical= ((CShipArmorSegmentDesc.cpp, 139))
 +          * "dev0"
 +          * "dev1"
 +          * "dev2"
 +          * "dev3"
 +          * "dev4"
 +          * "dev5"
 +          * "dev6"
 +          * "dev7"
 +          * "maneuver"
 +          * "drive"
 +          * "scanners"
 +          * "tactical"
 +          * "cargo"
 +        * areaSet=
 +    * <Devices>
 +      * <Table>. Each child element must have **chance**
 +        * count=
 +      * <LevelTable>. Each child element must have **levelFrequency**
 +        * count=
 +      * <Group>
 +        * count=
 +      * <Null>
 +      * <DeviceSlot>
 +        * count=
 +        * criteria=
 +        * maxCount=
 +        * posAngle=
 +        * posRadius=
 +        * posZ=
 +        * external=
 +        * omnidirectional=
 +        * minFireArc=
 +        * maxFireArc=
 +        * linkedFire=
 +        * secondaryWeapon=
 +        * hpBonus=
 +      * <Device>
 +        * count=
 +        * deviceID=
 +        * item= Same as **deviceID**
 +        * damaged=
 +        * enhanced=
 +        * enhancement=
 +        * level= For device scaling
 +        * minFireArc=
 +        * maxFireArc=
 +        * omnidirectional=
 +        * external=
 +        * linkedFire=
 +        * secondaryWeapon=
 +        * hpBonus=
 +        * posAngle=
 +        * posRadius=
 +        * posZ=
 +        * <Items>. See [[<ItemTable>]]
 +    * <Equipment>
 +      * <Install>
 +        * equipment=
 +          * "SRS"
 +          * "LRS"
 +          * "SystemMap"
 +          * "Autopilot"
 +          * "SRSEnhancer"
 +          * "targetingComputer"
 +          * "GalacticMap"
 +          * "FriendlyFireLock"
 +      * <Remove>
 +        * equipment=
 +    * <Maneuver>
 +      * maxRotationRate= (Degrees/tick)
 +      * rotationAccel= (Degrees/tick/tick)
 +      * rotationStopAccel= (Degrees/tick/tick)
 +    * <Items>. See <[[ItemTable]]>
 +    * <Image>
 +      * imageID=
 +      * imageX=
 +      * imageY=
 +      * imageWidth=
 +      * imageHeight=
 +      * imageFrameCount=
 +      * rotationCount= Defaults to 20
 +      * rotationColumns=
 +      * animationColumns=
 +      * imageTicksPerFrame=
 +      * flashTicks=
 +      * blend=
 +      * brighten=
 +      * viewportRatio=
 +      * viewportSize= Applies only if **viewportRatio** is not defined.
 +      * rotationOffset=
 +      * xOffset=
 +      * yOffset=
 +    * <Effects>
 +      * <Effect>
 +        * type=
 +          * "rotateLeft"
 +          * "rotateRight"
 +          * "thrustMain"
 +        * rotation=
 +        * posAngle=
 +        * posRadius= Requires **posAngle**
 +        * posZ= Requires **posAngle**
 +        * x= Applies only if **posAngle** is not defined
 +        * y= Applies only if **posAngle** is not defined
 +        * z= Applies only if **posAngle** is not defined
 +        * bringToFront=
 +        * sendToBack=
 +        * effect=
 +    * <Escorts>. See [[<ShipTable]]
 +    * <PlauerSettings>
 +    * <Events>
 +
 +    * <FuelLevelImage>
 +    * FuelLevelText
 +    * FuelLowLevelImage
 +    * HeroImage
 +    * Image
 +    * InitialData
 +    * Interior
 +    * NozzleImage
 +    * NozzlePos
 +    * PowerLevelImage
 +    * PowerLevelText
 +    * ReactorDisplay
 +    * ReactorText
 +    * ShieldDisplay
 +    * Trade
 +    * WreckImage
 +
 +=====Fields=====
 +  * armorCount=
 +  * armorHP
 +  * armorItems
 +  * balanceType=
 +    * "too weak"
 +    * "too strong"
 +    * "non-combatant"
 +    * "minion"
 +    * "standard"
 +    * "elite"
 +    * "boss"
 +  * cargoSpace
 +  * combatStrength
 +  * damage
 +  * defenseStrength
 +  * deviceSlots
 +  * deviceSlotsNonWeapons
 +  * deviceSlotsWeapons
 +  * deviceItems
 +  * dockServicesScreen
 +  * dodgeRate
 +  * driveImage
 +  * drivePowerUse
 +  * explosionType
 +  * fireAccuracy
 +  * fireRangeAdj
 +  * fireRateAdj
 +  * genericName
 +  * hp
 +  * hullMass
 +  * installDeviceMaxLevel
 +  * launcher
 +  * launcherUNID
 +  * level
 +  * maneuver
 +  * manufacturer
 +  * mass
 +  * maxArmorMass
 +  * maxCargoSpace
 +  * maxRotation
 +  * maxSpeed
 +  * maxStructuralHP
 +  * namme
 +  * playerDesc
 +  * primaryArmor
 +  * primaryArmorUNID
 +  * primaryWeapon
 +  * primaryWeaponRange
 +  * primaryWeaponRangeAdj
 +  * primaryWeaponUNID
 +  * regen
 +  * score
 +  * size
 +  * shield
 +  * shieldsUNID
 +  * shipConfigScreen
 +  * shipStatusScreen
 +  * startingSystem
 +  * thrust
 +  * thrustToWeight
 +  * thrusterPower
 +  * treasureValue
 +  * wreckChance
 +//Inherits [[SpaceObject]] fields//
 +=====Properties=====
 +  * defaultSovereign
 +  * drivePowerUse
 +  * hasTradeDesc
 +  * maxArmorMass
 +  * maxSpeed
 +  * maxSpeedAtMaxArmor
 +  * maxSpeedAtMinArmor
 +  * power
 +  * stdArmorMass
 +  * thrust
 +  * thrustToWeight
 +  * wreckStructuralHP
 +//Inherits [[SpaceObject]] properties//
 =====Overview===== =====Overview=====
 <ShipClass> defines the properties and behavior of a type of [[ship]], including player ships. <ShipClass> defines the properties and behavior of a type of [[ship]], including player ships.
Line 49: Line 310:
  
 **aDockTarget** is the object that the ship is attempting to dock with. **aDockTarget** is the object that the ship is attempting to dock with.
 +
 +===<CanInstallItem>===
 +**[API Version 18]** This event is called when an armor segment is installed on the ship. The event may return **True** to allow installation or it may return a string explaining why the item cannot be installed. The following arguments are defined:
 +
 +**gSource**: The ship object.
 +
 +**gItem**: The item being installed.
 +
 +**aArmorSeg**: The armor segment being installed. Note that this value is guaranteed to be set if an item is actually being installed, but it may be **Nil** if the caller is merely interested in the possibility of installation (and not concerned about location).
  
 ===<GetExplosionType>=== ===<GetExplosionType>===
modding/xml/shipclass.txt · Last modified: 2017/07/25 00:53 by 0xabcdef