GenerateTreasure

From NWN Lexicon



Contents

[edit] GenerateTreasure(int, object, object)

This is the Main function in the NWN Treasure Distribution System

void GenerateTreasure(
    int nTreasureType,
    object oLastOpener,
    object oCreateOn
);

[edit] Parameters

nTreasureType

The Treasure type to generate

oLastOpener

The last person opening the container

oCreateOn

The Container to create the treasure in


[edit] Description

This function creates the treasure all of the players so greedily grab up in NWN. This function in turn calls any one of several Create<Item> functions that will create class/race/proficiency specific/general magical/normal weapons/armor/items.



[edit] Remarks

Found in nw_o2_coninclude.nss. The Create<Weapons> scripts are all in nw_o2_feat


[edit] Requirements

#include " nw_o2_coninclude "

[edit] Version

1.22

[edit] See Also



 author: Michael Nork
 

Personal tools
Categories