Scriptname MS43Script
short SaidNo
short NotReady
short DropMe
short ScampDies
short DropStaff
float fQuestDelayTime
begin gamemode
;Quest Killer
if ( GetStage MS43 < 10 )
Return
endif
;This fixes speed when staff is put down
if ( GetStage MS43 >= 60 ) && ( Player.GetItemCount MS43EverscampStaff == 0 ) && ( DropStaff == 0 )
Player.Modav Speed 20
set DropStaff to 1
endif
;This sets stage when arriving at Darkfathom Cave
if ( GetStage MS43 == 40 )
if ( Player.GetDistance MS43DarkfathomArrivalMarker <= 500 )
setstage MS43 50
endif
endif
;This sets the stage when arriving at the shrine to Sheogorath inside Darkfathom Cave
if ( GetStage MS43 == 50 )
if ( Player.GetDistance MS43ShrineEntranceMarker <= 100 )
setstage MS43 60
endif
endif
;This allows player to place staff near altar
if ( GetStage MS43 == 60 )
if ( Player.GetDistance MS43ShrineMarker <= 400 ) && ( DropMe == 0 )
Messagebox "I'm no longer feeling the urge to possess the Staff of the Everscamp."
setQuestObject MS43EverscampStaff 0
set DropMe to 1
endif
endif
;This is stage trigger when Player drops the staff
if ( GetStage MS43 == 60 )
if ( Player.GetDistance MS43ShrineMarker <= 400 ) && ( Player.GetItemCount MS43EverscampStaff == 0 )
player.scaonactor
setstage MS43 70
set fQuestDelayTime to 0
endif
endif
end |