Scriptname SE10MessengerScript
short conv
short doonce
float convtimer
Begin GameMode
if ( doonce == 0 )
if ( GetDisabled == 0 )
setforcerun 1
set doonce to 1
endif
elseif ( doonce == 1 )
if ( GetStage SE10 == 3 )
if ( GetDistance SE10MessengerMarker <= 100 )
set doonce to 2
endif
endif
endif
elseif ( Doonce == 2 )
if ( Conv == 0 )
if ( SE10SaintRef.GetDisabled == 0 )
SESheogorathRef.look SE10SaintRef
else
SESheogorathRef.look SE10SeducerRef
endif
look SESheogorathRef
set convtimer to SayTo SESheogorathRef SE10MessengerGreeting
set conv to 1
elseif ( Conv == 1 )
if convtimer <= 0
if ( SE10SaintRef.GetDisabled == 0 )
SESheogorathRef.look SE10SaintRef
else
SESheogorathRef.look SE10SeducerRef
endif
look SESheogorathRef
set convtimer to SESheogorathRef.SayTo SE10SaintRef SE10MessengerGreeting
set Conv to 2
else
set convtimer to ( convtimer - GetSecondsPassed )
endif
elseif ( Conv == 2 )
if ( Convtimer <= 0 )
SetStage SE10 4
SESheogorathRef.EvaluatePackage
; SESheogorathRef.StartConversation Player
set conv to -1
else
set convtimer to ( convtimer - GetSecondsPassed )
endif
endif
endif
End |