CreateGem

From NWN Lexicon
Revision as of 11:05, 21 August 2012 by Dood (talk | contribs) (Created page with " =CreateGem(object, object, int, int)= Creates a Gem as part of the NWN treasure distribution system void  CreateGem(      object ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



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



 author: Michael Nork, editor: Lilac Soul