Is there a way to script a script (spell for the sake of it) that kills and destroys a target and then puts all it's loot in the casters inventory?
I can script a killing/destroying script easily enough but I can't seem to find the "inventory" or loot of a target before it turns into a corps..
My theory was using GetFirstItemInInventory & then get next item all before the creature dies (as after it dies it turns into a container and is no longer the oTarget of the spell) and then use ActionTakeItem for all items but it seems that the loot is "there" only after the creature dies - so I'll have to use a new script to target the loot as it's gonna be in the new container and not the target of the spell..
Is there a way you can think of to achieve the desired result?





Retour en haut






