JarrekStar Posted March 2, 2005 Share Posted March 2, 2005 I would really like to know how can i make the correct scripts to this dialogue...Please help me! I know this may have been asked before but I just couldn't find it. So could you please tell me how to do these things? You help is really appreciated... Dialogue: (Owner) - Good day! What can I do for you? (PC) - Well, what can you do for me? (Owner) - I can heal you and your party! Ok, do so then! [End dialogue] No, thanks... [End dialogue] (Owner) I can give you 1500 credits Ok, do so then! [End dialogue] No, thanks! [End dialogue] (Owner) I can give you a completely random item... Ok, do so then! [End dialogue] No, thanks... [End dialogue] Nevermind... [End dialogue] I hope this is clearly understandable... Link to comment Share on other sites More sharing options...
tk102 Posted March 2, 2005 Share Posted March 2, 2005 Hello JarrekStar. Those sound like Frequently Used Script Functions. Link to comment Share on other sites More sharing options...
JarrekStar Posted March 2, 2005 Author Share Posted March 2, 2005 Yes, but how do i use those scripts... ya know I'm a complete newb at scripting... Edit: Yes I want to make a dialogue with a droid to do those things i listed in my first post... Link to comment Share on other sites More sharing options...
JarrekStar Posted March 2, 2005 Author Share Posted March 2, 2005 I just don't understand this please help me...And I can't compile a script because of the others' problems in other threads... Link to comment Share on other sites More sharing options...
tk102 Posted March 2, 2005 Share Posted March 2, 2005 Do you mean "How can I create a script that can do those things?" or "How can I attach those scripts to a dialog?" I think you mean the first question... This is what a script that gives you 1500 credits would look like: void main() { GiveGoldToCreature( GetFirstPC(),1500); } For healing: void main() { effect eHeal = EffectHeal(500); ApplyEffectToObject( DURATION_TYPE_INSTANT,eHeal, GetPartyMemberByIndex(0)); ApplyEffectToObject( DURATION_TYPE_INSTANT,eHeal, GetPartyMemberByIndex(1)); ApplyEffectToObject( DURATION_TYPE_INSTANT,eHeal, GetPartyMemberByIndex(2)); } For an item: void main(){ object oItem=CreateItemOnObject( "item_template", GetFirstPC()); } Link to comment Share on other sites More sharing options...
JarrekStar Posted March 2, 2005 Author Share Posted March 2, 2005 Thanks great!! And how can I attach that to the dialogue? Link to comment Share on other sites More sharing options...
tk102 Posted March 2, 2005 Share Posted March 2, 2005 The above scripts need to be named uniquely and compiled first and then placed in your override. Using KT or DLGEditor, you should see for each dialog branch a field that says something like "Script to fire for this node". Enter in the name of the script you wish to fire (not including the .ncs extension.) Link to comment Share on other sites More sharing options...
JarrekStar Posted March 2, 2005 Author Share Posted March 2, 2005 Great I understand but I can't compile the scripts...dunno why neither with KT nor with nwnnsscomp Link to comment Share on other sites More sharing options...
Darth333 Posted March 2, 2005 Share Posted March 2, 2005 Originally posted by JarrekStar Great I understand but I can't compile the scripts...dunno why neither with KT nor with nwnnsscomp What do you mean by that? Are you getting any error? If yes, can you post the output from the compiler as well as the exact script you are trying to compile? Link to comment Share on other sites More sharing options...
JarrekStar Posted March 2, 2005 Author Share Posted March 2, 2005 I mean I try to compile the script (the one which gives 1500 credits) it's called hd_givecred.nss and I use the command nwnnsscomp.exe -c hd_givecred.nss And if I try to compile it with KT it gives this error: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.IO.FileNotFoundException: Could not find file "D:\Logs\working\hd_givecred.ncs". File name: "D:\Logs\working\hd_givecred.ncs" at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) at kotor_tool.frmProjectManager.miBuildProject_Click(Object sender, EventArgs e) at System.Windows.Forms.MenuItem.OnClick(EventArgs e) at System.Windows.Forms.MenuItemData.Execute() at System.Windows.Forms.Command.Invoke() at System.Windows.Forms.Control.WmCommand(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- kotor_tool Assembly Version: 1.0.1885.28829 Win32 Version: 1.0.1885.28829 CodeBase: file:///C:/Program%20Files/Fred%20Tetra/Kotor%20Tool/kotor_tool.exe ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll ---------------------------------------- System Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll ---------------------------------------- Microsoft.VisualBasic Assembly Version: 7.0.5000.0 Win32 Version: 7.10.3052.4 CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll ---------------------------------------- System.Xml Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll ---------------------------------------- r7tcrod3 Assembly Version: 0.0.0.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- 3bgs83wt Assembly Version: 0.0.0.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- ************** JIT Debugging ************** To enable just in time (JIT) debugging, the config file for this application or machine (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the machine rather than being handled by this dialog. And I dont't know what to do... Link to comment Share on other sites More sharing options...
beancounter Posted March 2, 2005 Share Posted March 2, 2005 try the command nwnnsscomp -v1.00 -c override/* override/ Just make sure your script is in the override directory Link to comment Share on other sites More sharing options...
JarrekStar Posted March 3, 2005 Author Share Posted March 3, 2005 I tried it but no change. It still won't make the ncs from the nss... Link to comment Share on other sites More sharing options...
Darth333 Posted March 3, 2005 Share Posted March 3, 2005 Originally posted by JarrekStar I tried it but no change. It still won't make the ncs from the nss... Can you post the output you get from the compiler? Link to comment Share on other sites More sharing options...
JarrekStar Posted March 3, 2005 Author Share Posted March 3, 2005 Here! ------------------------------------------- NSSCOMP.bat output 2005.03.03. 16:01 ------------------------------------------- nwnnsscomp.exe version: 1.01 ------------------------------------------- Compilation complete: 1/1 file compiled Link to comment Share on other sites More sharing options...
Darth333 Posted March 3, 2005 Share Posted March 3, 2005 This output is weird...you should normally get more details than that I'm no expert but perhaps it is a language issue this seems to happen to people who do not have an English OS or and English Game (I could be wrong on that) And you get the same results wehn you use the method indicatd by Beancounter instead of the batch file? Link to comment Share on other sites More sharing options...
JarrekStar Posted March 3, 2005 Author Share Posted March 3, 2005 Yeah... everything is the same that way too... And yes I have a non-English OS is a Windows XP SP1 Hungarian... Link to comment Share on other sites More sharing options...
Xcom Posted March 3, 2005 Share Posted March 3, 2005 Hmm.. is this for TSL or KOTOR? Link to comment Share on other sites More sharing options...
Lorden Darkblade Posted March 3, 2005 Share Posted March 3, 2005 That happened to me, what I did was: First open your command prompt and go to the folder nwnnsscomp is in. In there execute this line: nwnnsscomp -c *.nss It should work. But the .nss file MUST BE in the SAME FOLDER that nwnnsscomp is for that to work. Link to comment Share on other sites More sharing options...
JarrekStar Posted March 3, 2005 Author Share Posted March 3, 2005 Uchiha: Thanks I'll try it! Xcom: It's for TSL Link to comment Share on other sites More sharing options...
SuperSquall Posted March 3, 2005 Share Posted March 3, 2005 Did you place nwscript.nss into the same folder as your compiler - I don't know aboutthe command prompting, but if you are compiling using the batch file provided with Robious' compiler you should be fine with just putting nwscript.nss into the same folder. Link to comment Share on other sites More sharing options...
Darth333 Posted March 3, 2005 Share Posted March 3, 2005 This should answer the question: http://lucasforums.com/showthread.php?s=&threadid=142901 There is an error in the nwscript.nss file that has not been corrected in the international versions of the game ...check tk102's last post. Link to comment Share on other sites More sharing options...
JarrekStar Posted March 3, 2005 Author Share Posted March 3, 2005 No... It's still not good I hate this *** Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.