Hm. You have to break some eggs if you want to cook an omelet.
That is, no good things come for free.
To change the Holy Avenger via script is possible. But you have to re-script it.
How much of it is there to rescript... that depends on how much work you are willing to do.
Perfection may not be achievable, though. Go hack the exe if you want perfection.
But a good compromise between quality and fidelity would be the one mentioned by Terrorble.
Basically you banish the HolyAvenger item property from your module.
Whenever something with HolyAvenger is acquired, you substitute it on-the-fly with a set of your itemproperties -- meant to do the work of the original HolyAvenger.
Be careful and ensure that your new itemproperties only work for genuine paladins.
And you should also modify the spell Holy Sword accordingly.
If you want ideas for your own implementation, take a look at my [Fox Spells].
There is an include in it [fox_inc_holyavng] that holds most of the functionality for my solution.
To understand the code, start looking at the functions meant to hook the Module Events.
From there you walk the walk and see what I do. Quite straightforward, really.
[edit][
In a nutshell, my HolyAvenger is 100% script controlled, even the dispel magic portion of it.
Of course you are not required to go that far. You may reuse the standard game dispel magic mechanics (which, by itself, shall save you a ton of scripting).
-fox
Modifié par the.gray.fox, 11 juillet 2011 - 10:42 .