Author Topic: Is it possible to make a PC talk like an NPC during a conversation?  (Read 659 times)

Legacy_simomate2

  • Full Member
  • ***
  • Posts: 133
  • Karma: +0/-0


               As I understand it, you can script it to force the PC to start a conversation with themself, but is it possible, during a conversation, to make the PC speak as though they're an NPC? I ask because I've began developing a story driven module in which the player must be a character named Atrix, who has his own personality and backstory. I would like to have it, if possible, like this:

NPC: Hello there!
PC: [CONTINUE]
NPC (But it's actually the PC): Hello.

Does that make sense? Is it possible?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Is it possible to make a PC talk like an NPC during a conversation?
« Reply #1 on: October 17, 2013, 07:40:04 am »


               Yes, using NWScript function SpeakString();
               
               

               
            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
Is it possible to make a PC talk like an NPC during a conversation?
« Reply #2 on: October 17, 2013, 09:34:41 pm »


               In the conversation editor, you can specify who speaks a node. Whoever the PC is speaking to is considered Owner, but you can pull others into the conversation by specifying their tag. So if you have the PC start the conversation with himself, he will be considered Owner and speak those lines. You can then have the NPC speak his lines by specifying the NPC's tag on his nodes.