Hardcore UFO wrote...
Of course you can add more functionality but that would still need total rewrite of all spellscripts
How so? My understanding is that any script that is included in another has all its contents made available to the script that calls/includes it.
Say you didn't like how Bioware handled MetaMagic feats when related to items, and added something like this into your spellhook (taken from the one I wrote for mine):
if (nType == BASE_ITEM_ENCHANTED_SCROLL || nType == BASE_ITEM_SCROLL ||
nType == BASE_ITEM_ENCHANTED_WAND || nType == BASE_ITEM_MAGICWAND ||
nType == BASE_ITEM_MAGICROD || nType == BASE_ITEM_MAGICSTAFF)
{
SetLocalInt (oCaster, "FB_METAMAGIC", METAMAGIC_NONE);
if (!FB_UMDScrollCheck() ) return FALSE;
}
else SetLocalInt (oCaster, "FB_METAMAGIC", GetMetaMagicFeat() );
While all spells that run the spellhook would now set that variable, you would have to go through every spell individually and change the Metamagic feat check over to something that checks that variable instead. At least, that's an example of what I think Shadooow meant.