I wish you had said that from the beginning. The kind of script I wrote is only going to be effective with a specific weapon.
What you're describing is a major change to the combat engine. Had you mentioned earlier that this was intended to work for any weapon, I would have told you that such major changes across-the-board would be impossible. While it would be possible to attach a script to every single weapon in the game (a mod that would play havoc with the frame rate) it still couldn't take into account weapons added by other mods, by which I mean ANY weapons added by other mods - not just new weapons, but even copies of existing weapons that have a different object ID.
Before you spend any more time trying to figure out why you're having trouble with the script, you should take a moment to consider the project idea itself. I honestly don't think that what you're planning is possible on a wide scale.
I realize it's a huge undertaking, but I think it may be possible
I've already created the basis for it, with inspiration from another mod; by adding a "fortify attack" spell at 100 to every race and creature in the game (with expansion) and even one for CreatureX and I'm about to do it with Giants mod as well
it works fine, both on my PC and my Xbox1, but it kind of makes the game easier, since I can get a hold of a good weapon from the get-go and deal some serious damage
hence I wanted
requirements for using the weapons
I've made some basic calculations, which I use as foundation for how much strength/skill one needs in order to use
any weapon that the game has to offer, other mods included
I was thinking that if I do vanilla weapons first and then HELLUVA compilation of weapons as well, then I would have the ground-work laid out for me
then I would expand, upon request, if someone asked me
if per example I change the Chitin War Axe to have these attributes, then it would apply to
all chitin war axes; right now it's just a matter of figuring out the script
luckily I have all the time in the world to do this, hence I feel that I want to at least
tryif I can just get one single weapon to work with the script, there's no stopping me from applying it on other weapons as well(?)
I've modded quite a bit before and made the Combat_Overhaul for Fallout 3 and this would be something similar
I love Morrowind the most of all Elder Scrolls games, but
I personally have an issue with it's combat (same as I had with Fallout 3) and I'm convinced that this can be fundamentally changed in some
easy way
considering that Morrowind is made to run on the Xbox1, which has a Pentium3 700Mhz and 64MB RAM, I think it
could be possible to run it on today's computers
granted that Morrowind don't do Dual/Quad-core, but
most PC-users have 3Ghz CPU's these days and about 4GB RAM
if nothing else it would be a proof of concept
personally I think this could revolutionize Morrowind for a lot of players and if nothing else, at least for me
at the same time I would gain some more knowledge of scripting, etc. which would help me in future modding
I know that this sounds like a crazy concept; but I imagine that with will-power and time, it is feasible
the scripts you have provided thus far are all very "simple" and thus
shouldn't require too much from the computer, albeit if applied to every weapon it may strain it; but if it
can be done it would make a huge difference in the way people perceive Morrowind
as mentioned, I am truly glad that you take your time to help me out with this and I hope that you're not discouraged by the magnitude of this, because I firmly believe that this can be applied at least to 1 weapon and if only 1 weapon can do it, then I can figure out how to do it on the rest of them
as mentioned, time is not an issue
I'll keep digging into your scripts and see where the flaws are, because (in my mind) they seem perfectly logical and functional
any further assistance is appreciated, since I can tell that you know a whole lot more about this than me =)
who knows, this might become something big?
and rest assure that your name will be plastered all over the credits if I ever achieve this =)