Jump to content

NVSE function returning ref in pipboy


rlavlfwo0911

Recommended Posts

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 by IntenseMute
Link to comment
Share on other sites

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 by GamerRick
Link to comment
Share on other sites

  • 1 year later...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...