PDA

View Full Version : Dialogue?


Coolprogram
08-03-2008, 09:31 PM
Hello all,
I was wondering how I can make custom dialog's appear in KotOR. I have used both KotOR Tool and DLGEditor to try and get them into KotOR, but I have no luck. I know how to put custom NPC's and weapons into the game, but I can't seem to create custom dialogs. All help is appreciated
-CoolProgram

Sithspecter
08-03-2008, 09:49 PM
Are you trying to add dialog to a new NPC, or an existing one?

Coolprogram
08-03-2008, 09:57 PM
Im trying to add dialog to Darth Revan... I created a .MOD file and put in Darth Revan. but when I click on him it the indicator says dialog but revan doesn't do anything but turn around.

Sithspecter
08-03-2008, 10:48 PM
There's a dialog option in the NPC file, if you put the name of your dialog there, and put the dialog into the mod file, it should work out.

Coolprogram
08-03-2008, 11:13 PM
Sorry for the post, I figured it out, it was because of extension(s) at the end.
-Coolprogram

Coolprogram
08-04-2008, 01:59 AM
hey, instead of posting a different thread and wasting space, i thought I would post two questions here.

Q1: How do I add custom .WAV files to the sound/and or have sound files play durring dialog? - FOUND SOLUTION

Q2: How can I make people "warp" to other areas when they go through a door or something without them having to type "warp blank"? -Solved (Scroll down for Q3 & Q4:)
Thnks in advance,
-CoolProgram

Istorian
08-04-2008, 07:40 AM
@Q2: That's a door issue. Look at this post: Clicky (http://www.lucasforums.com/showthread.php?s=&postid=1571939#post1571939);)

|I|

Coolprogram
08-04-2008, 02:35 PM
Hey thanks! Wow you would think all my questions would be done, but guess what? They're not! lol (I never fail to ask ;) )
Q3: How do I make a character (Non-NPC) Follow a path (Has to do with waypoints I assume)

Q4: How do I make the NPC automatically talk to a character after he walks by?

Thanks for any help, and for those who have helped me tremendously already!

Istorian
08-04-2008, 03:39 PM
So, you want to enter a module, and when the PC passes in front of a person, he runs to the PC, and starts a conversation with him. Too easy!;)

You have to put a script that starts a dialogue in your NPC's OnNotice field.

For that you should:

1. Open up KT, Text Editor, (or notepad) and paste the following script:

void main() {
object oPC = GetFirstPC();
object oNPC = GetObjectByTag("Your_NPCs_Tag_Here", 1);

AssignCommand(oPC, ClearAllActions());
AssignCommand(oNPC, ActionMoveToObject(oPC, TRUE));
AssignCommand(oNPC, ActionStartConversation(oPC, "Your_dialogues_name_here"));
}


2. Compile it with a name let's say "dialogue" without the quotes, and place it in your module file.

3. Open up Kotor Tool again (hope you didn't close it;)), and go to File>Open GFF File> and select your NPC file. In the Scripts tab, in the OnNotice field put the name of your script ("dialogue" in this case), without the quotes and without the .nss extension. Save the .utc.

4. Pack everything in a .mod file, start the game, pass in front of the NPC, and hopefully, he will start the specified conversation with you!;)

|I|

Coolprogram
08-04-2008, 04:14 PM
Hey, thanks again, but for Q3 can I do that with non-NPC characters? and the script doesn't seem to work... do I need to compile it to a .ncs? oh and I don't have the OnPerception, I have OnNotice. (K1)

Istorian
08-04-2008, 04:29 PM
1. What you mean by non-NPC characters?

2. You have to compile the script, yeah!;) Sorry for that here is the tested one:

void main() {
object oPC = GetFirstPC();
object oNPC = GetObjectByTag("Your_NPCs_Tag_Here", 1);

AssignCommand(oPC, ClearAllActions());
AssignCommand(oNPC, ActionMoveToObject(oPC, TRUE));
AssignCommand(oNPC, ActionStartConversation(oPC, "Your_dialogues_name_here"));
}

3. OnNotice, then!

|I|

Coolprogram
08-04-2008, 04:32 PM
hm.. I mean like the character that you're playing as not something like darth revan or malak. Thank you for the tremendous help BTW.

Istorian
08-04-2008, 04:42 PM
You're welcome!;)

Who do you want to walk in waypoints? The PC, an NPC like Revan or Malak, or someone else?

|I|

Coolprogram
08-04-2008, 04:45 PM
The PC :-D

Istorian
08-04-2008, 04:50 PM
:xp:Why would you want to do that?

|I|

Coolprogram
08-04-2008, 04:54 PM
IDK, thought it would be fun ;)

Istorian
08-04-2008, 05:09 PM
I cannot help you with that, sorry...I don't know...Perhaps a more experienced member like tk, stoffe, RedHawke, EnderWiggin or Tupac Amaru could help you;)

|I|

EnderWiggin
08-04-2008, 05:21 PM
I'm not even sure if that's possible. I know you could make a cutscene, but if you mean in the regular game I can't help :confused:

_EW_

Coolprogram
08-04-2008, 06:02 PM
a cut-scene could help as well :)