Jump to content

Home

check item script request - TSL


newbiemodder

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...