Jump to content

Home

help with scripting a dialog


dede_frost

Recommended Posts

Hi, I wanted to know how to make your character obtain a costume item after a conversation (I checked out DAHC, and the "a_giveitem" script, but I just can't figure out how that script works).

 

I also checked the DAHC for the a_givelight/dark scripts, and I wanted to know how the game will determine how many light/dark points the character will recieve if I use that script.

 

Oh, and while I'm already boring u to hell with my incredebly noob questions :D, how do I set a specific loot for a character (for some reason equiping the character with that item isn't enough...)

 

Thanks for any help...

 

P.S.: for some reason my source scripts for KOTOR 2 won't open, is that a common problem or is it just me?

Link to comment
Share on other sites

here is a script that should give you a item if that is what you mean

 

//Change "Item_tag" to whatever your item tag is


void main()
{
      object oPC = GetFirstPC();
      CreateItemOnObject("Item_tag",oPC);
}

 

Now if you now how to make dialog in DLGeditor simply attach the script and after the specified dialog node is finished it will give you the item

 

The dark\light side thing I dont get either but that is why there is KSE

Link to comment
Share on other sites

Thanks, that really helps. I felt like something was missing when I wrote that post, and now I it came to me:

 

How do I make a dialog structured like this:

 

1)I walk up, the person gives me a side-quest

 

2)The next time I talk ti that person, he/she will actually say: "did u do that thing yet?"

 

3)And finally you can only say that you did the thing when you have the item (I ALSO need the script that takes an item away from you)

 

I'm guessing for step 2, I could make a script so that he only asks me if I did the quest IF I have quest active in my journal entry... the problem is I have absolutelly no idea of how to do this...

 

And for part 3 I need 2 scripts: one to chech if I have the item, and one to take the item from me if I have it.

 

btw, thanks for the help once more

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...