lfnetwork.com mark read register faq members calendar

Thread: Dialog or script?
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-20-2007, 04:02 PM   #1
sekan
Junior Member
 
sekan's Avatar
 
Join Date: Mar 2007
Location: Sweden
Posts: 418
Dialog or script?

How to i change in a dialog so the first time a npc talk to me it says "who are you?"
But the second time you talk to the npc it's says "so your back".
Do i need to do a script or just change something in the dialog editior?


[size=1] My mods | My webiste
Are you trying to foooooool me?
sekan is offline   you may: quote & reply,
Old 06-20-2007, 04:08 PM   #2
The Source
Rest In Peace
 
Join Date: Nov 2004
Posts: 2,304
Contest winner - Modding 
Quote:
Originally Posted by sekan
How to i change in a dialog so the first time a npc talk to me it says "who are you?"
But the second time you talk to the npc it's says "so your back".
Do i need to do a script or just change something in the dialog editior?
I used Journal Entry states to control this action. When the Exile meets up with an NPC for the first time, the dialouge would check what Journal Entry level you are at.

Example::
When you first activate an NPC's dialouge, the script with check to see if you are below 10. After you finish your first time through the dialouge, you have a script fire off to change to level 11. When you revisit the NPC, any dialouge that activates to a <11 value will not be activated.

I wish I had my scripts, so I can tell you exactly how to do this. Give me a few moments, so I can find it here in the forums.

Quick Edit::
You place the script within the dialouge by using the DLGEditor. Tools Here.



R.I.P. to 'The Source' and 'MacCorp'
2004-2008
The Source is offline   you may: quote & reply,
Old 06-20-2007, 04:12 PM   #3
Master Zionosis
Relax On Air
 
Master Zionosis's Avatar
 
Join Date: Sep 2006
Location: High In The Sky
Posts: 1,280
Current Game: TR 8: Underworld
Contest winner - Modding 
Assuming this is for KotOR II, there is already a script in the game files that you can use.

Create two opening dialog node's place the one that says the "who are you?" line first then the "so your back" line second

On the node you only want to appear once (in this case "who are you?") place "c_talkedto" (Without the quotes) in the conditional #1 field in TK-102's dialog editor.

And place "a_talkedtrue" (Without the quotes) in the Script #1 field in TK-102's dialog editor.

Now when the dialog node that the scripts and conditionals are set on that node will only appear the first time you speak to him.

Master Zionosis is offline   you may: quote & reply,
Old 06-20-2007, 04:14 PM   #4
sekan
Junior Member
 
sekan's Avatar
 
Join Date: Mar 2007
Location: Sweden
Posts: 418
this is for k1


[size=1] My mods | My webiste
Are you trying to foooooool me?
sekan is offline   you may: quote & reply,
Old 06-20-2007, 04:17 PM   #5
The Source
Rest In Peace
 
Join Date: Nov 2004
Posts: 2,304
Contest winner - Modding 
Since I used Journal Entries, I chose to have the dialouge scripts test values. When it comes to how KotOR I handles the dialogue, I never tried to create KI mod that tests for instances. Sorry man.



R.I.P. to 'The Source' and 'MacCorp'
2004-2008
The Source is offline   you may: quote & reply,
Old 06-20-2007, 04:18 PM   #6
Master Zionosis
Relax On Air
 
Master Zionosis's Avatar
 
Join Date: Sep 2006
Location: High In The Sky
Posts: 1,280
Current Game: TR 8: Underworld
Contest winner - Modding 
Quote:
Originally Posted by sekan
this is for k1
Ahh well unfortunatly conditionals in the dialog editor cannot be set for K1. Yes they can. ~tk102

And also to prevent confusion from anyone posting a K2 procedure when your after a K1 way, state in your first post weather it is for K1 or K2, it always helps


Last edited by tk102; 06-20-2007 at 04:29 PM.
Master Zionosis is offline   you may: quote & reply,
Old 06-20-2007, 04:28 PM   #7
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,765
Current Game: Assassin's Creed 4
Forum Veteran Helpful! Notable contributor 
Quote:
Originally Posted by sekan
this is for k1
In that case, for the dialog node that you want to be spoken the first time only,
use k_con_talkedto (returns TRUE if you haven't spoken yet) in the "Script that determines availability" and k_act_talktrue (sets the flag that you've talked) in the "Script that fires when spoken".

For an example, look at danm13_shuma.dlg
tk102 is offline   you may: quote & reply,
Old 06-20-2007, 04:34 PM   #8
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 sekan
this is for k1
Same method as master zionosis suggested . Use k_con_talkedto in the conditional field to check if the player hasn't spoken to the NPC yet and then use k_act_talktrue to set a local variable to tell the game that you have spoken to the NPC - place it in the action script field. Both of these scripts should go in the initial node of your dialogue .

Edit: Bah! tk beat me to it
Pavlos is offline   you may: quote & reply,
Old 06-20-2007, 04:39 PM   #9
Master Zionosis
Relax On Air
 
Master Zionosis's Avatar
 
Join Date: Sep 2006
Location: High In The Sky
Posts: 1,280
Current Game: TR 8: Underworld
Contest winner - Modding 
I really am not thinking today, lol

Master Zionosis 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 or script?

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

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