Can nobody shed some light on this script?

Post » Tue Feb 19, 2013 10:28 pm

I'm re-posting this because it seems to have been overlooked and I am desperate. I am trying to count clues using a GlobalVariable Float. Two clues an invisibility potion and some scales (misc). I'm using an OnContainerChanged event because I don't know what else to call even though both of the clues are on the floor in the cell and are enabled at the correct quest stage. This script compiles but global counter stays at zero. PreReqStage is 40 (when the 2 clues are enabled by a script fragment), StageToSet is 50 when both clues have been taken by the player. Other script on the clues are simply debug messageboxes "You've found an invisibility potion" and on the scales "You've found some scales but they are not fish scales."

GlobalVariable property GalleryClues Auto
Quest Property myquest Auto
Int Property PreReqStage Auto
Int Property StageToSet Auto
 
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
if myQuest.GetStage() == preReqStage
if akNewContainer == Game.GetPlayer()
GalleryClues.Mod(1)
if GalleryClues.GetValue() == 2
myQuest.SetStage(StageToSet)
endif
endif
endif
EndEvent

This is driving me nuts.
User avatar
Kitana Lucas
 
Posts: 3421
Joined: Sat Aug 12, 2006 1:24 pm

Return to V - Skyrim