View Full Version : Help with dailog stuff, maybe something to do with scripts

06-29-2004, 12:09 PM
I'd like to know how you can make two NPCs talk between each other, and know how to initiate a dialogue even if the player doesn't choose to talk, as with the Tatooine Dark Jedi, who just start saying 'Lord Malak was most blah blah blah' even though you don't choose the dialogue. How do you do this?

06-29-2004, 07:41 PM
Use the Speaker and Listener fields in the Entry Structs. These should contain the tag names of the NPCs involved. Speaker will make the NPC speak, and Listener will make the speaker face the correct NPC while speaking.

The example below is a dialog where Bastila will say hi to Carth and Carth will say hi back to Bastila. The PC will stay silent.

->->Index: 0

->->StrRef: -1
->->Text: Hi Carth.
->->Speaker: Bastila
->->Listener: Carth
->->->->Index: 0

->->StrRef: -1
->->Text: Hi Bastila.
->->Speaker: Carth
->->Listener: Bastila
->->RepliesList (none)

->->StrRef: -1
->->->->Index: 1