GetCalculatedItemValue

From GECK
Jump to: navigation, search


A function added by the ShowOff NVSE Plugin version 1.45.

Description

Returns the item's reference's value modified by condition and Weapon Mods.

Returns -1 in case of an error.

If accountForBarterChanges is true AND a valid Inventory Reference is passed, will also account for Barter menu sell/buy multipliers. It should return the same value as what appears on screen.

  • May not work reliably if the function is being used as a Condition; it may be evaluated before the Calculate Buy Price Perk Entry Point effects are applied.

    This function can be used either in a script, or as a Condition.

Syntax

[help]
(value:float) itemRefr.GetCalculatedItemValue accountForBarterChanges:bool{false}