GetStoreMaxBuyPrice(object)

From NWN Lexicon
Jump to navigationJump to search

Gets the maximum amount a store will pay for any item.

int GetStoreMaxBuyPrice(
    object oidStore
);

Parameters

oidStore
Store object to determine max price of


Description

Gets the maximum amount a store will pay for any item. -1 means price unlimited. -2 indicates the store could not be located.


Remarks

This can also be set directly in the Toolset.

By default, stores don't have a maximum buy price.

Anyone using this function should write special cases for return values -1 and -2.


See Also

functions: 

SetStoreMaxBuyPrice



 author: Lilac Soul, editor: Mistress