jezter Posted February 13, 2007 Share Posted February 13, 2007 I've read the tutorials, and still have trouble with this. The item cheat codes are: giveitem force_jump giveitem g_w_drkjdisbr001 I'm having trouble editing the endtrask.dlg, I made script's last night. None have been successful in game. I want to make a script that spawns those items into my inventory, after trask say's, i'm trask. Link to comment Share on other sites More sharing options...
Hangout Hermit Posted February 13, 2007 Share Posted February 13, 2007 Well try this... void main { int nQuantity = 1; CreateItemOnObject("force_jump", GetFirstPC(), nQuantity) CreateItemOnObject("g_w_drkjdisbr001", GetFirstPC(), nQuantity) } Compile it to a .ncs file and attach it to a dialog string. Link to comment Share on other sites More sharing options...
jezter Posted February 13, 2007 Author Share Posted February 13, 2007 Because it wouldn't compile any of the script you gave me, the kotor tool keeps getting errors, when I compiled the script he gave me. Link to comment Share on other sites More sharing options...
Hangout Hermit Posted February 13, 2007 Share Posted February 13, 2007 What sort of errors do you get? Link to comment Share on other sites More sharing options...
jezter Posted February 13, 2007 Author Share Posted February 13, 2007 givemestuff.nss(1): Error: Syntax error at "{" givemestuff.nss(3): Error: Syntax error at "CreateItemOnObject" The script is supposed to be for Kotor 1, if that helps. Link to comment Share on other sites More sharing options...
Hangout Hermit Posted February 14, 2007 Share Posted February 14, 2007 Try this void main() { int nQuantity = 1; CreateItemOnObject("force_jump", GetFirstPC(), nQuantity); CreateItemOnObject("g_w_drkjdisbr001", GetFirstPC(), nQuantity); } Sorry about that I was in a rush when I posted the first one. Link to comment Share on other sites More sharing options...
jezter Posted February 14, 2007 Author Share Posted February 14, 2007 To get the item's I needed to be in that start out foot locker, but thank's anyway's. Link to comment Share on other sites More sharing options...
T7nowhere Posted February 14, 2007 Share Posted February 14, 2007 Try this void main() { int nQuantity = 1; CreateItemOnObject("force_jump", GetFirstPC(), nQuantity); CreateItemOnObject("g_w_drkjdisbr001", GetFirstPC(), nQuantity); } Sorry about that I was in a rush when I posted the first one. you don't need the "nQuantity" the function will defualt to 1 if its left blank. Link to comment Share on other sites More sharing options...
Hangout Hermit Posted February 14, 2007 Share Posted February 14, 2007 Yes, but it makes the scirpts more visably readable for future referance. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.