A little script help please?

Post » Sun Oct 06, 2013 1:18 pm

So player is going to dig up a chest. Requirements are it must be between 6am and 6:15am, player must have a shovel in his inventory and quest stage must be 20. Here is the script which compiles without error.

Quest Property myQuest AutoInt Property PreReqStage AutoInt Property StageToSet AutoMessage Property MyMessage AutoGlobalVariable Property GameHour AutoMiscObject Property Spade AutoEvent OnTriggerEnter(ObjectReference akActionRef)	if akActionRef == Game.GetPlayer()                Float fTime = GameHour.GetValue()		if myQuest.GetStage()==PreReqStage                If fTime > 6.0 && fTime < 6.25if Game.GetPlayer().GetItemCount(Spade) >= 1			Int iButton = MyMessage.Show()			If iButton == 0 			myQuest.SetStage(StageToSet)		endif	endif	endif	endif	endifendEvent

It doesn't work. I've checked all properties and they are fine, the gamehour property is set to Gamehour. The script runs on a trigger box. What am I missing and/or doing wrong?

Thanks for any help.

User avatar
CArla HOlbert
 
Posts: 3342
Joined: Wed Feb 21, 2007 11:35 pm

Return to V - Skyrim