Author Topic: AI Script for JUGGERNAUT ---- help ----  (Read 335 times)

Legacy_Morbane

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +0/-0
AI Script for JUGGERNAUT ---- help ----
« on: September 21, 2011, 04:10:48 am »


                Well I have a wraith with a sfx on it that makes it look as wide as a hallway and as tall as the ceiling - it is the Juggernaut. I have setup a waypoint circuit for it to follow - relentlessly - not stop to fight - stop for nothing just walk the waypoints for all eternity.

Also as a side question the sfx did not show up in game for the first test - would that be because I deleted the spawn script? All I left were the heartbeat and on blocked everything else was deleted to try to <i>mimic</i>  the AI  I am trying to develop. Problem is I dont know piddly about AI scripting.


ANy help would be awesome.

Another side note _ the Juggernaut will knckdown all in its path and squash them.
               
               

               


                     Modifié par Morbane, 21 septembre 2011 - 03:12 .
                     
                  


            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
AI Script for JUGGERNAUT ---- help ----
« Reply #1 on: September 21, 2011, 07:21:18 am »


               I don't even know what a SFX is..  (Could you enlighten me on that one?)

Did you paint the wraith, right click on him and select create waypoint, or are you using custom waypoints?

You are not providing much information nor are you being specific enough in your request...

I can only guess, at best..
               
               

               


                     Modifié par _Guile, 21 septembre 2011 - 06:23 .
                     
                  


            

Legacy_Xardex

  • Sr. Member
  • ****
  • Posts: 414
  • Karma: +0/-0
AI Script for JUGGERNAUT ---- help ----
« Reply #2 on: September 21, 2011, 12:33:52 pm »


               SFX generally means sound effect, but I get the feeling he's talking about a VFX. I don't think there even is a VFX in vanilla nwn that does what he says it should do.

But yeah, that's not really enough info to help you at all.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
AI Script for JUGGERNAUT ---- help ----
« Reply #3 on: September 21, 2011, 05:27:13 pm »


               I do not have time for a long explanation of the AI at the moment,  SO here are a few thread that may get you started.

http://social.biowar...index/8125129/1

http://social.biowar...index/7936851/1

http://social.biowar...2/index/7809287
               
               

               
            

Legacy_Morbane

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +0/-0
AI Script for JUGGERNAUT ---- help ----
« Reply #4 on: September 22, 2011, 01:56:50 am »


               Thanks all - so far I have decided to delete all the creatures scripts and start from scratch with just the very basic necessities: walk waypoints, be able to crush players, take damage - all while continually moving if possible.

(still accepting suggestions)


btw, the waypoints were made by right-clicking the creature.
               
               

               


                     Modifié par Morbane, 22 septembre 2011 - 12:58 .
                     
                  


            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
AI Script for JUGGERNAUT ---- help ----
« Reply #5 on: September 22, 2011, 02:44:31 am »


               Use OnCombatRoundEnd Event Script for your Juggernaut

Get the Distance Between all objects in the area, if the distance is within the creature's size (e.g. 0.1 to 8.0 or more) then use the DestroyObject(oObject, 0.0); function...
You can play a sound effect if you like, but I"m pretty sure that sound effects aren't continual unless you paint them, and you can turn them on and off via triggers/scripts as your "Juggernaut" walks around and enters triggers, or simply play the sound every X Seconds..

To do this you would use the creature OnSpawn event to ExecuteScript("scriptname", OBJECT_SELF); and that script would use the following function to emulate a continual sound:

//This will Fire the same script every 6 seconds..
DelayCommand(6.0, ExecuteScript("scriptname", OBJECT_SELF));

Replace "scriptname" with the name of the script that you create to play the sound at the location of "OBJECT_SELF" (the Juggernaut)...

Hope this helped you more..
               
               

               
            

Legacy_Morbane

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +0/-0
AI Script for JUGGERNAUT ---- help ----
« Reply #6 on: September 22, 2011, 09:59:41 am »


               _Guile - Sound! Great idea! Hadn't thought that far yet :\\