ncrsn
Joined: 10 Feb 2006 Posts: 168
|
Posted: Thu Aug 16, 2007 6:02 am Post subject: DestroyItem() on equipped item |
|
|
Case is, I need to change various things in character every time he/she equips or unequips an item. Equiptest and unequiptest can do this well, but if equipped item is destroyed scripts cannot react on this because DestroyItem() does not activate unequipscripts.
There are some options to this problem. Doing scripts or adding destroyscript into itemdesc.cfg to every equipable item, OR, this could be handled changing DestroyItem to activate unequip and unequiptest if item is equipped and to be destroyed.
I would not like to step into the swamp of hardconfiguring by adding the DestroyScript-property to every equipable item. Some items already have different destroyscripts and playing around with those would probably destroy me.
Scripting around this is possible, making, say, DestroyObject()-function that makes the needed checks and then changing every instance of DestroyItem() to that. Or by making a script that keeps count of items equipped and reacts when something disappears 'out of nowhere', is destroyed. Still it is shame that this kind of solutions are needed.
So my wish is that DestroyItem would activate unequipscripts.
Realizing that the core development is going slow right now, I'm likely to do one-more-workaround. Glad POL allows them, things could be worse. Though, things could be better, too. I could have spend this time on scripting. |
|