Jump to content

Question about adding eqeffect ( iwd II )


Recommended Posts

If I add an eqeffect to an equipment that already has that effect will it overwrite the original effect or add simply and the new one?

 

For example if armor has 1/- cold resist and I patch the item to add 2/- cold resist will the end result be 3 cold resist or 2 cold resist?

Link to comment

There are a few in use in aTweaks. For example:

COPY_EXISTING somefile.itm override
 LPF DELETE_ITEM_EQEFFECT INT_VAR opcode_to_delete = 126 END //Remove movement rate penalty

// a few other function examples
COPY_EXISTING boot12.itm override // Gargoyle Boots
 LPF ITEM_EFFECT_TO_SPELL STR_VAR new_itm_spl = RR#BT12.SPL END
 LPF DELETE_ITEM_EFFECT INT_VAR opcode_to_delete = "-1" header = 1 END
 LPF ADD_ITEM_EFFECT
INT_VAR
  opcode = 146 // effect: #146 (cast spell at creature)
  target = 1 // target: 1 (self)
  parameter2 = 1 // param2: 1 (cast instantly)
  timing = 1 // timing mode: 1 (instant/permanent)
  resist_disepl = 3 // dispel/resistance: 3 (dispellable and bypasses magic resistance)
STR_VAR
  resource = RR#BT12 // resref: RR#BT12.SPL (newly created custom Stoneskin spell)
 END

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...