![]() |
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? |
Quote:
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. |
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. |
this is for k1
|
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.
|
Quote:
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 ;) |
Quote:
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 |
Quote:
Edit: Bah! tk beat me to it :xp: |
I really am not thinking today, lol
|
| All times are GMT -4. The time now is 06:38 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2011 - All rights reserved.