Zorkaz Posted February 25, 2024 Posted February 25, 2024 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 Expand
SKKmods Posted February 25, 2024 Posted February 25, 2024 For a script attached to the key use OnContainerChanged() akNewContainer == Game.GetPlayer() /probably 1
Recommended Posts