SCTX |
Scriptname MS10Script
short Talking
short Talking2
short AldFirst
short Reward
short SetUp
short AldosTalks
short UlrichTalks
short LetterFound
short GarrusMoved
short GarrusBridge
short AldosEscort
short UlrichFollow
short AldosFight
short GarrusDone
short Doonce
float MyCrimeGold
float CurrentTime
float StartTime
short StartDay
short AldosPissed
float fQuestDelayTime
short stage120 ; set to 1 to fix guards at stage 120
begin gamemode
;This makes the scripted conversation with Aldos and the guard occur
if ( GetStage MS10 >= 40 ) && ( AldosTalks == 0 )
if ( Player.GetDistance AldosOthranRef <= 300 ) && (AldosOthranRef.GetDistance MS10AldosMarker <= 200 ) && ( AldosEscort == 2 )
DisablePlayerControls
AldosOthranRef.StartConversation MS10CHG01Ref, MS10AldosTalk
set AldosTalks to 1
endif
endif
;This sets stage 78 on arrival at Llevana's house
if ( GetStage MS10 >= 75 ) && ( GetStage MS10 < 78 )
if ( Player.GetInCell CheydinhalLlevanaNedarensHouse == 1 ) && ( UlrichLelandRef.GetInCell CheydinhalLlevanaNedarensHouse == 1 )
setstage MS10 78
set UlrichFollow to 2
UlrichLelandRef.EvaluatePackage
LlevanaNedarenRef.Evp
endif
endif
;This makes the scripted conversation with Llevana and Ulrich occur
if ( GetStage MS10 >= 78 ) && ( GetStage MS10 < 150 ) && ( UlrichTalks == 0 )
if ( Player.GetInCell CheydinhalLlevanaNedarensHouse == 1 ) && ( UlrichLelandRef.GetDistance MS10UlrichConvoMarker <= 50 ) && ( LlevanaNedarenRef.GetDistance MS10LlevanaConvoMarker <= 50 )
DisablePlayerControls
UlrichLelandRef.StartConversation LlevanaNedarenRef, MS10LlevanaTalk
set UlrichTalks to 1
endif
endif
;This moves Garrus to Cheydinhal Bridge Inn at Stage 95
if ( GetStage MS10 >= 95 ) && ( GetStage MS10 < 150 ) && ( GarrusMoved == 0 )
if ( Player.GetinSameCell GarrusRef == 0 )
set GarrusDone to 1
GarrusRef.Disable
GarrusRef.MoveTo MS10BridgeInnArrivalMarker
set GarrusMoved to 1
endif
endif
;This makes Garrus appear at Bridge Inn at 95 after two hours
;if ( GetStage MS10 >= 95 ) && ( GetStage MS10 < 150 )
; if ( GameHour <= 12 )
; set CurrentTime to GameHour
; else
; set CurrentTime to GameHour - 12
; endif
;endif
;if ( GetStage MS10 >= 95 ) && ( GetStage MS10 < 150 ) && ( Doonce == 0 )
; if ( GameHour <= 12 )
; set StartTime to GameHour + 2
; set Doonce to 1
; else
; set StartTime to GameHour - 10
; set doonce to 1
; endif
;endif
;if ( GetStage MS10 >= 95 ) && ( GetStage MS10 < 150 ) && ( CurrentTime >= StartTime ) && ( GarrusBridge == 0 )
; setstage MS10 97
; GarrusRef.Enable
; GarrusRef.EvaluatePackage
; set GarrusBridge to 1
; set fQuestDelayTime to 0
;endif
;Makes Garrus come to Inn in 2 hours. Unless after 10pm, it will be faster. Safe fast fix.
if ( GetStage MS10 >= 95 ) && ( GetStage MS10 < 150 ) && ( Doonce == 0 )
set StartTime to GameHour
set StartDay to GameDay
set DoOnce to 1
endif
if ( GetStage MS10 >= 95 ) && ( GetStage MS10 < 150 ) && ( GarrusBridge == 0 )
If GameHour - 2 > StartTime || GameDay > StartDay
setstage MS10 97
GarrusRef.Enable
GarrusRef.EvaluatePackage
set GarrusBridge to 1
set fQuestDelayTime to 0
endif
endif
;Death Handlers
; MOVED TO NPC scripts: Garrus and LLevana
; setup guards at stage 120
; EVERYTHING BELOW IS SINGLE TIME CODE
if stage120 == 0
return
endif
if stage120 == 1
set stage120 to 0
;This removes guard outside of Aldos's House
MS10CHG01Ref.Disable
; modify crime gold back to normal
CheydinhalGuardCastlePatrolDay01Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCastlePatrolNight01Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCastlePostDay01Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCastlePostDay02Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCastlePostNight01Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCastlePostNight02Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCountEscortRef.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardJailorDayRef.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardJailorNightRef.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCityPostDay01Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCityPostDay02Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCityPostDay03Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCityPostDay04Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCityPostNight01Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCityPostNight02Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCityPostNight03Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCityPostNight04Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCityPatrolNight01Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCityPatrolNight02Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCityPatrolDay01Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
CheydinhalGuardCityPatrolDay02Ref.SetFactionRank CheydinhalCorruptGuardsFactionMS10 -1
endif
end |