dbCreateItemOnObject(string, object, int)

This function creates the item for the NWN Treasure Distribution System.

void dbCreateItemOnObject(
    string sItemTemplate,
    object oTarget = OBJECT_SELF,
    int nStackSize = 1
);

Parameters

sItemTemplate

The blueprint resref of the item to be created (if this is an empty string, then it should be reported to "Brent").

oTarget

The inventory where you want the item created. (Default: OBJECT_SELF)

nStackSize

The number of items to be created. (Default: 1)


Description

This function was made to assist with debugging and eventually became the function that actually creates items for the NWN Treasure Distribution System.



Requirements

#include "nw_o2_coninclude"

Version

1.29

See Also

functions: CreateItemOnObject
categories: Debug Functions | Item Creation Functions


 author: Michael Nork, editor: Charles Feduke