Author Topic: Change NPC Sound Set On-the-Fly  (Read 339 times)

Legacy_BigHairyAndy

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Change NPC Sound Set On-the-Fly
« on: September 01, 2012, 08:47:09 pm »


                Is it possible to change the Sound Set of a NPC via scripting rather than having to remake the NPC in the toolset?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Change NPC Sound Set On-the-Fly
« Reply #1 on: September 01, 2012, 09:20:49 pm »


               only with use of nwnx
               
               

               
            

Legacy_BigHairyAndy

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Change NPC Sound Set On-the-Fly
« Reply #2 on: September 02, 2012, 12:28:32 am »


               How complex is the scripting knowledge required to do so?
               
               

               
            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
Change NPC Sound Set On-the-Fly
« Reply #3 on: September 02, 2012, 12:53:31 am »


               Setting up NWNX is complicated, but the script itself is simple. You're looking for SetSoundSet() in nwnx_funcs. The usage would be...

SetSoundset(oCreature, nSoundSet);

... where nSoundSet is, IIRC, the index for the soundset in soundset.2da.
               
               

               


                     Modifié par Squatting Monk, 01 septembre 2012 - 11:57 .
                     
                  


            

Legacy_BigHairyAndy

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Change NPC Sound Set On-the-Fly
« Reply #4 on: September 02, 2012, 01:17:28 am »


               Ah, fantastic. Thanks.