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.