CreateJewel
From NWN Lexicon
Jump to navigationJump to search
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
);
Parameters
oTarget
Container to create the item in
oAdventurer
a Player object
nTreasureType
The Type of treasure
nModifier
PC Level modifier (Default: 0)
Description
This function creates a Jewel in the container based on the level of the PC opening the container + nModifier
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, Mistress, contributor: Kookoo