User Tools

Site Tools


modding:function:shpenhanceitem

Discuss this page on this page's Talk Page

shpEnhanceItem

See shpEnhanceItem at Xelerus

Syntax (shpEnhanceItem ship itemListCursor [number]) → condition
Arguments ship: The ship that you want to enhance an item in.
itemListCursor: Where on the ship the item is.
number: The enhance code.
Returns condition: True is successful.
Category enhancement, item, ship
Description Enhances the item pointed to by itemListCursor.

Example

Example from UsefulItems.xml

; Enhance the shield generator
(block (result)
    (setq result (shpEnhanceItem gSource theItem 0x0102))
    (objSendMessage gSource Nil (intItemEnhanceStatus result "Your shields are more powerful" "shield generator"))
    )

See also objAddItemEnhancement

Return to Functions list

modding/function/shpenhanceitem.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1