RewardGP

From NWN Lexicon
Jump to: navigation, search



RewardGP(int, object, int)

Gives gold as a reward to a player and possible their party members.

void RewardGP(
    int nGP,
    object oTarget,
    int bAllParty = TRUE
);

Parameters

nGP

The amount of gold to reward.

oTarget

The PC who will receive the gold.

bAllParty

Whether the whole party that oTarget is a member of will receive gold. (Default: TRUE)


Description

Gives nGP gold as a reward to oTarget and if bAllParty is TRUE their party members.



Remarks

This will give the same GP to all people who receive it. So if nGP is 50, and there are 3 PCs the total GP rewarded would be 150gp.


Requirements

#include " nw_i0_plot "

Version

1.22

See Also



 author: Tom Cassiotis, editors: Kolyana, Mistress