GenerateTreasure(int, object, object)

This is the Main function in the NWN Treasure Distribution System

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

Parameters

nTreasureType

The Treasure type to generate

oLastOpener

The last person opening the container

oCreateOn

The Container to create the treasure in


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.



Remarks

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


Requirements

#include "nw_o2_coninclude"

Version

1.22

See Also

categories: Item Creation Functions


 author: Michael Nork