Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

check item script request - TSL

Page: 1 of 1
 newbiemodder
02-17-2010, 2:44 PM
#1
I need a script that will be placed on a placeable's OnInvDisturbed script line that will check to see if three items are currently in the PC's inventory--once the new item is taken from the placeable-- and if they are possessed then a journal update entry will occur.

Most of the threads deal with dialogs and conditionals. I've been trying to somehow incorporate the c_hasitem script but my scripting knowledge is poor. Thanks
 harIII
02-17-2010, 2:52 PM
#2
This should do what you want:

void main () {

object oObject = GetObjectByTag("Placeable/NPC");

if (GetIsObjectValid(GetItemPossessedBy(oObject, "Tag of Item"))) {
if (GetIsObjectValid(GetItemPossessedBy(oObject, "Tag of Item"))) {
if (GetIsObjectValid(GetItemPossessedBy(oObject, "Tag of Item"))) {

AddJournalQuestEntry("tag of mission", # value of the journal entry); }}}
}
 newbiemodder
02-17-2010, 3:28 PM
#3
Thanks har...it works.
Page: 1 of 1