shamelessposer Posted October 19, 2005 Share Posted October 19, 2005 Two questions regarding dialogs: 1.) How do I get a character's speech to just appear as a "pop-up," like a commoner on Taris? B.) How do I get the whole "Carth is blahblahblah" at a certain point thing that lets characters unlock dialog over time? Link to comment Share on other sites More sharing options...
brwarner Posted October 20, 2005 Share Posted October 20, 2005 1 is you make the dialog so it has one entry and one blank reply -[OWNER]BlahBlahBlahPopup -[End Dialog] Link to comment Share on other sites More sharing options...
Darth333 Posted October 20, 2005 Share Posted October 20, 2005 For n.1 just make a dialogue with an entry and no reply. For no. 2, you have to use conditional scripts. Kotor doesn't use time but rather events such as plot advancement or leveling up per example. Let's say you'd like a dialogue to become available only if Juhani is a party member, your PC is at least lvl 12, has at least 15 in demolition skill, is on Korriban, has dicovered 4 Star maps and has either a dealy plasma mine or a deadly gas mine in his inventory (I tried to put a lot of things in the example so it is more likely you will find something you are looking for in there). You would need a script like this: int StartingConditional() { object oPC= GetPCSpeaker(); int nLevel = GetHitDice(oPC); int nSkill = GetSkillRank(SKILL_DEMOLITIONS, oPC); int nPlanet = GetGlobalNumber("K_CURRENT_PLANET"); int nPlot = GetGlobalNumber("K_STAR_MAP"); //insert item resref object oMine1= GetItemPossessedBy(oPC, "G_I_TRAPKIT009"); object oMine2= GetItemPossessedBy(oPC, "G_I_TRAPKIT012"); if ((IsNPCPartyMember(NPC_JUHANI) == TRUE) && (nLevel >= 12) && (nSkill>= 15) && (nPlanet == 30) && (nPlot == 40) && ((GetIsObjectValid(oMine1)) || (GetIsObjectValid(oMine2)))) { return TRUE; } return FALSE; } I understand this is for K1, so for the star maps and planets globals, check k_qa.nss You'll find more in this post: http://www.lucasforums.com/showthread.php?p=1903207#post1903207 This overview of scripting syntax may also be useful: http://www.lucasforums.com/showthread.php?t=143390 Link to comment Share on other sites More sharing options...
shamelessposer Posted October 20, 2005 Author Share Posted October 20, 2005 You rock as hard as ever, Darth333. Thanks! Link to comment Share on other sites More sharing options...
Pavlos Posted October 22, 2005 Share Posted October 22, 2005 I tried to do the NPC one line thing, with several different lines, it will only do the one. What must I do to get them to alternate? Link to comment Share on other sites More sharing options...
Darth333 Posted October 22, 2005 Share Posted October 22, 2005 I tried to do the NPC one line thing, with several different lines, it will only do the one. What must I do to get them to alternate? I am not sure I get that Could you rephrase pls? Link to comment Share on other sites More sharing options...
Pavlos Posted October 22, 2005 Share Posted October 22, 2005 What I mean is: Is there any way to get the NPC to say different things every time you click on them, just having all the different entries doesn't seem to work. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.