modding:xml:shipclass
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| modding:xml:shipclass [2012/03/17 03:51] – created ttech | modding:xml:shipclass [2017/07/25 00:53] (current) – Add attribute value types 0xabcdef | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | [[shipclass Talk Page|Discuss this page]]. | ||
| + | =====Summary===== | ||
| + | * < | ||
| + | * manufacturer= [string] | ||
| + | * class= [string] | ||
| + | * type= [string] | ||
| + | * armorCriteria= [criteria_item] | ||
| + | * deviceCriteria= [criteria_item] | ||
| + | * level= [whole] | ||
| + | * drivePowerUse= [whole] | ||
| + | * inertialessDrive= [boolean] | ||
| + | * reactorPower= [whole] | ||
| + | * fuelCapacity= [whole] | ||
| + | * cargoSpace= [whole] | ||
| + | * maxCargoSpace= [whole] | ||
| + | * maxArmor= [whole] | ||
| + | * maxStructuralHitPoints= [whole] | ||
| + | * maxDevices= [whole] | ||
| + | * maxWeapons= [whole] | ||
| + | * maxNonWeapons= [whole] | ||
| + | * maxReactorPower= [whole] | ||
| + | * cyberDefenseLevel= [whole] | ||
| + | * size= [whole] | ||
| + | * debugOnly= [boolean] | ||
| + | * character= [type_any] | ||
| + | * characterClass= [type_any] | ||
| + | * dockscreen= [dockscreen_local_or_type] | ||
| + | * defaultBackgroundID= [type_ | ||
| + | * defaultSovereign= [type_sovereign] | ||
| + | * score= [whole] | ||
| + | * explosionType= [type_weapon] | ||
| + | * leavesWreck= [whole_100] | ||
| + | * radioactiveWreck= [boolean] | ||
| + | |||
| + | * < | ||
| + | * noArticle= | ||
| + | * " | ||
| + | * definiteArticle= | ||
| + | * " | ||
| + | * personalName= | ||
| + | * " | ||
| + | * personalName | ||
| + | * < | ||
| + | * armorID= | ||
| + | * count= | ||
| + | * level= | ||
| + | * startAt= | ||
| + | * < | ||
| + | * 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, | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * areaSet= | ||
| + | * < | ||
| + | * < | ||
| + | * count= | ||
| + | * < | ||
| + | * count= | ||
| + | * < | ||
| + | * count= | ||
| + | * < | ||
| + | * < | ||
| + | * count= | ||
| + | * criteria= | ||
| + | * maxCount= | ||
| + | * posAngle= | ||
| + | * posRadius= | ||
| + | * posZ= | ||
| + | * external= | ||
| + | * omnidirectional= | ||
| + | * minFireArc= | ||
| + | * maxFireArc= | ||
| + | * linkedFire= | ||
| + | * secondaryWeapon= | ||
| + | * hpBonus= | ||
| + | * < | ||
| + | * count= | ||
| + | * deviceID= | ||
| + | * item= Same as **deviceID** | ||
| + | * damaged= | ||
| + | * enhanced= | ||
| + | * enhancement= | ||
| + | * level= For device scaling | ||
| + | * minFireArc= | ||
| + | * maxFireArc= | ||
| + | * omnidirectional= | ||
| + | * external= | ||
| + | * linkedFire= | ||
| + | * secondaryWeapon= | ||
| + | * hpBonus= | ||
| + | * posAngle= | ||
| + | * posRadius= | ||
| + | * posZ= | ||
| + | * < | ||
| + | * < | ||
| + | * < | ||
| + | * equipment= | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * < | ||
| + | * equipment= | ||
| + | * < | ||
| + | * maxRotationRate= (Degrees/ | ||
| + | * rotationAccel= (Degrees/ | ||
| + | * rotationStopAccel= (Degrees/ | ||
| + | * < | ||
| + | * < | ||
| + | * 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= | ||
| + | * < | ||
| + | * < | ||
| + | * type= | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * 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= | ||
| + | * < | ||
| + | * < | ||
| + | * < | ||
| + | |||
| + | * < | ||
| + | * FuelLevelText | ||
| + | * FuelLowLevelImage | ||
| + | * HeroImage | ||
| + | * Image | ||
| + | * InitialData | ||
| + | * Interior | ||
| + | * NozzleImage | ||
| + | * NozzlePos | ||
| + | * PowerLevelImage | ||
| + | * PowerLevelText | ||
| + | * ReactorDisplay | ||
| + | * ReactorText | ||
| + | * ShieldDisplay | ||
| + | * Trade | ||
| + | * WreckImage | ||
| + | |||
| + | =====Fields===== | ||
| + | * armorCount= | ||
| + | * armorHP | ||
| + | * armorItems | ||
| + | * balanceType= | ||
| + | * "too weak" | ||
| + | * "too strong" | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * 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===== | ||
| + | < | ||
| + | |||
| + | =====Basic Attributes===== | ||
| + | **UNID=** The [[UNID]] of the ship class. | ||
| + | |||
| + | **attributes=** | ||
| + | |||
| + | **score=** | ||
| + | |||
| + | **mass=** | ||
| + | |||
| + | **cargoSpace=** | ||
| + | |||
| + | =====Names===== | ||
| + | {Naming the ship class; naming individual ships with the < | ||
| + | |||
| + | =====Image===== | ||
| + | {< | ||
| + | |||
| + | =====Armor===== | ||
| + | {< | ||
| + | |||
| + | =====Devices===== | ||
| + | {< | ||
| + | |||
| + | =====Drive==== | ||
| + | {thrust, maneuverability, | ||
| + | |||
| + | =====Items===== | ||
| + | {< | ||
| + | |||
| + | =====Explosions & Wrecks===== | ||
| + | {leavesWreck attrib, plus wreck type and explosion attributes} | ||
| + | |||
| + | =====AI Settings===== | ||
| + | {< | ||
| + | |||
| + | =====Events===== | ||
| + | |||
| + | ===< | ||
| + | [NOTE: This event was implemented in 1.08.] | ||
| + | |||
| + | This event is raised when a player attempts to dock with an object (using the ' | ||
| + | |||
| + | **gSource** is the player ship object that is attempting to dock. | ||
| + | |||
| + | **aDockTarget** is the object that the ship is attempting to dock with. | ||
| + | |||
| + | ===< | ||
| + | **[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**: | ||
| + | |||
| + | **gItem**: The item being installed. | ||
| + | |||
| + | **aArmorSeg**: | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | ===< | ||
| + | |||
| + | |||
| + | |||
| + | =====Player Ships===== | ||
| + | See: [[Player ships]] | ||
| + | See: [[PlayerSettings]] | ||
