lfnetwork.com mark read register faq members calendar

Thread: Make someone open a dialog with you when you enter an area.
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 06-10-2007, 05:29 AM   #1
Mindtwistah
Junior Member
 
Mindtwistah's Avatar
 
Join Date: Apr 2007
Location: Derka Derka
Posts: 470
Make someone open a dialog with you when you enter an area.

How do I make someone open a dialog with you when you enter an area?


Mindtwistah is offline   you may: quote & reply,
Old 06-10-2007, 08:58 AM   #2
Pavlos
Scruffy Englishman
 
Pavlos's Avatar
 
Join Date: Sep 2005
Location: The real world/ivory towers
Posts: 1,974
Current Game: Viking Warrior Poets
Quote:
Originally Posted by Mindtwistah
How do I make someone open a dialog with you when you enter an area?
A simple script such as the one below should do it when you place it in the correct field of the .are file for your module.

Code:
void main() 
{
   if (GetIsPC(GetEnteringObject()) && !GetLoadFromSaveGame() /*&& !GetGlobalBoolean("FooBar")*/)
   {

       AssignCommand(GetObjectByTag("RandomObject"), ActionStartConversation(GetFirstPC(), "my_dlg"));
              
   }
}
If you set a global boolean then the dialogue will only trigger once - just remove the /* and the */ to uncomment it. Replace all the strings ("RandomObject", "my_dlg", "FoorBar") with the ones you intend to use .

If this is for an already existing area then might I suggest "Injecting" the script?
Pavlos is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Make someone open a dialog with you when you enter an area.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:33 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.