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.

Script to fire a dialogue

Page: 1 of 1
 Seamhainn
01-16-2008, 12:08 PM
#1
Hello!

I want to start a dialogue with a script via a trigger. I implemeted the trigger and have the dialogue file.

What I need is a script which starts the dialogue which will essantially be a little cutscene. This scene, of course, should only happen ones.

Thanks for any help!
 Stream
01-16-2008, 12:58 PM
#2
Attach this script to the OnEnter event and it will fire the dialog when you enter the trigger

void main() {

object oPC = GetFirstPC();

if (GetEnteringObject() == oPC)
return;

ActionStartConversation(GetFirstPC(),"Dialog_File");

}
}

On the last possible node to be spoken, attach this script to the script that fires when node is spoken field.

void main() {


object oTrigger = GetObjectByTag("Trigger_Tag",0);

DestroyObject(oTrigger, 0.0, 0, 0.0, 0);

}

That should take care of both matters - hope this helps

--Stream
 Seamhainn
01-16-2008, 1:54 PM
#3
Thank you!

I saw now that the dialog has the talktrue entry. By chance that solves the problem anyway. I'll keep you informed.

I have placed the trigger. Unfortunately I can't get the coordinates right. I want to have a rectangle 10 to 10 square. Which Values must I put into the four x, y, z coordinates?

Thanks and take care
 DarthStoney
01-16-2008, 2:01 PM
#4
http://www.lucasforums.com/showthread.php?t=145870) see this thread it should help you.
Page: 1 of 1