SCTX |
scn RallusOdiilSCRIPT
float timer
float convtimer
short dialogue
begin gamemode
;start conversation between the boys when the player gets close enough
;(so they're not just standing there, looking stupid)
if ( GetStage MS18 >= 10 )
if ( MS18.conv == 0 )
if ( GetDistance Player < 500 )
StartConversation AntusOdiil01 MS18Convo
set timer to 0
endif
;build in pauses, so it's not one continuous conversation...
elseif ( MS18.conv == 6 )
if ( timer >= 45 )
set MS18.conv to 7
AntusOdiil01.StartConversation RallusOdiil01 MS18Convo
set timer to 0
else
set timer to ( timer + getsecondspassed )
endif
endif
elseif ( MS18.conv == 10 )
if ( timer >= 30 )
set MS18.conv to -1
StartConversation AntusOdiil01 MS18Convo
else
set timer to ( timer + getsecondspassed )
endif
endif
endif
;Have Rallus Evaluate AI Package when he reaches each travel marker along the way
;First marker in cell WeynonPriory
if ( GetStage MS18 == 30 && RallusOdiil01.GetDistance MS18XMarker2 < 200 && MS18.travelupdate == 1 )
set MS18.travelupdate to 2
RallusOdiil01.EvaluatePackage
;second marker on road south of Weynon Priory
elseif ( GetStage MS18 == 30 && RallusOdiil01.GetDistance MS18XMarker3 < 200 && MS18.travelupdate == 2 )
set MS18.travelupdate to 3
RallusOdiil01.EvaluatePackage
endif
;Update Rallus while he waits at the marker for Antus
if ( GetStage MS18 == 30 && RallusOdiil01.GetDistance MS18Xmarker4 < 100 )
if ( MS18.Travelupdate == 3 )
set MS18.travelupdate to 4
RallusOdiil01.evaluatePackage
endif
endif
;Update Quest Stage when both NPCs are at the final marker
if ( GetStage MS18 == 30 && RallusOdiil01.GetDistance MS18XMarker4 < 400 && AntusOdiil01.GetDistance MS18XMarker4 < 400 && Player.GetDistance MS18XMarker4 < 400 )
SetStage MS18 40
RallusOdiil01.EvaluatePackage
AntusOdiil01.EvaluatePackage
endif
;Dialogue between Rallus and Antus before starting combat
if ( dialogue == 0 )
if ( GetStage MS18 == 40 && RallusOdiil01.GetDistance AntusOdiil01 <= 400 )
if ( RallusOdiil01.GetDistance Player <= 300 )
RallusOdiil01.setAlert 1
set dialogue to 1
set convtimer to AntusOdiil01.SayTo RallusOdiil01, MS18OdiilTalk01
endif
endif
elseif ( dialogue == 1 )
if ( convtimer > 0 )
set convtimer to ( convtimer - getsecondspassed )
else
set dialogue to 2
set convtimer to RallusOdiil01.SayTo AntusOdiil01, MS18OdiilTalk02
set MS18.timetofight to 1
endif
elseif ( dialogue == 2 )
if ( convtimer > 0 )
set convtimer to ( convtimer - getsecondspassed )
else
AntusOdiil01.setAlert 1
set convtimer to AntusOdiil01.SayTo RallusOdiil01, MS18OdiilTalk03
set dialogue to 3
endif
elseif ( dialogue == 3 )
if ( convtimer > 0 )
set convtimer to ( convtimer - getsecondspassed )
else
RallusOdiil01.SayTo AntusOdiil01, MS18OdiilTalk04
MS18Goblin01.Enable
MS18Goblin02.Enable
MS18Goblin03.Enable
RallusOdiil01.Evp
set dialogue to -1
endif
endif
end |