gplotAppraiseOpenStore(object, object, int, int)

From NWN Lexicon
Jump to navigationJump to search


Note: This function page documents something only available in the nw_i0_plot include file. The function may not be accurately documented here but you can read the nwscript code for the function in the game files.

Opens a store using the appraise skill.

void gplotAppraiseOpenStore(
    object oStore,
    object oPC,
    int nBonusMarkUp = 0,
    int nBonusMarkDown = 0
);

Parameters

oStore
Store object to open
oPC
PC to open the store for
nBonusMarkUp
A number in percent to mark up prices. (Default: 0)
nBonusMarkDown
A number in percent to mark down prices. (Default: 0)


Description

Opens oStore for oPC, allowing for an appraise skill check to further lower or raise prices.


Remarks

Calls OpenStore with parameters as provided to the function, except it adds or subtracts numbers to the markup and markdown values depending on the result of the appraise skill check.


Known Bugs

This isn't a bug at all, still: If you are using a system which has an edited version of the nw_i0_plot file in it, from before version 1.30, this function won't be available to you.


Requirements

#include " nw_i0_plot "


See Also

functions: 

OpenStore



 author: Lilac Soul, editor: Mistress