CreateJewel

From NWN Lexicon



Contents

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

Creates a Jewel in the container as part of the NWN treasure distribution system

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

[edit] Parameters

oTarget

Container to create the item in

oAdventurer

a Player object

nTreasureType

The Type of treasure

nModifier

PC Level modifier (Default: 0)


[edit] Description

This function creates a Jewel in the container based on the level of the PC opening the container + nModifier



[edit] Remarks

Found in nw_o2_coninclude.nss

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


[edit] Requirements

#include " nw_o2_coninclude "

[edit] Version

1.61

[edit] See Also



 author: Michael Nork, editor: Lilac Soul, Mistress, contributor: Kookoo
 

Personal tools
Categories