Problems with conditions with OnRead

Post » Wed Apr 16, 2014 6:27 am

Similar to my other post I have issues with a condition. Player is looking for NPCx who attends a market only on Mondays. If player arrives on a Monday but before NPCx has arrived, he receives the message "NPCx is on the way, come back later", this sets the stage Int Property StageToSet. I added at the bottom another condition which checks that if isn't Monday then an option (buttons) window appears asking "Do you want to wait?" or "Find NPCx now." In the first instance, it is Monday but too early, the note is opened and read by the player but in the second instance, where it checks gameday, it skips the opening/reading of the note and goes directly to the buttons window. Where am I going wrong?

int Property PreReqStage Autoint Property StageToSet AutoQuest Property myQuest AutoGlobalVariable Property GameHour AutoInt Function GetDayOfWeek()	Int GameDaysPassed 	GameDaysPassed = GetPassedGameDays()	return GameDaysPassed % 7EndFunctionInt Function GetPassedGameDays()	Float GameTime	Int GameDaysPassed 	GameTime = Utility.GetCurrentGameTime()	GameDaysPassed = GameTime As Int	Return GameDaysPassedEndFunctionevent onRead()If MyQuest.GetStage() == PreReqStagemyQuest.setStage(StageToSet)endifIf GetDayOfWeek() != 1MyQuest.SetStage(60)endifendEvent

Thank you for your time.

User avatar
Your Mum
 
Posts: 3434
Joined: Sun Jun 25, 2006 6:23 pm

Return to V - Skyrim