Jump to content

Home

adding items to dilouge


madog

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...