GetItemPosition(object)

Returns the position of a variable in an array containing a list of possible base types that can be created.

int GetItemPosition(
    object oMagicalItem
);

Parameters

oMagicalItem

The item that represents the base type to search for.


Description

Returns the position of the base type of oMagicalItem in the locally stored array called "NW_COMBO_BASETYPE". If the base type is Armor then it looks up the armor by AC value as well.



Remarks

Function found in nw_o0_itemmaker.nss on line 147.

This function is used in the Item Creation scripts for the official campaign.


Requirements

#include "nw_o0_itemmaker"

Version

1.22

See Also

categories: Module Specific Functions


 author: John Shuell