What is wrong with a bit flag?
Nothing, probably the best way. Yet Im not sure it is really needed so I decided to keep it the way I presented for now that is a single collumn in polymorph.2da UseItems with three values: default behavior (**** or 0), can use items (1), cannot use any items (such as potions) (-1). BTW it is fully compatible with custom content - it will allow to use any items that are not equippable and that are pointing to the rod, potion, scroll, wand, traps, thieves tool, healers kit, misc, container itemprops category. So its not hardcoded on a specific baseitem line and will work even with items from CEP for example.
If someone wants to help me, you can prepare a modified polymorph.2da file and set the values 0/1 for each polymorph.
Except that I also finished the feature to disable unequipping of cursed items (based on Game difficulty -> hardcore+). Which will come with a modified script for removing curse). Also I fixed the throwing weapon exploit, I mean directly in engine which is way better than my previous attempt in NWScript (which had some false positives over time...).
Few things I need to decide yet:
- if Remove Curse is cast on character wearing the cursed items what should happen: remove the items cursed flag?, unequip them but keep them cursed? or something else?
- any other standard spell/ability should do that ?
- additionally I can enable some extended behavior because builder can set the cursed flag to be not just 0 and 1 but even 2 (try putting 2 into SetItemCursedFlag and you will see) - so I can code that items with cursed flag 2 will be unequippable without problems etc.





Retour en haut





