SCTX |
Scriptname MS23SeridurScript
short SpeakOnce
short SpeakAgain
short Doonce
begin OnDeath
if getstage ms23 >= 85 && getstage ms23 < 100
setstage MS23 100
endif
end
begin gamemode
;sets up forcegreet from Seridur
if ( GetStage MS23 >= 10 ) && ( Player.GetInCell ICTempleDistrictSeridursHouse == 1 ) && ( SpeakOnce == 0 )
StartConversation player, Greeting
set SpeakOnce to 1
endif
;continue greet when Seridur gets to basement marker
if ( GetStage MS23 >= 10 ) && ( MS23.FollowSeridur == 1 ) && ( GetDistance MS23SeridurOrderMarker <= 50 ) && ( SpeakAgain == 0 )
set MS23.FollowDone to 1
set MS23.FollowSeridur to 0
StartConversation player, Greeting
set SpeakAgain to 1
endif
;Seridur greets Player in Memorial Cave
if ( GetStage MS23 == 95 ) && ( GetDistance Player <= 400 )
StartConversation player, Greeting
setstage ms23 96
endif
;Seridur Attacks!
if ( GetStage MS23 >= 96 ) && ( MS23.SeridurAttacks == 1 ) && ( Doonce == 0 )
SeridurRef.StartCombat Player
set Doonce to 1
endif
end |