Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

I need a few scripts and hints

Page: 1 of 1
 Ataris
07-18-2008, 6:31 PM
#1
My mod is coming along nicely. However, I have tried several different scripts (of my own) and none of them will accomplish what I want.

How do I make an "animated cutscene," one that doesn't involve the player in any way, but other people?

I need a script for setting different dialog options in the same dialog file. I know it's there, but I can't find it with the Kotor Tool.

I tried making a character walk towards the player during a cutscene (and even before the cutscene(conversation), but the npc will not move.
 Canderis
07-18-2008, 7:21 PM
#2
try to be more discriptive or know 1 can help you (give good details of exactly what you want it to do)
 Tupac Amaru
07-19-2008, 5:53 AM
#3
How do I make an "animated cutscene," one that doesn't involve the player in any way, but other people?

Dialogs have a Speaker and Listener fields. Put the tag of the NPC who is currently talking in the Speaker and the tag of the NPC he is talking to in the Listener field. Leave the reply nodes empty. Then they will talk to each other and not the player.

If the conversation is started with a script you can also set the default speaker and listener of the cutscene:

void main () {
object oSpeaker = GetObjectByTag("YourSpeakerTag");
object oObjectToConverseWith = GetObjectByTag("YourListenerTag");

AssignCommand(oSpeaker, ClearAllActions());
AssignCommand(sSpeaker, ActionStartConversation(oObjectToConverseWith, "YourDialogFileName"));
}

I tried making a character walk towards the player during a cutscene (and even before the cutscene(conversation), but the npc will not move.

Run this script on an entry node and use a sufficient delay for that node. Replace the tag of oActionSubject with that of your character that should be walking towards the player.
void main() {
object oActionSubject = GetObjectByTag("YourTagHere");

// This is the object the action subject should move to.
object oMoveTo = GetFirstPC();

// If this is FALSE, the action subject will walk. If TRUE it will run.
int bRun = FALSE;

// This is the desired distance between the action subject and oMoveTo.
float fRange = 1.0;

AssignCommand(oActionSubject, ClearAllActions());
AssignCommand(oActionSubject, ActionForceMoveToObject(oMoveTo, bRun, fRange));
}
 Ataris
07-26-2008, 8:47 AM
#4
That helped, thanks
Page: 1 of 1