You will likely need to use OBSE to make this work properly - using something like IsSoundPlaying to detect a sword hit, and check to see if the player has your sword equipped and if the swinging animation is playing (or maybe if the player just pressed the attack button).