Asterra Posted May 20, 2019 Share Posted May 20, 2019 Simple question. Looking for the scripted means to open a given actor's container menu (for looting). I was surprised at not being able to immediately find a function set aside for this. Link to comment Share on other sites More sharing options...
dubiousintent Posted May 20, 2019 Share Posted May 20, 2019 I believe what you want is described on the GECKWiki "Inventory Reference" page. Also see the "JIP Inventory functions". -Dubious- Link to comment Share on other sites More sharing options...
Asterra Posted May 21, 2019 Author Share Posted May 21, 2019 I believe what you want is described on the GECKWiki "Inventory Reference" page. Also see the "JIP Inventory functions". -Dubious- Well, not quite. I do understand that there are ways of browsing containers. That's not what I'm after. I need to open the container menu. Just like if you were to stoop down and loot a corpse. Boom, menu opens. That's what I'm looking for. The in-game opening of that menu. Link to comment Share on other sites More sharing options...
dubiousintent Posted May 21, 2019 Share Posted May 21, 2019 In that case, believe you need an "options menu" and function "MenuTapKey". Perhaps a mod providing a similar functionality (such as "Loot Menu for FNV" by Gribbleshnibit8) will give you some more useful pointers. -Dubious- Link to comment Share on other sites More sharing options...
Asterra Posted May 21, 2019 Author Share Posted May 21, 2019 (edited) In that case, believe you need an "options menu" and function "MenuTapKey". This sounds as though you are making the suggestion to completely recreate the entire functionality and visual presentation of NV's inventory menu so I can bypass the need to use it at all. While I'm willing to admit that such an approach is probably a solution on paper, it's quite above and beyond the scope of what I'm looking for. Besides, I have to imagine that things would get especially hairy when taking into account the variations the inventory menu can come in (a-la Vanilla UI Plus, etc.) I'm starting to think that we have a JIP request candidate on our hands here. I mean we already have the likes of OpenRepairMenu. It sincerely baffles me that there isn't a function for the inventory menu. Edit: I might save myself a lot of grief if it turns out that there is a way to temporarily bypass the game's built-in refusal to open the inventory on still-living NPCs, since that is the lynchpin of the mod I'm trying to put together. Perhaps a mod providing a similar functionality (such as "Loot Menu for FNV" by Gribbleshnibit8) will give you some more useful pointers. Oh, I've scoured the Nexus for mods that might have suggested what simple function I was overlooking. Loot Menu feels like an easy disqualification since it does not in fact take advantage of the true inventory menu, though I suspect you may have meant to further suggest I personally recreate NV's menu code. On the topic of menus, I admit they are an enigma. I had in mind, for a different mod, the idea to implement a simple bit of text added to the bottom of one menu (Pickpocket), but the way to go about it eludes me. Examining the associated XMLs doesn't help because googling any of the functions found therein draws a big fat blank; there doesn't seem to be a resource similar to the GECK for revealing how those files result in the menus they create. And beyond that, I wouldn't know for certain how to inject a bit of text to a menu on the fly. Edited May 21, 2019 by Asterra Link to comment Share on other sites More sharing options...
IntenseMute Posted May 21, 2019 Share Posted May 21, 2019 Is OpenTeammateContainer what you are looking for? Link to comment Share on other sites More sharing options...
Asterra Posted May 21, 2019 Author Share Posted May 21, 2019 Is OpenTeammateContainer what you are looking for?By gum it does seem so. Thanks. Now I'm going to be greedy and hope there's a way to override the block on opening containers on non-dead NPCs, because the game engine is still going to give some kind of response to the attempt to activate the NPC (a noise, a notice, something) and that obviously ruins the effect I'm after. Link to comment Share on other sites More sharing options...
trashgarbage666 Posted May 28, 2019 Share Posted May 28, 2019 Is OpenTeammateContainer what you are looking for? By gum it does seem so. Thanks. A couple days ago, I was testing OpenTeammateContainer 1 on Ringo and had some strange results. I would run the command on him while he was alive, loot him, and then kill him. A second later, 100 caps would appear on his corpse. I repeated this half a dozen times to see how consistent it was, and it worked every time. I have no idea why this happens. You should probably try to recreate this glitch before getting too invested in OpenTeammateContainer. Unless I'm just using it incorrectly. Link to comment Share on other sites More sharing options...
Recommended Posts