Select game:
Search:
Select a record type:
|
SE01DoorScript (0x00013587)
- Record Type: SCPT
- Editor ID: SE01DoorScript
- Form ID: 0x00013587
- Source File: Oblivion.esm.mod
- Patch Status: FormID has not been modified.
Parameter |
Value |
SCTX |
scn SE01DoorScript
short doOnce
short doOnce2
short startday
short BelmyneStart
short BelmyneDead
float timer
short gatespeechVAR
short goAway
float timer2
short metroOnce
short weatherOnce
float weathertimer
Begin GameMode
;this times the weather transition
if ( weatheronce == 1 )
set weathertimer to ( weathertimer + GetSecondsPassed )
if ( weathertimer >= 3 )
sw SEClearTrans
set weatheronce to 2
endif
endif
;this section sets a journal to let the player know a door has appeared to the Shivering Isles
if ( GetStageDone MQ01 90 == 1 )
if ( doOnce2 == 0 )
set startday to GameDaysPassed
set doOnce2 to 1
endif
endif
if ( doOnce2 == 1 )
if ( GameDaysPassed >= ( startday + 1 ) )
if ( GetStage SE01Door == 0 )
SetStage SE01Door 10
endif
endif
endif
if ( GetStage SE01Door == 40 )
if ( Player.GetDistance SE01DoorMarkerREF <= 512 )
;SetStage SE01Door 200
endif
endif
; this section handles Belmyne coming out of the door and attacking the guard
if ( BelmyneStart == 1 )
if ( SEBelmyneDrelethREF.GetDisabled == 1 )
SEBelmyneDrelethREF.Enable
set BelmyneStart to 2
endif
endif
;this section handles the gate speech and variables
if ( BelmyneDead == 1 )
set timer to ( timer - getsecondspassed )
if ( timer <= 0 )
if ( gatespeechVAR == 0 )
set timer to DAClavicusDogStatueREF.say SE01GateSpeech 1 SE01GateVoice1 1
set gatespeechVAR to 1
elseif ( gatespeechVAR == 1 )
set timer to DAClavicusDogStatueREF.say SE01GateSpeech 1 SE01GateVoice1 1
set gatespeechVAR to 2
elseif ( gatespeechVAR == 2 )
set timer to DAClavicusDogStatueREF.say SE01GateSpeech 1 SE01GateVoice1 1
set gatespeechVAR to 3
elseif (gatespeechVAR == 3 )
set timer to DAClavicusDogStatueREF.say SE01GateSpeech 1 SE01GateVoice1 1
set gatespeechVAR to 4
set BelmyneDead to 2
endif
endif
endif
;this section handles the Waiting Room disappearing
if ( SEHaskillREF.leavevar == 2 ) && ( goAway == 0 )
;SE01WaitingRoomREF.playgroup forward 1
SE01MetronomeREF.playgroup forward 4
SE01MetronomeSoundREF.Disable
set weatheronce to 1
set goAway to 1
endif
if ( goAway == 1 )
set timer2 to ( timer2 + GetSecondsPassed )
if ( timer2 >= 5 ) && ( metroOnce == 0 )
SE01WaitingRoomREF.playgroup forward 1
set metroOnce to 1
endif
if ( timer2 >= 23 )
EnablePlayerControls
SetStage SE01Door 201
; SetStage SE02 5
set goAway to 3
endif
endif
If GetStage SE01Door == 201 && GetStage SE02 < 5
If Player.GetSitting == 0
SetStage SE02 5
EndIf
EndIf
End |
|