Begin hl_SuraneScriptshort currentDayshort localdaysPassedif ( currentDay != Day ) ;assume that the day has gone up, not down or something... set currentDay to Day set localdaysPassed to localdaysPassed + 1endifEnd hl_SuraneScript
I then use a dialogue entry to reset localdaysPassed to 0 at the appropriate time, so that the counter can start from there. Only trouble is, when I test it out in game, I get an error message saying that it can't find the 'localdaysPassed' variable - even though it's right there in the script. Even more confusingly, I've added the same code to another NPC's script and it works perfectly. Am I missing something really obvious?
I also need to find a way to disable the Hlaalu guards in the Caldera mine and replace them with Redoran ones. I can't do it through dialogue or local scripts as they don't have a unique ID. Can anyone tell me the most efficient way to do this?