mrdefender Posted December 2, 2005 Share Posted December 2, 2005 I can not understand why this script doesn't want to work... if ( nSection == 0 ) { DelayCommand(0.1, ActionStartConversation(GetFirstPC(), sTag , FALSE, CONVERSATION_TYPE_COMPUTER)); } In the dialogue editor: script #1 defmod_benches 0 0 0 0 0 defmod-replicator I also tried: script #1 defmod_benches 0 0 0 0 0 "defmod-replicator" But when I go to the dialogue option that would execute the script, nothing happens after the wrist console "conversation" is finished.... ??? Link to comment Share on other sites More sharing options...
Dashus Posted December 3, 2005 Share Posted December 3, 2005 if ( nSection == 0 ) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(), sTag , FALSE, CONVERSATION_TYPE_COMPUTER))); } You have to assign the Action Link to comment Share on other sites More sharing options...
stoffe Posted December 3, 2005 Share Posted December 3, 2005 I can not understand why this script doesn't want to work... if ( nSection == 0 ) { DelayCommand(0.1, ActionStartConversation(GetFirstPC(), sTag , FALSE, CONVERSATION_TYPE_COMPUTER)); } Is the above script the whole script? If so, you haven't defined sTag and nSection anywhere, and you have no main() function. Who is running this script? I.e. who is the owner of the dialog? Link to comment Share on other sites More sharing options...
mrdefender Posted December 3, 2005 Author Share Posted December 3, 2005 No, that is not the entire script, only the part that doesn't work. Here's the full script: void main() { int nSection = GetScriptParameter( 1 ); int nOption = GetScriptParameter( 2 ); int nValue = GetScriptParameter( 2 ); string sTag = GetScriptStringParameter(); if ( nSection == 0 ) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(), sTag , FALSE, CONVERSATION_TYPE_COMPUTER))); } //////////////////////////////////////////////////////////////////////////////////////// if ( nSection == 1 ) { ShowUpgradeScreen(OBJECT_INVALID, GetFirstPC(), TRUE, FALSE); } if ( nSection == 2 ) { ShowUpgradeScreen(OBJECT_INVALID, GetFirstPC(), FALSE, TRUE, "itemscustom"); } if ( nSection == 3 ) { ShowUpgradeScreen(OBJECT_INVALID, GetFirstPC(), FALSE, TRUE, "itemsgame"); } if ( nSection == 4 ) { ShowChemicalUpgradeScreen(GetLastUsedBy( ) ); } if ( nSection == 5 ) { ShowUpgradeScreen(OBJECT_INVALID, GetFirstPC(), FALSE, TRUE, "itemsdroids"); } if ( nSection == 6 ) { ShowUpgradeScreen(OBJECT_INVALID, GetFirstPC(), FALSE, TRUE, "itemsupgrade"); } if ( nSection == 7 ) { ShowUpgradeScreen(OBJECT_INVALID, GetFirstPC(), FALSE, TRUE, "itemsupgrademira"); } // WristConsole Files // ================================== if ( nSection == 20 ) { // Wrist Console Modules ////////////////////////// if ( nOption == 1) { if ( nValue == 0) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"wristconsole", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 1) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"replicator", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 2) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"bonus", FALSE, CONVERSATION_TYPE_COMPUTER))); } } // Wrist Console Party Modules ///////////////////////////////// if ( nOption == 2) { if ( nValue == 0) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"partyplayer", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 1) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"partyatton", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 2) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"partybaodur", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 3) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"partymand", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 4) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"partyg0t0", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 5) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"partymaiden", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 6) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"partyhk47", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 7) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"partykreia", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 8) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"partymira", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 9) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"partyt3m4", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 10) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"partyvisas", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 11) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"partyhanharr", FALSE, CONVERSATION_TYPE_COMPUTER))); } if ( nValue == 12) { DelayCommand(0.1, AssignCommand(GetFirstPC(), ActionStartConversation(GetFirstPC(),"partydisciple", FALSE, CONVERSATION_TYPE_COMPUTER))); } } } // Movie Player / Unlocker // ========================== if ( nSection == 25 ) { PlayMovie ( sTag ); } // Intergrated MODs // ================================== if ( nSection == 30 ) { if ( nOption == 1 ) { DelayCommand(0.1, ActionStartConversation(GetFirstPC(),"hakpad_start" , FALSE, CONVERSATION_TYPE_COMPUTER)); } if ( nOption == 2 ) { DelayCommand(0.1, ActionStartConversation(GetFirstPC(),"rh_correction" , FALSE, CONVERSATION_TYPE_COMPUTER)); } if ( nOption == 3 ) { DelayCommand(0.1, ActionStartConversation(GetFirstPC(),"holo_dr_emitr" , FALSE, CONVERSATION_TYPE_COMPUTER)); } if ( nOption == 4 ) { DelayCommand(0.1, ActionStartConversation(GetFirstPC(),"d3_getloc" , FALSE, CONVERSATION_TYPE_COMPUTER)); } } } At present, only the main character is using the wrist console but all party members will/should use the scripts (though the main character will be in that party 99% of the time) Link to comment Share on other sites More sharing options...
clydeski Posted December 4, 2005 Share Posted December 4, 2005 mr Same comment as I made here http://www.lucasforums.com/showthread.php?t=156294. Looks like you are setting nOption and NValue to the same parameter. Goodluck. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.