Interactable corpses ?

Do you guys know where they are located in the database ? I need to create the scavenging skill now :slight_smile:

One possibility: on death replace the corpse with a skeleton. The skeleton can be looted, which contains the results of the scavenging? You need something that can already be interacted with by the player if you want the player to interact with something :confused:

level art\carnage\ here?

Yes, I love the skeletons idea.
Make it work like one-time chest. You open the chest (corpse) loot drop out of the chest (corpse) and when you interact with the container (corpse) you can probably track that for your skill (scavenging).

I found all the interactable stuff (chests, jugs, barrels…) and they have a “onBroken” script hook. It should be very easy to add some skill checks and specific loot from this point I think.

path: database/records/items/lootchests/breakables,…

Thanks for answers lads :slight_smile:

I also found these examples, which may have more of the functionality you’re looking for even though you’d probably still want to use the onBroken hook.

storyelements\scriptentity\hs_fishingvillage_corpse.dbr:onAddToWorld,gd.quests.homesteadQuestPayingTribute.villageVillagerCorpseOnAddToWorld,
storyelements\scriptentity\hs_fishingvillage_corpse.dbr:onDestroy,gd.quests.homesteadQuestPayingTribute.villageVillagerCorpseOnDestroy,
storyelements\scriptentity\hs_fishingvillage_corpsepile.dbr:onAddToWorld,gd.quests.homesteadQuestPayingTribute.villageVillagerCorpsePileOnAddToWorld,
storyelements\scriptentity\hs_fishingvillage_corpsepile.dbr:onDestroy,gd.quests.homesteadQuestPayingTribute.villageVillagerCorpsePileOnDestroy,
storyelements\scriptentity\hs_mornayarea.dbr:onAddToWorld,gd.quests.homesteadNPCMornay.mornayCorpseOnAddToWorld,
storyelements\scriptentity\hs_mornayarea.dbr:onDestroy,gd.quests.homesteadNPCMornay.mornayCorpseOnDestroy,

I only found one instance of onBroken being called:

items\lootchests\questchests\questchest_aread_dailasword_break.dbr:onBroken,gd.quests.areaCQuestInfestedFields.urnDestroyed,