User Tools

Site Tools


modding:xml:itemtype

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
modding:xml:itemtype [2013/07/12 00:09] – [Events] gpmmodding:xml:itemtype [2017/09/26 05:19] (current) – link nms
Line 112: Line 112:
 The <Names> structure is used to define a list of random names for the unknown type. The <Names> structure is used to define a list of random names for the unknown type.
  
 +=====Fields=====
 +====ItemStruct====
 +====ItemType====
 +  * averageCount
 +  * category
 +  * cost
 +  * description
 +  * deviceSlots
 +  * frequency
 +  * fuelCapacity
 +  * imageDesc
 +  * installCost
 +  * level
 +  * mass
 +  * name
 +  * reference
 +  * shortName
 +  * slotCategory
 +  * treasureValue
 +  * unknownType
 +  * useKey
 +=====Properties=====
 +====ItemStruct====
 +  * **category**
 +  * **charges**
 +  * **components**
 +  * **damaged** Applies to devices and armor segments only. Reduces the functionality and value of the item.
 +    * A damaged weapon has a 10% chance of firing normally, 60% chance of jamming, 20% chance of misfiring, and 10% chance of a damaging weapon chamber explosion.
 +    * Damaged shields have a 10% chance of absorbing only 75% of damage, leaving the armor underneath to take the remaining 25%. They have a 15% chance of taking double the adjusted damage. Additionally, every 10 ticks, there is a 5% chance that they may deplete themselves.
 +    * A damaged Armor segment has half as much hp when installed.
 +    * A damaged SolarDevice is half as effective as normal.
 +    * A damaged RepairerDevice does not work at all.
 +    * A damaged DriveDevice has 75% as much **maxSpeed**, 50% as much **thrust**, 30% greater **powerUse**, and cannot be inertialess.
 +    * A damaged ReactorDevice has 80% as much **maxPower** and **efficiency**
 +    * A damaged EnhancerDevice does not work at all.
 +    * A damaged CyberDeckDevice does not work at all.
 +  * **description**
 +  * **disrupted** Applies to devices and armor segments only. Same effect as **damaged**, but temporary.
 +  * **incCharges** Can only be set; increments the item's charges by the set amount.
 +  * **installed** Devices and armor segments only
 +  * **level**
 +  * **maxCharges**
 +  * **maxLevel** The maximum level that this item can have
 +  * **minLevel** The minimum level that this item can have
 +  * **massBonusPerCharge** The mass increase (in kg) when the item gains one charge
 +  * **valueBonusPerCharge** The value increase when the item gains one charge
 +  * **weaponTypes**
 +====ItemType====
 +  * category
 +  * components
 +  * currency
 +  * description
 +  * frequency
 +  * level
 +  * maxCharges
 +  * maxLevel
 +  * minLevel
 +  * massBonusPerCharge
 +  * valueBonusPerCharge
 +  * weaponTypes
 =====Events===== =====Events=====
  
Line 120: Line 180:
  
 **gItem** is the item. **gItem** is the item.
 +
 +**aItemToReplace** is the item that will be removed.
  
 The event may return True to indicate that installation should proceed. Alternatively, it can return a text string, to indicate that installation has failed. The string is the text to display to the player explaining the reason for the failure. The event may return True to indicate that installation should proceed. Alternatively, it can return a text string, to indicate that installation has failed. The string is the text to display to the player explaining the reason for the failure.
Line 142: Line 204:
  
 ===<GetMaxHP>=== ===<GetMaxHP>===
-See: [[..:Armor items]]. +See: [[modding:xml:Armor]]. 
-See: [[..:Shields devices]].+See: [[modding:xml:Shield_devices]].
  
 ===<GetName>=== ===<GetName>===
Line 176: Line 238:
  
 ===<OnArmorDamage>=== ===<OnArmorDamage>===
-See: [[..:Armor items]].+See: [[modding:xml:Armor]].
  
 ===<OnDamageArmor>=== ===<OnDamageArmor>===
-See: [[..:Weapon devices]].+See: [[modding:xml:Weapon devices]].
  
 ===<OnDamageOverlay>=== ===<OnDamageOverlay>===
-See: [[..:Weapon devices]].+See: [[modding:xml:Weapon devices]].
  
 ===<OnDamageShields>=== ===<OnDamageShields>===
-See: [[..:Weapon devices]].+See: [[modding:xml:Weapon devices]]
 + 
 +===<OnDisable>=== 
 +The item was disabled. 
 + 
 +**gSource** is the object on which the item is installed. 
 + 
 +**gItem** is the item.
  
 ===<OnFireWeapon>=== ===<OnFireWeapon>===
-See: [[..:Weapon devices]].+See: [[modding:xml:Weapon devices]]
 + 
 +===<OnEnable>=== 
 +The item was enabled or installed on an object. 
 + 
 +**gSource** is the object on which the item is installed. 
 + 
 +**gItem** is the item.
  
 ===<OnInstall>=== ===<OnInstall>===
Line 215: Line 291:
  
   * **aDestroyReason** this is the destruction cause.   * **aDestroyReason** this is the destruction cause.
 +
 +===<OnReactorOverload>===
 +An object's reactor overloaded.
 +
 +**gItem** is the item that has the event.
 +
 +**gSource** is the object on which the item is installed.
  
 ===<OnRefuel>=== ===<OnRefuel>===
Line 231: Line 314:
  
 ===<OnShieldDamage>=== ===<OnShieldDamage>===
-See: [[..:Shields devices]].+See: [[modding:xml:Shield devices]].
  
 ===<OnShieldDown>=== ===<OnShieldDown>===
-See: [[..:Shields devices]].+See: [[modding:xml:Shield devices]].
  
 ===<OnUninstall>=== ===<OnUninstall>===
modding/xml/itemtype.1373587756.txt.gz · Last modified: 2014/12/27 04:40 (external edit)