Author Topic: Variables to Adjust default Combat Behavior?  (Read 479 times)

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
Variables to Adjust default Combat Behavior?
« on: March 23, 2015, 09:44:19 pm »


               

I think I read something a while ago about being able to set variables on a monster to change it's combat behavior. Anyone know where I can find the variables and values? 



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Variables to Adjust default Combat Behavior?
« Reply #1 on: March 23, 2015, 10:33:16 pm »


               http://www.nwnlexico...w_flag_behavior


You can set these flags on a local variable - IIRC the boar template is an example.
               
               

               
            

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
Variables to Adjust default Combat Behavior?
« Reply #2 on: March 24, 2015, 01:02:09 am »


               

Consider yourself hugged. Thank you Proleric!



               
               

               
            

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
Variables to Adjust default Combat Behavior?
« Reply #3 on: March 25, 2015, 07:01:05 pm »


               

I found this also. Though I'm not sure entirely how it works ( I just really need to play with it).


http://www.nwnlexico...2_inc_switches 


 


How I'm reading this, as long as the OnSpawn has an include for x2_inc_switches then I should be able to add the variable X2_L_SPAWN_USE_STEALTH to 1 (or true) on the creature when it spawn, then it will attempt stealth right away. 



    

               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Variables to Adjust default Combat Behavior?
« Reply #4 on: March 25, 2015, 11:31:01 pm »


               This might help:

http://neverwinterva...-configure-them


More were introduced in 1.69 for horses:

http://www.nwnlexico...odule_Variables


I made a template for the 1.69 module load event here:
http://neverwinterva...ript/horse-demo


I'm unable to check right now, but IIRC it might be missing some older X2 switches - someone (Shadooow?) may have made a better one.
               
               

               
            

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
Variables to Adjust default Combat Behavior?
« Reply #5 on: March 26, 2015, 04:02:13 am »


               

Thanks again, I'll give it a good read.