Hey Everybody,
Been dinking around with this one long enough !
Help!!!!
I started working on this about 4 or 5 months ago. Got close several times, but never quite. So I go onto something else and keep coming back.
The set up. I'll try to be breif.
PC enters inn. If it is night, 3 groups of 8 NPCs by faction are spawned. All having individual Tags for the purpose of having them do random animations. In convo with the Innkeeper, all are copied and set to 3 group tags. The 3 groups attack one another. Their OnDamaged scripts knock them out (EffectSleep and Surrender) after a minimal amount of damage. So far, so good. When there is about 6 of them still standing, I send in the Innkeeper. This is the never quite. I have tried several scripts on his OnCombatRound and OnHeartbeat. Several get him to attack, but he gets a little carried away. Mostly by beating the sleepers to death. I have tried several ways of getting him to not target enemies that have the effect and to chill out when the fight is over.
The upside is that it is a good fight to watch and wade into.
Ed