Callirgos Posted May 27, 2013 Share Posted May 27, 2013 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
Wisp Posted May 27, 2013 Share Posted May 27, 2013 Assuming IWDII does not diverge too much, it would depend on the value of parameter2 of the effects. But why not just remove the old effect? Link to comment
Callirgos Posted May 27, 2013 Author Share Posted May 27, 2013 That's a paramount Idea. Where can I find an example that removes an equip effect as a patch? Thanks! Link to comment
Wisp Posted May 27, 2013 Share Posted May 27, 2013 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
Callirgos Posted May 28, 2013 Author Share Posted May 28, 2013 Thanks! With your help, I was able to remove many folder items from my mod and use existing items instead. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.