Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Neverwinter Nights: Enhanced Edition has been released! Visit to make an order. NWN:EE FAQ is available.
Soundtracks for BG:EE, SoD, BG2:EE, IWD:EE, PST:EE are now available in the Beamdog store.
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

Restore and fix effect 243

WispWisp Member Posts: 1,102
Effect 243 (Drain item charges) used to work in SoA, but it was buggy and sometimes it would destroy items seemingly at random, even ones without charges (including quest items). Bioware "fixed" this in ToB by simply disabling the entire effect.

It would be ever so nice if this effect could be restored to working order (sans the bugs). Additionally, I think it would be neat if the effect could be expanded to take the number of charges to be drained as its parameter 2 (currently thought to be unused).

Expected/desired behaviour is adapted from the spell description of the summon nishruu spell and presented in a IESDP-like format:

243 (0x0F3) Item: Drain Item Charges [243]
Parameter #1: Item Type
Parameter #2: Number to Drain
Magical items matching the 'Item Type' value on the targeted creature(s) will have their charges drained by Number to Drain. Non-recharging items drained of all their charges are destroyed.

Known values for 'Item Type' are:
0 Magical items excluding weapons
1 Magical items including weapons
I do not know what is exactly feasible, but conceivably this effect could limit itself to draining charges from ability headers of type 3 (magical ability), and only destroying the item if the word at 0x24 in the ability header is not 3 (i.e., don't destroy recharging items) and if said charge count reaches 0 as a result of the drain.

NB. If the number-to-drain bit is implemented, the existing uses of this effect need to be amended to have a non-zero value for parameter 2. For reference, these are nishruu.itm, spellh01.itm, golmag01.itm, spin550.spl and spwm140.spl.



Sign In or Register to comment.