spiderdian Posted July 26, 2016 Share Posted July 26, 2016 I've been working "a bit" on the DS wikia, but I can't find the damn drop chances within those coding mess, could anyone help me? Link to comment https://forums.kleientertainment.com/forums/topic/69149-where-are-the-loot-lua-files/ Share on other sites More sharing options...
cezarica Posted July 26, 2016 Share Posted July 26, 2016 You can find here a discussion related to the answer you are looking for. Link to comment https://forums.kleientertainment.com/forums/topic/69149-where-are-the-loot-lua-files/#findComment-797150 Share on other sites More sharing options...
spiderdian Posted July 26, 2016 Author Share Posted July 26, 2016 1 hour ago, cezarica said: You can find here a discussion related to the answer you are looking for. I'm actually after the ITEM drops, you know, something dies/gets wrecked, it drops items Link to comment https://forums.kleientertainment.com/forums/topic/69149-where-are-the-loot-lua-files/#findComment-797165 Share on other sites More sharing options...
DarkXero Posted July 26, 2016 Share Posted July 26, 2016 The loot a monster drops is usually defined on its prefab file. Example: warg.lua SetSharedLootTable('warg', { {'monstermeat', 1.00}, {'monstermeat', 1.00}, {'monstermeat', 1.00}, {'monstermeat', 1.00}, {'monstermeat', 0.50}, {'monstermeat', 0.50}, {'houndstooth', 1.00}, {'houndstooth', 0.66}, {'houndstooth', 0.33}, }) inst.components.lootdropper:SetChanceLootTable('warg') Each item has a probability to drop between 0 to 1. You can see you have a guaranteed 4 monster meat and 1 houndstooth. Example: deerclops.lua local loot = {"meat", "meat", "meat", "meat", "meat", "meat", "meat", "meat", "deerclops_eyeball"} inst.components.lootdropper:SetLoot(loot) Each item here has a probability of 1 to drop. You get 8 meat and 1 deerclops_eyeball. Link to comment https://forums.kleientertainment.com/forums/topic/69149-where-are-the-loot-lua-files/#findComment-797169 Share on other sites More sharing options...
spiderdian Posted July 26, 2016 Author Share Posted July 26, 2016 1 hour ago, DarkXero said: The loot a monster drops is usually defined on its prefab file. Example: warg.lua SetSharedLootTable('warg', { {'monstermeat', 1.00}, {'monstermeat', 1.00}, {'monstermeat', 1.00}, {'monstermeat', 1.00}, {'monstermeat', 0.50}, {'monstermeat', 0.50}, {'houndstooth', 1.00}, {'houndstooth', 0.66}, {'houndstooth', 0.33}, }) inst.components.lootdropper:SetChanceLootTable('warg') Each item has a probability to drop between 0 to 1. You can see you have a guaranteed 4 monster meat and 1 houndstooth. Example: deerclops.lua local loot = {"meat", "meat", "meat", "meat", "meat", "meat", "meat", "meat", "deerclops_eyeball"} inst.components.lootdropper:SetLoot(loot) Each item here has a probability of 1 to drop. You get 8 meat and 1 deerclops_eyeball. Thank you, I looked in every single folder but the prefabs, I though they were like the brain folder but for items Link to comment https://forums.kleientertainment.com/forums/topic/69149-where-are-the-loot-lua-files/#findComment-797187 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.