CreateGem(object, object, int, int)

Creates a Gem as part of the NWN treasure distribution system

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

Parameters

oTarget

Object to create the item in

oAdventurer

a Player object

nTreasureType

Type of Gem to Create

nModifier

Modifier to increase gem value (Default: 0)


Description

Greates a Gem of at least 1gp value. More based on the level of the PC and the Modifier



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