Scripted on-hit gauntlets using HtH stat?

Post » Wed Mar 03, 2010 4:11 pm

Is it possible to create gauntlets with a scripted on-hit effect that adds to your hand-to-hand attack damage according to your hand-to-hand skill? Could a script calculate the damage added according to a formula anologous to the blade skill formula? So,

Damage = BaseWeaponDamage * 0.5 * ( 0.75 + Strength * 0.005 ) * ( 0.2 + BladeSkill * 0.015) [for Blade skill]would become:Damage = BaseWeaponDamage * 0.5 * ( 0.75 + Strength * 0.005 ) * ( 0.2 + HandtohandSkill * 0.015)where the BaseWeaponDamage would be defined for each specific set of gauntlets.(so that you could create several pairs of gauntlets with varying BaseWeaponDamage).
  • Could a script achieve this?
  • Can a script assign a BaseWeaponDamage value to gauntlets, which are armor?

gothemasticator
User avatar
Lil Miss
 
Posts: 3373
Joined: Thu Nov 23, 2006 12:57 pm

Post » Wed Mar 03, 2010 4:05 pm

okay...attaching a a onhit block onto a weapon (or this case guantlets) doesnt work like that. It detects a hit (aka hve it a creature it can detect when the creature is hit but something).

The only way i could see this working to have a hidden background script that detects when the player uses a h2h attack animation, then get the ref they are looking at, if its a creature/NPC you could script more damage to be taken off depending on what gauntlets the player is wearing.

If you also want it to work for NPCs, do the same except instead of getting the crosshair ref, find you they are in combat with....that would be harder though, applying it to all NPCs like.
User avatar
Ezekiel Macallister
 
Posts: 3493
Joined: Fri Jun 22, 2007 12:08 pm

Post » Wed Mar 03, 2010 5:23 pm

Clearly my lack of knowledge is showing. :embarrass: By "on hit" I just meant on attack, which you suggest can be achieved by detecting the animation.

I guess I could explain myself a bit further: I haven't made any mods and am busy with enough stuff to make my getting involved unlikely. This hasn't been a problem for me so far, since I find everything I can dream up has been made by such talented people...

...everything except gauntlets that add to the hand-to-hand damage. All other attack skills use weapons which have their own damage-enhancement stats, but not hand-to-hand. I think it would be neat to add that into the game. And I don't know how, or if it is possible at all.

If I knew it was even theoretically possible, the chances of me learning enough modding skills to pull it off would go way up. So, I'm just asking out of ignorance and hoping that the answer is, "Yes, it can be done, and here's a rough idea of the approach to take."

gothemasticator
User avatar
Johanna Van Drunick
 
Posts: 3437
Joined: Tue Jun 20, 2006 11:40 am

Post » Wed Mar 03, 2010 3:15 pm

Have a look at http://www.tesnexus.com/downloads/file.php?id=18834 mod. I think it may do what you want.
User avatar
Farrah Barry
 
Posts: 3523
Joined: Mon Dec 04, 2006 4:00 pm

Post » Wed Mar 03, 2010 1:21 pm

Thanks. I have indeed looked at that mod. It doesn't do quite what I'm suggesting, and it adds magic effects, which is going beyond what I'm interested in.

I just want a hand-to-hand specialist to be able to get the same weapon-damage boosts that all other fighting skills get.

gothemasticator
User avatar
Devils Cheek
 
Posts: 3561
Joined: Sun Aug 13, 2006 10:24 pm

Post » Wed Mar 03, 2010 11:39 pm

http://cs.elderscrolls.com/constwiki/index.php/Hand_to_Hand_Game_Settings

You could probably make one that temporarily increases fHandDamageSkillBase when the Player uses the H2H attack animation, and resets it otherwise.

However, if an opponent throws a punch at the same moment you do, they'd get the boost too. It also depends on whether it can make the changes fast enough.
User avatar
Dina Boudreau
 
Posts: 3410
Joined: Thu Jan 04, 2007 10:59 pm


Return to IV - Oblivion