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 [2017/02/02 02:57] – Properties 0xabcdefmodding:xml:itemtype [2017/09/26 05:19] (current) – link nms
Line 113: Line 113:
  
 =====Fields===== =====Fields=====
 +====ItemStruct====
 +====ItemType====
 +  * averageCount
 +  * category
 +  * cost
 +  * description
 +  * deviceSlots
 +  * frequency
 +  * fuelCapacity
 +  * imageDesc
 +  * installCost
 +  * level
 +  * mass
 +  * name
 +  * reference
 +  * shortName
 +  * slotCategory
 +  * treasureValue
 +  * unknownType
 +  * useKey
 =====Properties===== =====Properties=====
 +====ItemStruct====
   * **category**   * **category**
   * **charges**   * **charges**
Line 139: Line 159:
   * **valueBonusPerCharge** The value increase when the item gains one charge   * **valueBonusPerCharge** The value increase when the item gains one charge
   * **weaponTypes**   * **weaponTypes**
 +====ItemType==== 
 +  * category 
 +  * components 
 +  * currency 
 +  * description 
 +  * frequency 
 +  * level 
 +  * maxCharges 
 +  * maxLevel 
 +  * minLevel 
 +  * massBonusPerCharge 
 +  * valueBonusPerCharge 
 +  * weaponTypes
 =====Events===== =====Events=====
  
Line 148: 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 170: Line 204:
  
 ===<GetMaxHP>=== ===<GetMaxHP>===
-See: [[modding:xml:Armor_items]]. +See: [[modding:xml:Armor]]. 
-See: [[modding:xml:Shields_devices]].+See: [[modding:xml:Shield_devices]].
  
 ===<GetName>=== ===<GetName>===
Line 204: Line 238:
  
 ===<OnArmorDamage>=== ===<OnArmorDamage>===
-See: [[..:Armor items]].+See: [[modding:xml:Armor]].
  
 ===<OnDamageArmor>=== ===<OnDamageArmor>===
Line 210: Line 244:
  
 ===<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 243: 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>===
modding/xml/itemtype.1486004264.txt.gz · Last modified: 2017/02/02 02:57 by 0xabcdef