GplotAppraiseFavOpenStore

From NWN Lexicon


Contents

[edit] gplotAppraiseFavOpenStore(object, object, int, int)

Opens a store, modifying the store prices by the Appraise skill of the PCspeaker.

NOTE: This script always results in a good appraise result.

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

[edit] Parameters

oStore

The merchant inventory that we will be opening.

oPC

The player character we are checking against.

nBonusMarkUp

The percentage to markup the items for sale. (Default: 0)

nBonusMarkDown

The percentage to mark down the price of items the merchant buys. (Default: 0)


[edit] Description

Opens a store, modifying the store prices by the Appraise skill of the oPC.

NOTE: This script always results in a good appraise result.



[edit] Requirements

#include " nw_i0_plot "


[edit] Version

???

[edit] Example

// Lets' open a merchant, remember this function always returns a favorable check.
#include "nw_i0_plot"
#include "x0_i0_anims"
 
void main()
{
   // Get random nearest store object.
   object oMerchant = GetRandomObjectByType(OBJECT_TYPE_STORE, 100.0);
 
   // Remember nBonusMarkUp/nBonusMarkDown default to 0. 
   gplotAppraiseFavOpenStore(oMerchant, OBJECT_SELF);
}

[edit] See Also

functions: 

gplotAppraiseOpenStore



author: Baragg, editors: Mistress, Kolyana

Personal tools
Categories