Does anyone know where the weapon bonuses are coded, and if it is possible to edit/add new ones. I know how to add bonuses in protos, I want to know where to go and how to add new bonuses. The Sword of Life Stealing bonus doesn't seem to work.
The 'unholy' bonus will make the game think you are carrying a warhammer, since Hedrack's warhammer is the only unholy weapon in the game. This leads me to think the bonuses are hard-coded
Pity. I was kind of thinking that myself, since the attack animation for the Sword of Life Stealing is the same as unarmed attacks.
I'm not that familiar with it, is it original, or added in? If added in, it might be based off one of the spells that does the same thing.
It appears to be part of the original game, not added in, but not implemented either. Nor does it appear to work. It is #4154 in protos. 'Sword of Life Stealing' is both the name of the sword and the name of the Weapon Bonus. I cannot find a spell that gives the user temp hp and drains levels on a critical hit. What I would like to do is make a weapon that implements 'Vampiric Touch' on a critical hit. Probably way over my head as I am just starting to mod things. Thanks for the help.
I don't even think vampiric touch works properly in this game - you can do damage with a successfull hit but don't recieve HP (or at least I never have).
I will have to investigate that. I have never used the spell. I may try making a sword that can cast that spell and see what happens. Thanks for the tip.
I did some testing. Vampiric Touch does indeed not function correctly. It does damage the target (though the damage is incorrectly calculated), but is does not give the caster the damage as temp hp. However, the Sword of Life Stealing bonus does work. " Sword of Life Stealing is +2 greatsword that upon a critical hit, grants the wielder 1d6 of temporary hit points and forces the target to make a Fortitude save against a DC of 16 or suffer a temporary negative level." The temp hp show up in the status floater that appears above the character when you hold the mouse on the character, and stays until used to absorb damage or until 1 day game time has passed. So far I have only tested it on trolls and giant crayfish, and the negative level effect immediately reduces them to -5 hp (that's real hp, not non-leathal), which causes them to drop. I assume this is because they have no character levels to begin with, and the negative level drops them to level -1.
True, Ted... ...but it should only remove a hit die, killing them if this causes a drop into negatives. Is there a way to fix it?
We believe weapon bonuses are hard coded in temple.dll. I have been looking and haven't been able to find anything outside of the temple.dll that accounts for them. Unfortunately, I am no .dll hacker yet. It would be nice if weapon bonuses could be scriptable. It would be cool (though probably totally unbalancing) if we could make Stormbringer and Mournblade.
I'm gonna install shiningted's new mod, then take another look at the monsters in protos.tab, I want to fix monsters so they get the racial stats (from the MM) and add class levels to them to keep the total stats similar to what they were before I started. At the moment protos still lists many monsters as having too many hit dice, inaccurate saving throw bonus' etc... this should help to fix the problem in most instances.