The goal: I want to have two NPCs, a farmer and a bear, spawn as the player approaches (but out of sight) and begin to fight. I want them to remain very near the space they spawned, which is on top of a rock bluff. I want these two NPCs to be invincible so that neither will kill the other until the player arrives. When the player arrives, their health should suddenly be active and they should become vulnerable allowing the player to step in and kill one or the other.
The current solution: I have a trigger box that, when loaded, enables a pre-placed bear and farmer and starts them fighting one another. Then, when the player reaches the box itself, an OnEnter script activates and, currently, does nothing except pop-up a message. I'm not sure if this is the best way to do it and I'd be totally open to suggestions but so far it seems to work well.
The problem: I have no idea to freeze the NPCs' health (making them invincible) and then unfreeze it. They also have a nasty habit of wandering off and I'd like to keep them rooted.
I appreciate any help you could give!