ChAiNz.2da Posted July 27, 2005 Share Posted July 27, 2005 balk! OK, I know I have done this before at least I think I have.. hehehe.. but for the life of me I cannot link to another .dlg from within a .dlg I've created a dialogue entry such as: + Disguises |_ +Are You Sure? |_ YES (script [color=yellow]hak_disguise[/color] fires to launch other .dlg) | |_+NO |_ (pasted copy of node to Main Menu) hak_disguise: //Initiates Holowan Cloakworks 2 Disguises .dlg -( hl_cloakworks.dlg ) //Author: andargor //http://www.andargor.com void main() { ActionStartConversation(GetFirstPC(),"hl_cloakworks"); } I've also tried a script using OBJECT_SELF instead of GetFirstPC(), but to no avail... Is there an include that perchance needs to be in the compile? (I've tried "k_inc_debug" & "k_inc_utility") I'm at a loss because the Hak Pad's "Upgrade Bench" function is the exact same layout and it launches "k_workbench_t3" (which is a .dlg file)... Does the "YES" reply need another "reply" or "entry" node and fire the script in those? Please help the the script/dialogue-tard® please .. hehehe --------------------- @andargor, I renamed the .dlg file during testing because the .dlg and the .ncs were named the same... wanted to cut down the confusion (on my part) Link to comment Share on other sites More sharing options...
Tupac Amaru Posted July 27, 2005 Share Posted July 27, 2005 I remember encountering this problem a while ago. Since then I always add a small delay before starting the new dialogue: DelayCommand(0.5, ActionStartConversation(GetFirstPC(),"hl_cloakworks" , FALSE, CONVERSATION_TYPE_CINEMATIC)); Link to comment Share on other sites More sharing options...
ChAiNz.2da Posted July 27, 2005 Author Share Posted July 27, 2005 Thanks Tupac! I'll definitely try that.. though would I need the "CONVERSATION_TYPE_CINEMATIC"? I only ask because I've never seen that function before (I'm uber-new-ish to scripting) <-- Link to comment Share on other sites More sharing options...
Darth333 Posted July 27, 2005 Share Posted July 27, 2005 Depending on how you see this, perhaps the CONVERSATION_TYPE_COMPUTER could be more appropriate in this case? It will show you the computer interface. Just my $0.02 Link to comment Share on other sites More sharing options...
ChAiNz.2da Posted July 27, 2005 Author Share Posted July 27, 2005 Originally posted by Darth333 Depending on how you see this, perhaps the CONVERSATION_TYPE_COMPUTER could be more appropriate in this case? It will show you the computer interface. Just my $0.02 Cha-Ching I'll be sure to give that one a try too! Thanks Link to comment Share on other sites More sharing options...
Tupac Amaru Posted July 27, 2005 Share Posted July 27, 2005 Originally posted by ChAiNz.2da I'll definitely try that.. though would I need the "CONVERSATION_TYPE_CINEMATIC"? The last two parameters are the default values, so it isn't neccessary to specify them if you are happy with them. CONVERSATION_TYPE_CINEMATIC would play the .dlg file like a normal conversation between two "people", so it probably wouldn't look so good in this case. I don't how the calling dialog is played, but I think it would look best if they are both of the same type, IMHO. Link to comment Share on other sites More sharing options...
ChAiNz.2da Posted July 27, 2005 Author Share Posted July 27, 2005 aaahh.. kewl.. see.. even old dogs can learn new tricks hehehe Thanks for the help Tupac and Darth333, I was hoping it was something like this rather than a "are you smoking crack, that isn't possible" Link to comment Share on other sites More sharing options...
ChAiNz.2da Posted July 28, 2005 Author Share Posted July 28, 2005 Worked like a CHARM! Thanks Tupac and Darth333! //Initiates Holowan Cloakworks 2 Disguises //Author: andargor //http://www.andargor.com //special thanks to Tupac Amaru & Darth333 for the proper script void main() { DelayCommand(0.5, ActionStartConversation(GetFirstPC(),"hl_cloakworks" , FALSE, CONVERSATION_TYPE_COMPUTER)); } Link to comment Share on other sites More sharing options...
Darth333 Posted July 28, 2005 Share Posted July 28, 2005 Originally posted by ChAiNz.2da Worked like a CHARM! A space farm! Glad you got it working This is a mod everyone wants (I mean the disguise mod, not the space farm...) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.