GenerateNPCTreasure
From NWN Lexicon
Contents |
[edit] GenerateNPCTreasure(int, object, object)
Use the random treasure functions to generate appropriate treasure for the creature to drop.
void GenerateNPCTreasure( int nTreasureValue = 1, object oTreasureGetter = OBJECT_SELF, object oKiller = OBJECT_SELF );
[edit] Parameters
nTreasureValue
Value of treasure (Default: 1)
oTreasureGetter
Object getting the treasure (Default: OBJECT_SELF)
oKiller
Object that slew the NPC (Default: OBJECT_SELF)
[edit] Description
This function creates treasure on the NPC the valid treasure values are 1 - 4 or LOW, MED, HIGH, BOSS.
[edit] Remarks
Preferrably called from OnSpawn scripts.. Found in: nw_o2_coninclude.nss
[edit] Requirements
#include " nw_o2_coninclude "
[edit] Version
1.22
[edit] See Also
author: Michael Nork