madog Posted March 2, 2005 Posted March 2, 2005 i know this topic was was already talked about and i know this will probley be locked but if anyone can tell me how to add an item to dilouge i am using this info to help in a mod i am working one where when you finsh a quest with a person e.x. when you finsh the Handmadian's three tirs of echani hand to hand combat so if you can tell me this info that would be great
Xcom Posted March 3, 2005 Posted March 3, 2005 There is basically the same thing being asked in this thread: http://www.lucasforums.com/showthread.php?s=&threadid=145383 Check it out.
Mav Posted March 3, 2005 Posted March 3, 2005 In general, you need to attach a script to a dialogue to give you the item, not the actual item
madog Posted March 3, 2005 Author Posted March 3, 2005 well is the kotor 1 scrpiting same as kotor 2? because i could not find a kotor 2 scrpiting fuction that says "give player item" but if darth333 could help....
Darth333 Posted March 3, 2005 Posted March 3, 2005 Originally posted by madog well is the kotor 1 scrpiting same as kotor 2? because i could not find a kotor 2 scrpiting fuction that says "give player item" but if darth333 could help.... Yes, this remains valid. However, TSL has a bunch of new additional functions. Check nwscript.nss. As for give an item to a player, use the CreateObject function. Check this thread: http://lucasforums.com/showthread.php?s=&threadid=143412 If you need additional help, please give more details on what you are trying to do.
madog Posted March 3, 2005 Author Posted March 3, 2005 did you see the spolier? if you dident i am trying to do the thing where you get a reward for compelting goals that are with another player vis-a(add little accent mark)-vis when you complete handmadian's three tirs of hand to hand combat you get a quter staff very simialer (still cant spell) to handmadian's i just want the script function that allows you to recive an item after talking to some one (like a reward for completing a quest then you talk to the person ypu gave you the quest abd they give you a gift. + how to write a script with that function
madog Posted March 3, 2005 Author Posted March 3, 2005 i got it now i just have to edit the diolouge the when i reach the certain point in the speach the .dlg file will run the scrpit to give me the item thank you guys for you help i will be sure to credit you if i complete this mod one more question is this the right scrip to give me the item code: void main(){ object oItem=CreateItemOnObject( "item_template", GetFirstPC()); } is there anywhey i can test this diolgue *without* having to start a new game cause i already finshed this goal with handmadian
Darth333 Posted March 4, 2005 Posted March 4, 2005 Actually, you don't need this part of the code: object oItem= this will do: void main(){ CreateItemOnObject("item_template", GetFirstPC()); } and you don't need to start a new game to test your scripts. Simply load a game from just before you select the dialogue branch to which your script is attached to test it
madog Posted March 4, 2005 Author Posted March 4, 2005 umm well i ...was not excpting to be making this mod so i am way past that part. i awalys overwrite my save the first time i play
Recommended Posts
Archived
This topic is now archived and is closed to further replies.