You win a video game by fulfilling a condition the programmer set, not necessary the way he expected. "Make sure the NPC is not killed by enemies while going to floor X" ->
"Sure, I will kill him myself." While not what the programmer expected, the NPC cannot be killed, is in your party when you...