Problem Detecting and Manipulating the Value of Ingestibles

Post » Tue May 17, 2011 4:25 am

Pretty much what it says in the title and description.

I've got this script that modifies the value of everything in the player's inventory and for whatever reason the powers that be decided all "potion" items are in their own class which doesn't work with GetValue or SetValue like the other items. So in order to get this thing working across the board I need a function or some means of manipulating the value for items such as Antivenom, Stimpacks, Doctor Bags, etc. Unfortunately I haven't seen anything like this in the vanilla or NVSE functions.

Am I just not seeing it or am I out of luck?

While I do have an extremely convoluted work-around that I can attempt, it wouldn't be compatible with any mods that added or modified ingestible items, so I'd like to avoid it.
User avatar
April D. F
 
Posts: 3346
Joined: Wed Mar 21, 2007 8:41 pm

Post » Tue May 17, 2011 1:27 pm

Potions are actually enchantment objects that were extended by icon and model, thus they uses the base data-structure of spells/enchantments and not the one all other items share.

I think you have to wait (ask) for an update of NVSE.
User avatar
Suzie Dalziel
 
Posts: 3443
Joined: Thu Jun 15, 2006 8:19 pm

Post » Tue May 17, 2011 5:00 am

That's what I figured. Thanks anyway.
User avatar
how solid
 
Posts: 3434
Joined: Mon Apr 23, 2007 5:27 am


Return to Fallout: New Vegas