Select game:
Search:
Select a record type:
|
MS11Script (0x00038446)
- Record Type: SCPT
- Editor ID: MS11Script
- Form ID: 0x00038446
- Source File: Oblivion.noSI.esm.mod
- Patch Status: FormID has not been modified.
Parameter |
Value |
SCTX |
Scriptname MS11Script
short Arrived
short Proof
short GoOlav
short RaynilStatus
short CleanHouse
short CariusOlav
short ForceGive
short InnDone
short Doonce
short FailureCleanup
short RaynilAttack
short CariusDone
short StartDay
float CurrentDay
float CurrentTime2
float StartTime
float CurrentTime
float fQuestDelayTime
begin gamemode
;This triggers journal when player enters Raynil's room at the inn
if ( GetStage MS11 == 50 ) && ( Player.GetDistance MS11RoomMarker <= 50 )
setstage MS11 60
endif
;This makes Carius appear at Olav's at 85 after one hour
;if ( GetStage MS11 == 85 )
; if ( GameHour <= 12 )
; set CurrentTime to GameHour
; else
; set CurrentTime to GameHour - 12
; endif
;endif
;if ( GetStage MS11 == 85 ) && ( Doonce == 0 )
; if ( GameHour <= 12 )
; set StartTime to GameHour + 1
; set Doonce to 1
; else
; set StartTime to GameHour - 11
; set doonce to 1
; endif
;endif
;if ( GetStage MS11 == 85 ) && ( CurrentTime >= StartTime ) && ( CariusOlav == 0 ) && ( CariusRef.CariusMoved == 1 )
; CariusRef.Enable
; CariusRef.EvaluatePackage
; set CariusOlav to 1
;endif
;This makes Carius appear at Olav's at 85 after one hour. Unless after 10pm, it will be faster. Safe fast fix.
if ( GetStage MS11 == 85 ) && ( Doonce == 0 )
set StartTime to GameHour
set StartDay to GameDay
set DoOnce to 1
endif
if ( GetStage MS11 == 85 ) && ( CariusOlav == 0 )
If GameHour - 1 > StartTime || GameDay > StartDay
CariusRef.Enable
CariusRef.EvaluatePackage
set CariusOlav to 1
endif
endif
;This is the timer for a day passing later in quest
if ( GetStage MS11 == 90 ) && RaynilStatus == 0
if GameDaysPassed == ( CurrentDay + 1 )
if GameHour >= CurrentTime2
RaynilRef.Disable
MS11ChestRef.Disable
MS11EmptyChestRef.Enable
setstage MS11 150
set RaynilStatus to 1
endif
elseif GameDaysPassed > ( CurrentDay + 1 )
RaynilRef.Disable
MS11ChestRef.Disable
MS11EmptyChestRef.Enable
setstage MS11 150
set RaynilStatus to 1
endif
endif
;This sets variable when arriving at the cave
if ( GetStage MS11 == 90 ) && ( Player.GetDistance MS11BorealMarker <= 200 )
setstage MS11 100
set fQuestDelayTime to 0
endif
;This sets variable when arriving at the cave too late
if ( GetStage MS11 == 150 ) && ( Player.GetDistance MS11FailureMarker <= 500 )
setstage MS11 160
endif
;Early Clean-Up of House & Boreal Stone Cave on Failure
if ( GetStage MS11 == 200 )
if ( Player.GetinCell BrumaBradonLirriansHouse == 0 ) && ( FailureCleanup == 0 )
MS11BrumaGuardRef.Disable
MS11DeadBeggarRef.Disable
BradonLirrianRef.Disable
RaynilRef.Disable
MS11ChestRef.Disable
MS11EmptyChestRef.Enable
set FailureCleanup to 1
set fQuestDelayTime to 0
endif
endif
end |
|