How do I add an item to an actor I am in dialog with?

Post » Fri May 27, 2011 10:34 am

I have an info response that I want to result in an Actor->additem to the npc that I am currently in dialog with from which the player activates the response-choice, but how do I tell the game to find the actorID of the person I am in dialog with? I want it to work with any npc that has this response option.

Thanks guys.

Edit: Well it seems just putting additem in the result box works. I thought I would have to declare the actorID of where the item went. I guess not.
User avatar
Yung Prince
 
Posts: 3373
Joined: Thu Oct 11, 2007 10:45 pm

Post » Fri May 27, 2011 4:29 am

I see that you've figured it out- but I've got a word of knowledge. Anytime that you have a script that is running from the object (NPC, container, creature)- meaning the script is attached to that object in the CS or it was ran as a targeted script on that object- or you're in the midst of dialogue with an NPC/creature, you do not have to prepend the "fix" ("Object_ID"->). The dialogue/script understands that the fix is automatically the object that is calling it unless it is specified otherwise.

Just my little tidbit.
User avatar
Tom Flanagan
 
Posts: 3522
Joined: Sat Jul 21, 2007 1:51 am


Return to III - Morrowind