View Full Version : Script to fire a dialogue

01-16-2008, 12:08 PM

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!

01-16-2008, 12:58 PM
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)



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


01-16-2008, 01:54 PM
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

01-16-2008, 02:01 PM
http://www.lucasforums.com/showthread.php?t=145870 see this thread it should help you.