WeebamNaScript
Editor ID:WeebamNaScript
Form ID:000E9CA8
Type:Object
Script:Scriptname WeebamNaScript
;DANocturnal
short doOnce
float timer
Begin OnDeath
if getstage ms91 > 0 && getstage ms91 < 35
setstage ms91 210
endif
end
Begin OnPackageDone WeebamNaVisitMazoga
set MS91.donetalk to 1
end
Begin GameMode
if ( player.GetinCell LeyawiinWeebamNasHouse == 1 )
if ( GetStage DANocturnal >= 40 ) && ( GetStage DANocturnal < 55 )
if ( BejeenRef.GetDetected Player == 0 && WeebamNaRef.GetDetected Player == 0 ) && DANocturnal.PlayerHere == 0
set timer to ( timer + GetSecondsPassed )
if ( timer >= 5 )
set timer to 0
if ( DANocturnal.convoVAR1 == 0 )
BejeenREF.StartConversation WeebamNaREF DANocturnalConvo1
setstage DANocturnal 51
elseif ( DANocturnal.convoVAR1 == 2 )
BejeenREF.StartConversation WeebamNaREF DANocturnalConvo1
setstage DANocturnal 52
elseif ( DANocturnal.convoVAR1 == 4 )
BejeenREF.StartConversation WeebamNaREF DANocturnalConvo1
setstage DANocturnal 53
endif
endif
elseif ( GetStage DANocturnal < 50 && DANocturnal.PlayerHere == 0 )
set timer to ( timer + GetSecondsPassed )
if ( timer >= 5 )
set timer to 0
BejeenREF.StartConversation WeebamNaREF DANocturnalConvo2
Set DANocturnal.PlayerHere to 1
endif
endif
endif
endif
if ( doOnce == 0 )
if ( getstagedone DANocturnal 50 == 0 )
if ( getstage DANocturnal >= 30 )
if ( weebamnaref.getdead == 1 )
setstage DANocturnal 35
set doOnce to 1
endif
endif
endif
endif
End