GetItemCursedFlag(object)
Checks if an item is cursed
int GetItemCursedFlag( object oItem );
Parameters
oItem
Item to determine if is cursed
Description
Returns TRUE if the item is cursed and cannot be dropped.
Remarks
See SetItemCursedFlag() for more information about what exactly this flag will do for an item.
Version
1.62
Example
// We are going to destroy everything in the dying PC's // inventory, except, of course, the things that can't be dropped! void main() { // Get the dead PC object oPC = GetLastPlayerDied(); // Evil module! We destroy all items except: // * Plot items // * Undroppable (cursed flag) items object oItem = GetFirstItemInInventory(oPC); while(GetIsObjectValid(oItem)) { // Destroy it if not undroppable if(!GetPlotFlag(oItem) && !GetItemCursedFlag(oItem)) { DestroyObject(oItem); } oItem = GetNextItemInInventory(oPC); } }
See Also
functions: | SetItemCursedFlag |
categories: | Get Data from Object Functions | Miscellaneous Functions |
author: Lilac Soul, editor: Jasperre, additional contributor(s): Jasperre