fg109 Posted March 12, 2011 Share Posted March 12, 2011 Get rid of the doonce, and try this (assuming your topic IDs are correct): scn 01Quest Short StartDay Short FinishDay Short state Begin GameMode If ( GetStage aa1 == 6 ) If state == 0 Set StartDay to GameDaysPassed Set state to 1 Set FinishDay to ( StartDay +3 ) AddTopic 1 ElseIf state == 1 If GameDaysPassed > ( StartDay +3 ) Setstage aa1 7 AddTopic 2 set state to 2 EndIf EndIf Endif End The previous script worked, although I admit yours looks cleaner (except for the now redundant FinishDay variable). The problem must be something else other than the script. Link to comment Share on other sites More sharing options...
Hickory Posted March 12, 2011 Share Posted March 12, 2011 Get rid of the doonce, and try this (assuming your topic IDs are correct): scn 01Quest Short StartDay Short state Begin GameMode If ( GetStage aa1 == 6 ) If state == 0 Set StartDay to GameDaysPassed Set state to 1 AddTopic 1 ElseIf state == 1 If GameDaysPassed > ( StartDay +3 ) Setstage aa1 7 AddTopic 2 set state to 2 EndIf EndIf Endif End The previous script worked, although I admit yours looks cleaner (except for the now redundant FinishDay variable). The problem must be something else other than the script. Then I'm confused. If the previous script worked, why are you still looking for a solution? If it doesn't pass to the next stage, clearly it doesn't work. Have you even tried mine? (Redundant FinishDay removed from quote). Link to comment Share on other sites More sharing options...
fg109 Posted March 12, 2011 Share Posted March 12, 2011 (edited) Well I'm not the one trying to make the timer script. I only tried what Wrym1331 had so far and it worked for me. For some reason it didn't work for him. I have no idea why it doesn't. This is exactly what I did: Opened up TESCSCreate a new quest with ID "aa1"Set quest priority as 60Set condition as GetIsPlayableRace == 1Add stages 6 and 7 to the quest stages tabPress ok and close the quest windowChoose to create a new scriptChoose script type as questPasted this as the script: scn 01Quest Short StartDay Short state short tempvar Begin GameMode set tempvar to GetStage aa1 Message "aa1 stage: %.0f" tempvar If ( GetStage aa1 == 6 ) If state == 0 Set StartDay to GameDaysPassed Set state to 1 ElseIf state == 1 If GameDaysPassed > ( StartDay +3 ) Setstage aa1 7 set state to 2 EndIf EndIf Endif End Compiled, saved, and closed the script windowWent back to the quest window and chose "01Quest" as the script for "aa1" questSaved the mod, opened up OBMM, checked the mod, launched the gameOpened up the command console and typed "SetStage aa1 6"Kept checking the message on the screen after every 24 hours I sleptAfter the 4th day (because the script has "If GameDaysPassed > ( StartDay +3 )" and not "If GameDaysPassed >= ( StartDay +3 )") the message changed to "aa1 stage: 7" Edited March 12, 2011 by fg109 Link to comment Share on other sites More sharing options...
Hickory Posted March 12, 2011 Share Posted March 12, 2011 Well I'm not the one trying to make the timer script. Ah, right. My oversight. Link to comment Share on other sites More sharing options...
Wyrm1331 Posted March 13, 2011 Author Share Posted March 13, 2011 Get rid of the doonce, and try this (assuming your topic IDs are correct): scn 01Quest Short StartDay Short FinishDay Short state Begin GameMode If ( GetStage aa1 == 6 ) If state == 0 Set StartDay to GameDaysPassed Set state to 1 Set FinishDay to ( StartDay +3 ) AddTopic 1 ElseIf state == 1 If GameDaysPassed > ( StartDay +3 ) Setstage aa1 7 AddTopic 2 set state to 2 EndIf EndIf Endif End Hi!! It finally works, i don´t know why reason it didn´t work before, but with that script, it works. Thanks for all!! :thumbsup: Link to comment Share on other sites More sharing options...
Hickory Posted March 13, 2011 Share Posted March 13, 2011 Get rid of the doonce, and try this (assuming your topic IDs are correct): scn 01Quest Short StartDay Short FinishDay Short state Begin GameMode If ( GetStage aa1 == 6 ) If state == 0 Set StartDay to GameDaysPassed Set state to 1 Set FinishDay to ( StartDay +3 ) AddTopic 1 ElseIf state == 1 If GameDaysPassed > ( StartDay +3 ) Setstage aa1 7 AddTopic 2 set state to 2 EndIf EndIf Endif End Hi!! It finally works, i don´t know why reason it didn´t work before, but with that script, it works. Thanks for all!! :thumbsup: Cool. :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts