Proximity & 24-Hour Timer Script Help?

Post » Mon Apr 22, 2013 5:50 am

So, I'm working on a quest mod, and I've got everything working except for two things: First, I need to make it so that, when the quest is at a certain stage, approaching the Onyx Caverns dungeon will trigger an update. Second, once the quest reaches another stage, it should commence a timer so that three NPCs will be enabled and one disabled after a day has passed in-game. I've looked at the scripts for quests with similar situations, but neither part seems to fire no matter what I try. Here's what I have:

Spoiler

float currentDayfloat currentTimebegin gameMode;	Updates journal when player approaches Onyx Caverns.if ( player.getDistance socOnyxCavernsMarker <= 800 ) && ( getStage socQuestJesan == 35 )		setstage socQuestJesan 40endif;	Timer for NPCs to appear.if ( getStage socQuestJesan 60 ) && (	set currentDay to gameDaysPassed	set currentTime to gameHourendifif ( getStage socQuestJesan 60 ) && ( gameDaysPassed >= currentDay + 1 )	if gameHour >= currentTime		socWarielRef.disable		socCaptainRef.enable		socCorruptSoldierARef.enable		socCorruptSoldierBRef.enable		setstage socQuestJesan 65		endifendifend
User avatar
Natasha Callaghan
 
Posts: 3523
Joined: Sat Dec 09, 2006 7:44 pm

Return to IV - Oblivion