Lootable Dungeon Loot
-
- Posts: 153
- Joined: Tue Nov 26, 2019 7:25 am
Lootable Dungeon Loot
Ever been traveling around a dungeon and come across a bookshelf or a bunch of crates and wonder "why can't I loot this like I could if I found it in town"?
How hard would it be to simply make all those things generate loot to grab? It wouldn't need to be great loot, just... anything.
How hard would it be to simply make all those things generate loot to grab? It wouldn't need to be great loot, just... anything.
-
- Posts: 241
- Joined: Sat May 23, 2015 2:22 pm
Re: Lootable Dungeon Loot
Totally agree. I mean, if they're in a dungeon it shouldn't be a whole lot, but perhaps it would be like pickpocketing where you get a chance to loot a box or shelf and you get a small something for your trouble, but nothing crazy.
- Seferoth
- Posts: 665
- Joined: Fri Nov 22, 2019 5:45 pm
- Location: Finland
Re: Lootable Dungeon Loot
Every time i see them i think the same. Those shelves should be filled with loot!
-
- Posts: 256
- Joined: Thu Nov 21, 2019 9:27 pm
- Ralzar
- Posts: 2211
- Joined: Mon Oct 07, 2019 4:11 pm
- Location: Norway
Re: Lootable Dungeon Loot
Alternate solution:
Make new containers for dungeons that are empty shelves
Make new containers for dungeons that are empty shelves
- Hazelnut
- Posts: 3016
- Joined: Sat Aug 26, 2017 2:46 pm
- Contact:
Re: Lootable Dungeon Loot
Been thinking about doing this for a while, I might take a look and see if it's easy enough to do.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods
- Ralzar
- Posts: 2211
- Joined: Mon Oct 07, 2019 4:11 pm
- Location: Norway
Re: Lootable Dungeon Loot
I am of course not familiar with how to code it, but if it's the easier path: You could define shelves (and other things?) in dungeons as dungeon loot piles, so they use the the same loot table.
Of course, this would lead to clicking a book case and get a bunch of not-book stuff. So the next level would be tying different dungeon containers to different loot keys.
Of course, this would lead to clicking a book case and get a bunch of not-book stuff. So the next level would be tying different dungeon containers to different loot keys.
- Hazelnut
- Posts: 3016
- Joined: Sat Aug 26, 2017 2:46 pm
- Contact:
Re: Lootable Dungeon Loot
I took a look and unfortunately these furniture objects are combined into a larger mesh when dungeons are laid out so they cannot be activated like those in buildings.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods
-
- Posts: 256
- Joined: Thu Nov 21, 2019 9:27 pm
- Ralzar
- Posts: 2211
- Joined: Mon Oct 07, 2019 4:11 pm
- Location: Norway
Re: Lootable Dungeon Loot
I'm betting the problem is they are basically the same as walls etc. You'd have to build the dungeon module over without the containers to be able to put in some normal containers instead.
If that's the case, the only other way I could think of doing it would be some kind of reycast on click that checked if it hit a container texture and them generated a loot inventory. Which is probably a LOT of work to get working right. Particularly if you want the loot to be persistent from you enter dungeon until you leave.
If that's the case, the only other way I could think of doing it would be some kind of reycast on click that checked if it hit a container texture and them generated a loot inventory. Which is probably a LOT of work to get working right. Particularly if you want the loot to be persistent from you enter dungeon until you leave.