New Weapon Bonuses

Discussion in 'General Modification' started by Cerulean the Blue, Jul 24, 2005.

Remove all ads!
  1. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    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.
     
  2. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,746
    Likes Received:
    375
    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 :(
     
  3. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    Pity. I was kind of thinking that myself, since the attack animation for the Sword of Life Stealing is the same as unarmed attacks.
     
  4. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,746
    Likes Received:
    375
    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.
     
  5. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    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.
     
    Last edited: Jul 26, 2005
  6. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    5,009
    Likes Received:
    255
    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).
     
  7. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    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.
     
    Last edited: Jul 30, 2005
  8. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    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.
     
  9. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,746
    Likes Received:
    375
    Serves them right! :aaaa:
     
  10. Lord_Spike

    Lord_Spike Senior Member Veteran

    Joined:
    Mar 25, 2005
    Messages:
    3,151
    Likes Received:
    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?
     
  11. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    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.
     
  12. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    5,009
    Likes Received:
    255
    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.
     
Our Host!