newbiemodder Posted February 17, 2010 Share Posted February 17, 2010 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 Link to comment Share on other sites More sharing options...
harIII Posted February 17, 2010 Share Posted February 17, 2010 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); }}} } Link to comment Share on other sites More sharing options...
newbiemodder Posted February 17, 2010 Author Share Posted February 17, 2010 Thanks har...it works. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.