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
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); }}}
}