IanRB Posted June 30, 2020 Share Posted June 30, 2020 Hey everyone. So, I have a quick question, would it be possible to make a quest that runs every time you enter a new location, checks for enemies around with "bandit" on their name, and makes them essential? I'm doing a pacifist no-kill run using NPC Knockout Overhaul, and sometimes bandits will die in one hit skipping bleedout state completely, so I'd like to make sure there are no accidental kills.I wanna know if its possible 'cause I'm starting to dip my toes on Papyrus scripting (which would be the ideal way to go about this as far as I know), and having tried coding before and hating it, I don't wanna waste time for no reason.If it's possible, some pointers would be much appreciated. Thank you! Link to comment Share on other sites More sharing options...
dylbill Posted July 1, 2020 Share Posted July 1, 2020 Yes it's possible. There's a papyrus function SetEssential which works on actor bases. https://www.creationkit.com/index.php?title=SetEssential_-_ActorBase So the function would be SomeActor.GetActorBase().SetEssential() What you could do, ls make a cloak spell with conditions on it in the Creation Kit, IsEssential == 0, then put the script on the cloak's magic effect. Scriptname SetEssentialScript extends ActiveMagicEffect Event OnEffectStart(Actor akTarget, Actor akCaster) Utility.Wait(0.1) akTarget.GetActorBase().SetEssential() EndEvent You can put more conditions on the cloak if you only want it to apply to certain NPC types. Link to comment Share on other sites More sharing options...
IanRB Posted July 1, 2020 Author Share Posted July 1, 2020 Thanks so much! That's a lot of the work done already haha. I'll definitely learn more and pursue this then, thank you again! Link to comment Share on other sites More sharing options...
dylbill Posted July 2, 2020 Share Posted July 2, 2020 No problem. Good luck! Link to comment Share on other sites More sharing options...
Recommended Posts