PDA

View Full Version : Scripting query


Allronix
02-16-2009, 01:16 PM
How do you make an NPC "see" an object in your inventory?

Example would be:
Character A asks you to find Character B and get a datapad. You go to Character B, and obtain said datapad. Now, you have to go back to A, and give him the datapad. What kind of script would you use to open up a dialogue node of "Yes, I have your datapad?"

Oh, and I'm VERY familiar with dialogue editing, so knowing how to embed the script in the dialogue file is no issue, it's just making a script that will successfully fire.

I apologize if the scripting thread covered this, but I've not been able to find it. In fact, where can I learn more about scripting than what is covered here?

HK-42
02-16-2009, 01:28 PM
That would take a conditional script. Ill dig one out of my folders expect a edit.

int StartingConditional() {
return GetIsObjectValid(GetItemPossessedBy(GetFirstPC(), "TagOfItem"));
}

This is the one I found, hope it works.