CreateGold(object, object, int, int)

Spawns in Gold as part of the random treasure distribution.

void CreateGold(
    object oTarget,
    object oAdventurer,
    int nTreasureType,
    int nModifier = 0
);

Parameters

oTarget

Container to create the item in

oAdventurer

a Player object

nTreasureType

Type of treasure to be created

nModifier

PC Level modifier (Default: 0)


Description

Creates Gold, based on the level of the PC opening the container + the nModifier, as part of the NWN Treasure Distribution System.
At least 1gp is always spawned.



Remarks

Found in nw_o2_coninclude.nss

This can be used to create the item in any object with an inventory.


Requirements

#include "nw_o2_coninclude"

Version

1.61

See Also

categories: Item Creation Functions


 author: Michael Nork, editor: Lilac Soul