Leviathan Posted March 11, 2005 Author Share Posted March 11, 2005 Thanks, Darth' !... Link to comment Share on other sites More sharing options...
Leviathan Posted March 16, 2005 Author Share Posted March 16, 2005 As that's never finished, I'ld like to know something : How can I merge two conditional scripts into a unique one ?... For example, how can I merge these scripts into one file ? if (GetPartyMemberByIndex(1) == OBJECT_INVALID && GetPartyMemberByIndex(2) == OBJECT_INVALID) { DO YOUR STUFF HERE } int StartingConditional() { string sTag = GetScriptStringParameter(); if ( GetIsObjectValid( GetItemPossessedBy( GetFirstPC(), sTag))) return TRUE; return FALSE; } I thanks you in advance for your invaluable help !... Link to comment Share on other sites More sharing options...
Leviathan Posted March 18, 2005 Author Share Posted March 18, 2005 Do not forget me, please... Link to comment Share on other sites More sharing options...
Darth333 Posted March 18, 2005 Share Posted March 18, 2005 I don't get what you are trying to do. You cannot combine a script that starts with void main() and a script that determines the availability of a .dlg branch with the int starting conditional () function However, if what you mean is how to make a script that will check, per example, if the PC is equipped with a blaster and if he is a consular, then do something, you will have to use the proper operators. You will find a similar example here: http://lucasforums.com/showthread.php?s=&threadid=143562 and all the info in this tutorial by tk102: http://www.lucasforums.com/showthread.php?s=&threadid=143390 In any event, look at the .nss files, you'find plenty of examples. Link to comment Share on other sites More sharing options...
Leviathan Posted March 19, 2005 Author Share Posted March 19, 2005 In any event, look at the .nss files, you'find plenty of examples. You're right : I've found a script which checks if you have Force influence or Force domination and actives words in certain dialogs... Thanks again !... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.