combination on hit effect

Post » Thu May 03, 2012 10:43 pm

with my two previouse post what i would like to do is make a script were on a critical hit (when attacking with the Hand To hand skill) my charactor will absorb health from my target. im trying to set the amount of of health absorbed to 50% of what ever the damage total is. i was figureing on a 1%-5% chance on the crital hit
User avatar
carly mcdonough
 
Posts: 3402
Joined: Fri Jul 28, 2006 3:23 am

Post » Thu May 03, 2012 10:07 pm

Your best bet is to set an OnHit event handler with OBSE, filtered so that it checks that the attacker has no weapons equipped (GetEquippedObject 16 == 0) and that he is not casting a spell (AnimPathIncludes "cast" == 0, if I remember right)
http://www.tesnexus.com/downloads/file.php?id=36374 which adds elemental effects to punches using that method, you can look into it and reverse engineer it to suit your needs if you feel up to it.
User avatar
Harry Hearing
 
Posts: 3366
Joined: Sun Jul 22, 2007 6:19 am


Return to IV - Oblivion