User Tools

Site Tools


modding:function:itmisdamaged

Discuss this page on this pages TalkPage

itmIsDamaged

See itmIsDamaged at Xelerus

Syntax (itmIsDamaged item) → True/Nil
Arguments item: The itemStruct of the item you want to check for damage.
Returns boolean: True if the item is damaged, Nil otherwise.
Category condition query, item, damage
Description Returns whether the item is damaged or not.

Example

(itmIsDamaged (itmCreate 0x4001 3))

Returns Nil. (well of course new items will not be damaged) Return to Functions list

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