Scriptname MS09JorundrScript
short JorundrMoves
short JorundrDies
begin gamemode
;Evp Jorundr after Convo
if ( MS09.TyrelliusDone == 1 )
EvaluatePackage
set MS09.TyrelliusDone to 2
endif
;This moves Jorundr to non-player cell after the quest is over
if ( GetStage MS09 == 100 ) || ( GetStage MS09 >= 160 )
if ( JorundrMoves == 0 ) && ( GetDead == 0 ) && ( Player.GetInCell BrumaCastleDungeon == 0 )
MoveTo MS09JorundrPostQMarker
set JorundrMoves to 1
endif
endif
end
begin OnDeath
if ( GetStage MS09 >= 10 ) && ( GetStage MS09 < 70 ) && ( JorundrDies == 0 )
setstage MS09 200
set JorundrDies to 1
endif
if ( GetStage MS09 >= 140 ) && ( GetStage MS09 < 160 ) && ( JorundrDies == 0 )
setstage MS09 200
set JorundrDies to 1
endif
end |