greyboxbum Posted August 16, 2013 Share Posted August 16, 2013 Hello,I have done something wrong because I can't save it in the Geck. I am trying to mod vcasstimergeneralbarkscript back to the way I read it was before the 1.4 patch so I can hear her in the game as a new player. The midnight rollover of hours is giving me a hard time (or I just suck at scripting as it has been my first day at it). This is the start where I have trouble. SCN VCassTimerGeneralBarkScriptFloat ftimerFloat fRandomInt iCounterShort bCassBarkedShort bQuestDelayFastShort bRegionSection ;Regions divided into different script sections. An error occurs if sections exceeds 10 if/else nests.Short LastDayShort CurrentDayShort DoOnceFloat fSpeakTimeBegin GameModeIf DoOnce == 0set DoOnce to 1set NewHour to (GameHour + 2)set LastDay to gamedayspassedendifset currentDay to gamedayspassedIf VNPCFollowers.bCassHired != 1 ; Kill code if Cass is not in party.ReturnElseIf Player.IsInCombat == 1ReturnElseIf (bCassBarked == 1) && (NewHour >= fSpeakTime + 2.0)Set bCassBarked to 0ReturnElseIf (currentDay - lastDay) >= 1set NewHour to (GameHour + 2)set bCassBarked to 0set lastday to currentDayReturnElself (NewHour - GameHour) > 2set NewHour to (GameHour +2)Return Link to comment Share on other sites More sharing options...
devinpatterson Posted August 16, 2013 Share Posted August 16, 2013 You should get powerUp it's invaluable for troubleshooting scripts. Link to comment Share on other sites More sharing options...
greyboxbum Posted August 18, 2013 Author Share Posted August 18, 2013 You should get powerUp it's invaluable for troubleshooting scripts. Thanks for the advice! Link to comment Share on other sites More sharing options...
Recommended Posts