Title | Remove PC Properties |
Author | The Krit |
Submitted / Updated | 01-12-2009 / 01-28-2009 |
Category | Code Modifications |
Expansions | NWN-1.69 |
Description | |
This should prevent the "PC Properties" item from appearing in the official campaigns and other pre-1.69 modules. It may also prevent the item from appearing on enemies in newer modules, depending on the module. It won't remove items that have already spawned (assuming a saved game), but the item should not appear on future opponents. This will also solve a (maybe not every) problem that some people have in being unable to attack after casting polymorph self. If this item still appears, please let me know the details of the encounter, including the spells cast by you and your opponent. Also, please list the files in your override whose whose name starts with "nw_s", "x0_s", or "x2_s". This can also be used by builders to suppress "PC Properties" in modules that do not have horses. However, this can be a little tricky, as you would need to make sure the module does not use the new (core-resource) 1.69 module event handlers, then re-compile all the scripts in your module. (Even then, paladins summoning their mount can still get this item.) Modules with horses can safely use this override, as long as you do not make use of the extra functionality. (Or if you are careful about it, or if you have completely replaced the horse system.) See below for more details. Basically, this override consists of a new skin include (for builders, but doesn't hurt players) and some BioWare scripts recompiled against the include, using the pre-1.69 spellhook. These can also be found in my alternate horse scripts -- I made a separate entry for this package because these scripts do not affect the horse system, just the skin variable system. Builders should be aware that my skin include has some extended functionality not supported by the standard BioWare scripts. In particular, I allow you to specify an item other than the PC's skin item for storing "skin variables". You can use this to store your own skin variables on an undroppable item not destroyed upon login, but the skin variables used by the standard horse system will still be kept on the skin item. Override file list: nw_s0_polyself.ncs nw_s0_shapechg.ncs nw_s0_tenstrans.ncs nw_s2_elemshape.ncs nw_s2_wildhsape.ncs x0_s0_firebrand.ncs x0_s0_gustwind.ncs x0_s0_missstorm1.ncs x0_s0_missstorm2.ncs x2_s2_gwildshp.ncs x3_inc_skin.nss |
Attachment | Size |
---|---|
![]() | 20.81 KB |
Add this to nw_default7 or whatever script runs when a creature dies:
object oItem = GetFirstItemInInventory();
while (GetIsObjectValid(oItem)) {
if (GetResRef(oItem)=="x3_it_pchide") DestroyObject(oItem);
oItem = GetNextItemInInventory();
}