Jump to content

Item stack value - how do I get this via script function?


Recommended Posts

This is for my Prospector's Tool mod: https://www.nexusmods.com/newvegas/mods/65121

 

I'm wanting to be able to "scrap" items from my inventory that I've collected from containers, after getting 6 of an item it becomes tedious to keep opening the "how many do you want to drop" menu to drop 1 at a time. So, I want to drop all of them, scrap them and get the appropriate amount of crafting components from the stack. However, I can't seem to find any function that will return the quantity of a stack under the crosshair.

 

For instance, scrapping a single coffee mug should yield 2 wonder glues and 3 empty syringes (Muggy values). So If I scrapped a stack of 6 it should be 6 times as much, 12 wonder glues and 18 empty syringes.

 

Also, another issues I would like to resolve is the length of time the "item has been added" message that pops up. Is there a way to shorten these specific messages or silently add items to a player's inventory?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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