CopyItemAndModify(object, int, int, int, int)
Copies an item, making a single modification to it
- Item to copy and modify
- Type of modification to make
- Index of the modification to make
- New value of the modified index
- If TRUE, all local variables are copied to the new weapon (Default: FALSE)
Creates a new copy of an item, while making a single change to the appearance of the item.
Helmet models and simple items ignore nIndex.
Returns the copied object.
Note that the original item isn't destroyed by this function. You'll have to destroy it manually to really make it seem like the item is being modified.
This function does not copy Cursed (undroppable) flag on the item.
In Neverwinter Nights: Enhanced Edition, this function has been modified to allow weapons to access color channels 1-9. Note that this will only apply to custom content weapons, as default weapon models only have four colors.
1.74.8150 updated this function to support per-part coloring in Neverwinter Nights Enhanced Edition.
author: Lilac Soul