Well if the NPC can only do what it is coded to do I guess that makes sense. The story I am reading the game isn't really a game so the NPCs are sentient.
Can't you just make a headcanon that NPCs are influenced by their scripts? More on that, NPCs in MMOs respawn. There are probably some MMOs where NPCs don't respawn, but I can't remember any. And such MMOs are a minority, I think.
Oh, I am talking about the ritualist, maybe book 3? Sailus is proving my point. Having a story that is a game but it... surprise surprise... not really a game makes readers frusterated because they are defeating their own worldbuilding.