So an issue I am having - I want san_insert_item to run, but only when the item is being removed from particular holders. So, case in point, if a bearskin is removed from a bear, I want the script to run, but if it is removed from an Ogre wearing it as a shawl, not so much. Unfortunately,'triggerer' is the PC inserting the item (into his backpack, in this case) while 'attachee' is the item itself. The holder doesn't have a handle. Any ideas? Has anyone ever tried san_remove_item, does it even work and does it have the same issue?
san_remove_item should work, yes. There the args are the item's parent (triggerer) and the item (attachee). You also have san_wield_off if relevant. https://github.com/GrognardsFromHel...a0f8db7c291b23/TemplePlus/inventory.cpp#L1579