Jump to content

[Script] Event OnItemAdded


Zorkaz

Recommended Posts

It has been more than a year since I made the last script with Event OnItemAdded and I'm having a problem

What I want to achieve:

As soon as a key gets taken out of a box the quest should update, but it doesn't work.

The script is on the key btw.
 

Quote

 

Quest Property FHM2MainQuest Auto
Key Property FHM2MaintenanceKey Auto

Event OnLoad()
AddInventoryEventFilter(FHM2MaintenanceKey)
EndEvent

Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)
 if !akSourceContainer
FHM2MainQuest.setobjectivedisplayed(19)
FHM2MainQuest.setstage(22)

Endif
EndEvent

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...