IPGetModifiedArmor
From NWN Lexicon
Contents |
[edit] IPGetModifiedArmor(object, int, int, int)
Copies and modifies an armor and returns it as an object.
[edit] Parameters
oArmor
Armor to modify.
nPart
ITEM_APPR_ARMOR_MODEL_*
nMode
bDestroyOldOnSuccess
TRUE to destroy original armor on success, FALSE to not do so.
[edit] Description
Returns a new armor based of oArmor with nPartModified
nPart - ITEM_APPR_ARMOR_MODEL_* constant of the part to be changed
nMode -
X2_IP_ARMORTYPE_NEXT - next valid appearance
X2_IP_ARMORTYPE_PREV - previous valid apperance;
X2_IP_ARMORTYPE_RANDOM - random valid appearance (torso is never changed);
bDestroyOldOnSuccess - Destroy oArmor in process?
Uses Get2DAstring, so do not use in loops
[edit] Requirements
#include " x2_inc_itemprop "
[edit] Version
1.61
[edit] See Also
constants: |
author: Lilac Soul