GetItemPosition

From NWN Lexicon



Contents

[edit] 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
);

[edit] Parameters

oMagicalItem

The item that represents the base type to search for.


[edit] 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.



[edit] Remarks

Function found in nw_o0_itemmaker.nss on line 147.

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


[edit] Requirements

#include " nw_o0_itemmaker "

[edit] Version

1.22

[edit] See Also



 author: John Shuell
 

Personal tools
Categories