Author Topic: Newcomer Question.  (Read 311 times)

Legacy_Iceheart2982

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Newcomer Question.
« on: April 29, 2011, 09:44:04 pm »


                I've only recently begun development on a multipart campaign module. The "Intro" module is nearly complete but I've come across an issue that I can't seem to figure out a solution for. One of the final quests in the module has an optional ending. I want the encounter to start off as a combat encounter but when the creature drops below 10% health I want him to go immune to damage, stop attacking, and start a conversation with the pc, giving them the option of either trying to redeem the creature or just killing him outright. Killing him will complete the main plot quest and finish the module, whereas trying to redeem him will offer a few extra rewards as well as a side quest. Problem is, I'm very inexperienced with nwscript so I wouldn't even know how to begin to achieve my desired result. Any help would be greatly appreciated. 

You may respond directly here or via email @ devilish_driver@hotmail.com. Thanks in advance for any responses received.
               
               

               
            

Legacy_Tassle_Hof

  • Newbie
  • *
  • Posts: 43
  • Karma: +0/-0
Newcomer Question.
« Reply #1 on: April 30, 2011, 01:30:29 am »


               I used an existing script in the game, nw_c2_i_surren, I copied it onto a new script page and renamed it and added a SpeakString at the bottom with what I wanted my NPC to say when he surrendered. I also changed the hit points from 30 to 40 because I wanted to make sure he had enough time to surrender without someone accidentally killing him. (Dalen always did that to me in the original game, the person would say, "I surrender!" just as he was swinging his axe and, oops, too late.) The script went on the UserDefined event of the NPC.
The rest of it with the choices of killing or redeeming and what not can be handled in the conversation the PC has with the NPC after they surrender.
Hope that at least helps a bit. Others with more experience may have better ideas.
               
               

               
            

Legacy_Iceheart2982

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Newcomer Question.
« Reply #2 on: May 01, 2011, 03:38:51 am »


               That did the trick, thanks. It took a little modifying to get exactly what I needed but the basic groundwork was already there. Thanks again.