lfnetwork.com mark read register faq members calendar

Thread: Qui-Gon's Script Shack
Thread Tools Display Modes
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Prev Previous Post   Next Post Next
Old 03-04-2012, 11:48 AM   #11
darth-ackbar
Rookie
 
darth-ackbar's Avatar
 
Join Date: Dec 2011
Location: Death Star
Posts: 158
Current Game: The Search For Revan
To do this, you need to set a boolean which will return true when you've talked to the character. Then create a conditional script for the line of dialog you want available after you've talked.

This script will set the boolean,

Code:
void main () {
  SetLocalBoolean(HAS_TALKED,0,TRUE);
}
This script will check to see if you've talked yet,

Code:
int StartingConditional() {
  int nTalked = GetLocalBoolean(HAS_TALKED,0);
  return nTalked;
}
In the dialog file, put the dialog node you want the character to say AFTER you've talked before at the top. Then, in the conditional field, put the name of the second script.

In the node of dialog you want the character to say the first time you talk, you need to put the first script in the script field. You can put it on any line of dialog but you need to decide where it would be best suited.

Depending on the situation, you can make this as complicated or simple as you want, with many different conditional scripts.


Search For Revan Website: www.kotorsearchforrevan.wetpaint.com

Search For Revan LucasForums Thread


<a href=http://www.kotorsearchforrevan.wetpaint.com target=_blank>http://www.kotorsearchforrevan.wetpaint.com</a>
darth-ackbar is offline   you may: quote & reply,
Post a new 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 > Qui-Gon's Script Shack

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 04:32 AM.

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