lfnetwork.com mark read register faq members calendar

Thread: Scripting query
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 02-16-2009, 01:16 PM   #1
Allronix
Forumite
 
Allronix's Avatar
 
Join Date: Aug 2003
Location: Seattle
Posts: 575
Scripting query

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?


Allronix - KOTOR Filefront Supporter
http://knightsoftheoldrepublic.filefront.com/

Please bring your mods. They'll give them a good home!
Allronix is offline   you may: quote & reply,
Old 02-16-2009, 01:28 PM   #2
HK-42
HK47+Marvin=
 
HK-42's Avatar
 
Join Date: Jun 2006
Location: The Unknown Regions
Posts: 2,040
Current Game: AssassinsCreed,kotor
Hot Topic Starter 
That would take a conditional script. Ill dig one out of my folders expect a edit.

Code:
int StartingConditional() {
    return GetIsObjectValid(GetItemPossessedBy(GetFirstPC(), "TagOfItem"));
}
This is the one I found, hope it works.

HK-42 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Scripting query

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:29 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.