Item Pickup Script Not Working

Post » Sun Feb 17, 2013 3:44 pm

Hey there,

I'm trying to get a quest to update on an item pickup. Right now I have the script attached to the alias of the object. I tried both a specific reference tagging the object in the world space, and also "create reference to Object" The object creates fine, and has the quest marker.

When I pick it up nothing happens.

Here's the script I have:

Scriptname GSQ01Shipment Extends ObjectReference

Quest Property GSQ01_Ref Auto

Event OnContainerChanged(ObjectReference newContainer, ObjectReference oldContainer)
if (newContainer == Game.GetPlayer())
GSQ01_Ref.SetObjectiveDisplayed(40)
GSQ01_Ref.SetStage(40)


endif
EndEvent

This is pretty straight forward scripting so I'm not sure where I messed that up. The object is initially disabled as well, and spawns in when it's supposed to through being enabled. It just has no effect on the quest updating. The quest is set in the properties window as well.
User avatar
zoe
 
Posts: 3298
Joined: Sun Nov 12, 2006 1:09 pm

Return to V - Skyrim