Having trouble advancing quest when item is picked up

Post » Thu Jun 21, 2012 1:05 pm

I have gotten to a point in my quest (a really simple quest) where the player needs to find an item in a chest. The quest marker goes to the chest the item spawns in (using Created in... ) in the quest aliases - however, when the player picks up the item, even though there is a script attached to the item in the item's alias:

Scriptname KynarethRobes extends ReferenceAlias

Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
If akNewContainer == Game.GetPlayer()
If AEL02.GetStage() == 20
AEL02.SetStage(40)
Else
AEL02.SetStage(15)
EndIf
EndIf
EndEvent

Quest Property AEL02 Auto

After testing in-game, I picked up the item and checked the stage of the quest using the console and it was still 20.

Is there something else I need to set somewhere to advance the quest stage when something is picked up by the player? This is the second time I have started from scratch trying to get this to work and I am getting absolutely nowhere.

I really appreciate any help anyone can give me.
User avatar
latrina
 
Posts: 3440
Joined: Mon Aug 20, 2007 4:31 pm

Post » Thu Jun 21, 2012 12:58 pm

Just got some help with this and thought I'd put the solution up in case anyone else had this issue:

I used the DefaultSetStageOnPlayerAquire script instead and set the properties. It worked like a charm!
User avatar
Richard Dixon
 
Posts: 3461
Joined: Thu Jun 07, 2007 1:29 pm


Return to V - Skyrim