Author Topic: Somebody pull this guy off me !  (Read 336 times)

Legacy_Ed Venture

  • Full Member
  • ***
  • Posts: 200
  • Karma: +0/-0
Somebody pull this guy off me !
« on: October 16, 2014, 09:31:34 pm »


               

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



               
               

               
            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
Somebody pull this guy off me !
« Reply #1 on: October 20, 2014, 11:27:04 am »


               

Change faction of those who fall to sleep to Nuetral ?  (e.g. not against anyone)



               
               

               
            

Legacy_Ed Venture

  • Full Member
  • ***
  • Posts: 200
  • Karma: +0/-0
Somebody pull this guy off me !
« Reply #2 on: October 20, 2014, 10:36:33 pm »


               

Guile,


I uh, hadn't thought of that.


Thanks. Now it's working fine.


 


Ed