modding:xml:itemtype
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
modding:xml:itemtype [2013/05/31 04:01] – gpm | modding:xml:itemtype [2017/09/26 05:19] (current) – link nms | ||
---|---|---|---|
Line 112: | Line 112: | ||
The < | The < | ||
+ | =====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, | ||
+ | * 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**, | ||
+ | * 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**, | ||
+ | * **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, | The event may return True to indicate that installation should proceed. Alternatively, | ||
Line 135: | Line 197: | ||
Note that this event must not have any side-effects. In particular, you must not change gItem in this event. | Note that this event must not have any side-effects. In particular, you must not change gItem in this event. | ||
+ | |||
+ | ===< | ||
+ | **[apiVersion 14]** Use this event to dynamically compute the description of an item. The result is the description for the item. | ||
+ | |||
+ | **gItem** is the item. | ||
===< | ===< | ||
- | See: [[..: | + | See: [[modding:xml:Armor]]. |
- | See: [[..:Shields devices]]. | + | See: [[modding:xml:Shield_devices]]. |
===< | ===< | ||
Line 144: | Line 211: | ||
* A string, representing the name of the item (use [[name syntax]] if necessary). | * A string, representing the name of the item (use [[name syntax]] if necessary). | ||
* A list, whose first element is the name of the item (use [[name syntax]] if necessary), and whose second element is an integer representing the [[name usage flags]]. | * A list, whose first element is the name of the item (use [[name syntax]] if necessary), and whose second element is an integer representing the [[name usage flags]]. | ||
- | |||
- | **gSource** is the object that carries the item. | ||
**gItem** is the item. | **gItem** is the item. | ||
Line 173: | Line 238: | ||
===< | ===< | ||
- | See: [[..: | + | See: [[modding:xml:Armor]]. |
===< | ===< | ||
- | See: [[..:Weapon devices]]. | + | See: [[modding:xml:Weapon devices]]. |
===< | ===< | ||
- | See: [[..:Weapon devices]]. | + | See: [[modding:xml:Weapon devices]]. |
===< | ===< | ||
- | See: [[..:Weapon devices]]. | + | See: [[modding:xml:Weapon devices]]. |
+ | |||
+ | ===< | ||
+ | The item was disabled. | ||
+ | |||
+ | **gSource** is the object on which the item is installed. | ||
+ | |||
+ | **gItem** is the item. | ||
===< | ===< | ||
- | See: [[..:Weapon devices]]. | + | See: [[modding:xml:Weapon devices]]. |
+ | |||
+ | ===< | ||
+ | The item was enabled or installed on an object. | ||
+ | |||
+ | **gSource** is the object on which the item is installed. | ||
+ | |||
+ | **gItem** is the item. | ||
===< | ===< | ||
Line 212: | Line 291: | ||
* **aDestroyReason** this is the destruction cause. | * **aDestroyReason** this is the destruction cause. | ||
+ | |||
+ | ===< | ||
+ | An object' | ||
+ | |||
+ | **gItem** is the item that has the event. | ||
+ | |||
+ | **gSource** is the object on which the item is installed. | ||
===< | ===< | ||
Line 228: | Line 314: | ||
===< | ===< | ||
- | See: [[..:Shields | + | See: [[modding:xml: |
===< | ===< | ||
- | See: [[..:Shields | + | See: [[modding:xml: |
===< | ===< | ||
Line 252: | Line 338: | ||
Return to [[..: | Return to [[..: | ||
- | |||
=====Notes===== | =====Notes===== | ||
* < | * < |
modding/xml/itemtype.txt · Last modified: 2017/09/26 05:19 by nms