SteveBob7 Posted July 24, 2012 Share Posted July 24, 2012 I've looked at a lot of tutorials but don't have much experience with Papyrus. What do I need to put in my script to cause a weapon to instantly kill whoever/whatever it hits? Kinda like Mehrune's Razor but 100% of the time... Link to comment Share on other sites More sharing options...
elricshan Posted July 25, 2012 Share Posted July 25, 2012 why would you want that as it will be overpowered? but an easy way to do it is just make the weapon hit like 999999999 in damage Link to comment Share on other sites More sharing options...
gasti89 Posted July 25, 2012 Share Posted July 25, 2012 I think this is reachable by putting a magic effect on the weapon. Then putting a script on the magic effect, something like OnEffectStart(Actor akTarget, Actor akCaster) akTarget.Kill() EndEvent Link to comment Share on other sites More sharing options...
SteveBob7 Posted July 25, 2012 Author Share Posted July 25, 2012 I think this is reachable by putting a magic effect on the weapon. Then putting a script on the magic effect, something like OnEffectStart(Actor akTarget, Actor akCaster) akTarget.Kill() EndEvent Thanks but can I not just put "OnHit" or something to make it simpler? Link to comment Share on other sites More sharing options...
gasti89 Posted July 25, 2012 Share Posted July 25, 2012 The OnHit event has to be placed on the NPC receiving the damage. So unless you plan to put the same script on every single NPC ingame, you can't use it. The above script will instead be attached on a magic effect. Then the effect will be part of an enchantment. Finally the enchantment attached to the weapon. By default the "spells" on weapons fire when you swing an enemy, so the "oneffectstart" is for this purpose. Link to comment Share on other sites More sharing options...
J3X Posted July 25, 2012 Share Posted July 25, 2012 You might also want to add a command to disable essential NPCs immortality. Link to comment Share on other sites More sharing options...
SteveBob7 Posted July 25, 2012 Author Share Posted July 25, 2012 (edited) Cool, thanks guys. Will give it a go :) Edit: Worked great, thanks again :) Edited July 25, 2012 by SteveBob7 Link to comment Share on other sites More sharing options...
Recommended Posts