Auto identify

The idea is simple enough: Upon opening creature remains, identify all items that the player has enough lore for.
I'm not sure if I can find the creature remains to put such a script there, and I wouldn't be surprised to learn that they're all unique to each creature. So this idea might be unreachable.
My next idea is to do the identification on death. This I know I have access to, but if you're in a party, the lore used will be of the killer. I suppose it wouldn't be too much of a stretch to use the highest lore in the party.
Anyway, can I put a script on all the creature remains?
I'm not sure if I can find the creature remains to put such a script there, and I wouldn't be surprised to learn that they're all unique to each creature. So this idea might be unreachable.
My next idea is to do the identification on death. This I know I have access to, but if you're in a party, the lore used will be of the killer. I suppose it wouldn't be too much of a stretch to use the highest lore in the party.
Anyway, can I put a script on all the creature remains?
0
Comments
Now that I think of it, the server I played on the most, had something like that. You'd pick up an item, and if it could be stacked, it would delete it after a bit and make the main stack heavier. Those were special items, but I could do something similar with normal items.
Since I want to avoid that, the only way to get the lore required to identify something is probably in the json version of the item. I haven't dug into that yet. If it's not reported there, I might be out of luck for the moment.
It's a real shame that ActionUseSkill(SKILL_LORE) was never considered as identifying objects. That would make the identifying part easy.
Add this to the module OnAcquireItem script.
Note: The item has to be identified before you can get the gold piece value of it. There must be a delay between the container getting the item and it giving it back. I tried having the player take the item back, but it closed the container; Super annoying.
Without that the player would just have to stack the item themselves?