rlavlfwo0911 Posted August 16, 2019 Share Posted August 16, 2019 (edited) Is there any function that returns base id in pipboy menu when I selected(left click) an item?I think this could be used to hotkey quest items. Edited August 16, 2019 by rlavlfwo0911 Link to comment Share on other sites More sharing options...
IntenseMute Posted August 16, 2019 Share Posted August 16, 2019 (edited) Here is a script that gets the name of the highlighted item ScriptName aaTestScript String_Var TemporaryString BEGIN MenuMode 1002 Let TemporaryString := GetActiveUIComponentFullName Let TemporaryString += "\string" Let TemporaryString := GetUIString $TemporaryString Print $TemporaryString END Getting the names of the highlighted items through this method also means you get the quantity as well, for example: Throwing Spears (10)You can use the sv_RegExReplace function to remove that, I don't know how adept you are in making regular expressions, I can probably make it for you if you need, though I'm not great at it either. To get the Base ID from a name is a little complicated to explain so once you have the regular expression figured out, I will tell you how. EDIT: Also try GetMenuTargetRef, I haven't tested it but "GetMenuTargetRef 1016" might be exactly what you are looking for. Edited August 16, 2019 by IntenseMute Link to comment Share on other sites More sharing options...
GamerRick Posted August 16, 2019 Share Posted August 16, 2019 (edited) I think he is asking how can one get the baseID of an object in your inventory when you click it. This reminds me of Oblivion's Cobl, which can let you remove quest items. I would like to know this too. So far I have just created a bat file to turn off the quest item flag for objects in my inventory (like Benny's Lighter) when the related quest is over. The game doesn't remove items or turn off the quest item flag when quests end, leaving the things cluttering up your misc inventory list. Here is my questitems.txt file: ;VMS21WeaponsShipment Disassembled Weapons Shipment setquestitem 0, 11f55a ;Benny's butts and lighter setquestitem 0, 115f04 setquestitem 0, 115f05 ;Karl's journal setquestitem 0, 144eb6 ;VMS01RocketSouvenir setquestitem 0, 8e665 ;BOS filter items setquestitem 0, 1632e0 setquestitem 0, 1632e1 setquestitem 0, 1632e2 ;BOS self-destruct keycards setquestitem 0, 1645e3 setquestitem 0, 1645e4 setquestitem 0, 1645e5 ;Redundant failsafe detonator setquestitem 0, 137ad6 ;Brotherhood Scout Reports setquestitem 0, 15d9db setquestitem 0, 15d9d8 setquestitem 0, 15d9d9 ; Camp Guardian Log Page setquestitem 0, 14b29f Edited August 16, 2019 by GamerRick Link to comment Share on other sites More sharing options...
Deleted5033070User Posted December 6, 2020 Share Posted December 6, 2020 Hiya!I would love to quickly revive this topic if possible. I am also trying to get the Base ID of inventory items (while hovering over them in the pip-boy). I had no luck with the "GetMenuTargetRef" function.. the "GetActiveUIComponentFullName" works like a charm though!.. however I obviously only get the names now.How would I get the Base ID from just the name of the item? Link to comment Share on other sites More sharing options...
IntenseMute Posted December 6, 2020 Share Posted December 6, 2020 Use GetSelectedItemRef instead. Link to comment Share on other sites More sharing options...
Deleted5033070User Posted December 6, 2020 Share Posted December 6, 2020 Wow!Thank you so much! That is SO much easier.. I thought I checked the other JIP UI functions, but obviously missed the exact one I needed :/ Link to comment Share on other sites More sharing options...
Recommended Posts