Identify All Items (From Conversation)

What’s the best way to have all items in a player’s inventory identified from a conversation script?

Cycle through the items in the player’s inventory and flag them as identified.

object oPC = GetPCSpeaker();
object oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
    SetIdentified(oItem, TRUE);

    oItem = GetNextItemInInventory(oPC);

Check out the script x1_hen_identify, too. There’s an IdentifyAll funtion in there that takes the lore rank into account.