Unidentified item flag

Discussion in 'General Modification' started by Pygmy, Nov 24, 2022.

Remove all ads!
  1. Pygmy

    Pygmy Established Member Supporter

    Joined:
    Oct 8, 2010
    Messages:
    674
    Likes Received:
    71
    Could someone please tell me where and how to set the unidentified item flag when I wish to swap an existing magic item in an enemy npc's inventory? Thank you very much.
     
    Buffed Rabbit likes this.
  2. anatoliy

    anatoliy Established Member

    Joined:
    Feb 18, 2017
    Messages:
    635
    Likes Received:
    200
    First of all, there is no unidentified flag, it's vice versa - there is identified flag - OIF_IDENTIFIED see here. You can set item's flag by using this:
    item.item_flag_set(OIF_IDENTIFIED).

    Essentially if an Item is magical (e.g. has OIF_IS_MAGICAL flag set), then for player it's unidentified (e.g. no OIF_IDENTIFIED flag set) by default.

    upload_2022-11-27_18-20-18.png
    https://www.moddb.com/mods/toeezprotoed
     
    Buffed Rabbit and Pygmy like this.
  3. Pygmy

    Pygmy Established Member Supporter

    Joined:
    Oct 8, 2010
    Messages:
    674
    Likes Received:
    71
    Thank you very much
     
Our Host!