lfnetwork.com mark read register faq members calendar

Thread: Dialog Problems...
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 01-30-2009, 06:32 PM   #1
Ferc Kast
Modder
 
Ferc Kast's Avatar
 
Join Date: Jan 2007
Location: Tython
Posts: 1,586
Current Game: SWTOR
Helpful! Forum Veteran Contest winner - Fan Fiction Veteran Modder 
Dialog Problems...

While making a dialog for a TSL mod, I kept having 2 conditional script problems.

1) EDIT: Fixed this problem. Dunno what I did wrong, but it works perfectly now.

2) Using the gender conditionals. During the conversation, I have the computer tell the character their gender. I used a male PC (the red-haired vanilla one) while testing, and it told me that my character was a female. As with the other, I tried messing around to get it fixed, but it remained steadfast in its' decision that my PC was not male.

I've searched the main HL forum and the tutorial subforums, but I've seen nothing that will resolve either of my problems. I really hope that someone can help me.


Last edited by Ferc Kast; 02-01-2009 at 10:38 AM.
Ferc Kast is offline   you may: quote & reply,
Old 01-30-2009, 06:54 PM   #2
Star Admiral
N7 Commando
 
Star Admiral's Avatar
 
Join Date: Oct 2008
Location: Omega 4 Relay
Posts: 656
Current Game: Mass Effect 2
Folder extraordinaire Helpful! 
Could you post a copy of your script? I'm not sure what is wrong with the talkedto conditional, but for the gender question, you could try adding a ! to the value returned, as it seems that the conditional always returns the opposite of what the player's gender is.

- Star Admiral
Star Admiral is offline   you may: quote & reply,
Old 01-30-2009, 07:02 PM   #3
Ferc Kast
Modder
 
Ferc Kast's Avatar
 
Join Date: Jan 2007
Location: Tython
Posts: 1,586
Current Game: SWTOR
Helpful! Forum Veteran Contest winner - Fan Fiction Veteran Modder 
Quote:
Originally Posted by Star Admiral View Post
Could you post a copy of your script? I'm not sure what is wrong with the talkedto conditional, but for the gender question, you could try adding a ! to the value returned, as it seems that the conditional always returns the opposite of what the player's gender is.

- Star Admiral
As I just edited in a sec ago, the first problem is solved. I used the vanilla TSL scripts (c_isfemale & c_ismale) on their respective nodes. I still get this problem, though.

Ferc Kast is offline   you may: quote & reply,
Old 01-30-2009, 07:32 PM   #4
Star Admiral
N7 Commando
 
Star Admiral's Avatar
 
Join Date: Oct 2008
Location: Omega 4 Relay
Posts: 656
Current Game: Mass Effect 2
Folder extraordinaire Helpful! 
You should use the conditional on only one of the nodes. Let's say the male dialog node is first. You would use the c_ismale script in the conditional field. The female dialog node should be below the male one, and not have any conditional scripts for it.

- Star Admiral
Star Admiral is offline   you may: quote & reply,
Old 01-30-2009, 08:03 PM   #5
Ferc Kast
Modder
 
Ferc Kast's Avatar
 
Join Date: Jan 2007
Location: Tython
Posts: 1,586
Current Game: SWTOR
Helpful! Forum Veteran Contest winner - Fan Fiction Veteran Modder 
Quote:
Originally Posted by Star Admiral View Post
You should use the conditional on only one of the nodes. Let's say the male dialog node is first. You would use the c_ismale script in the conditional field. The female dialog node should be below the male one, and not have any conditional scripts for it.

- Star Admiral
That's what I tried. I only got it working by using my own version of the vanilla conditional.

Code:
//Why this works and not the other, I dunno.
int StartingConditional() {
    object PC = GetFirstPC();
    if ( ( GetGender(PC) == GENDER_MALE)) {
		return TRUE;
	}
	return FALSE;
}

Ferc Kast is offline   you may: quote & reply,
Old 01-30-2009, 08:06 PM   #6
Star Admiral
N7 Commando
 
Star Admiral's Avatar
 
Join Date: Oct 2008
Location: Omega 4 Relay
Posts: 656
Current Game: Mass Effect 2
Folder extraordinaire Helpful! 
The only thing that I can think of might be that the vanilla scripts check the gender using a global boolean check, while yours uses the GetGender() function. Perhaps for some reason the global for your character got messed up, but that wouldn't make a lot of sense. At least it works.

- Star Admiral
Star Admiral is offline   you may: quote & reply,
Old 01-31-2009, 06:02 PM   #7
Ferc Kast
Modder
 
Ferc Kast's Avatar
 
Join Date: Jan 2007
Location: Tython
Posts: 1,586
Current Game: SWTOR
Helpful! Forum Veteran Contest winner - Fan Fiction Veteran Modder 
Well, I have a related problem in the same mod that I had these problems.

An NPC, who I want to continue to face the direction they start out in, re-orients when saying their one-line dialog. So, how do I keep the NPC facing the same direction.

EDIT: And, as before, I managed to fix this problem.


Last edited by Ferc Kast; 01-31-2009 at 11:35 PM. Reason: Problem solved
Ferc Kast 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 > Dialog Problems...

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 08:02 PM.

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