Oblivion Game Data

Select game:

Search:

Select a record type:

Dark04ExecutionScript (0x0002e5dd)

  • Record Type: SCPT
  • Editor ID: Dark04ExecutionScript
  • Form ID: 0x0002e5dd
  • Source File: Oblivion.noSI.esm.mod
  • Patch Status: FormID has not been modified.
Parameter Value
SCTX
Scriptname Dark04ExecutionScript

short GuardsKilled
short ContractStatus
short DrethAfraid
short GuardWander 
short GuardsAngry
short EnterSewer
short kill1
short kill2
short kill3
short kill4
short kill5
short kill6
short kill7
Float fQuestDelayTime


Begin GameMode

If GetStage Dark04Execution == 10 && EnterSewer == 0 && player.GetInCell Dark04Sewers03 == 1
	SetStage Dark04Execution 20 
	Set EnterSewer to 1
endif

if ContractStatus == 0
	if GetStage Dark04Execution >= 10
		if ValenDrethDark04Ref.getdead == 1
			if GetStage Dark04Execution <= 40
				if GuardsKilled >= 1
					Setstage Dark04Execution 50
					set ContractStatus to 1
				endif
			endif
		endif
	endif
endif

;if GuardsAngry == 0 && GetStage Dark04Execution >= 10
	;Dark04GuardTauntRef.moddisposition player, -100
	;Dark04Guard1.moddisposition player, -100
	;Dark04Guard2.moddisposition player, -100
	Dark04Guard3.moddisposition player, -100
	;Dark04Guard4.moddisposition player, -100
	;Dark04Guard5.moddisposition player, -100
	;CaptainMontrose.moddisposition player, -100
	;Set GuardsAngry to 1
;endif

if Kill1 == 0
	if Dark04GuardTauntRef.GetDistance Player <= 1000 && player.GetInCell Dark04Dungeon01 == 1
		if Dark04GuardTauntRef.GetDetectionLevel Player == 3
			Dark04GuardTauntRef.StartCombat Player
			set Kill1 to 1
		endif
	endif
endif

if Kill2 == 0
	if Dark04Guard1.GetDistance Player <= 1000
		if Dark04Guard1.GetDetectionLevel Player == 3
			Dark04Guard1.StartCombat Player
			set Kill2 to 1
		endif
	endif
endif

if Kill3 == 0
	if Dark04Guard2.GetDistance Player <= 1000
		if Dark04Guard2.GetDetectionLevel Player == 3
			Dark04Guard2.StartCombat Player
			set Kill3 to 1
		endif
	endif
endif

if Kill4 == 0
	if Dark04Guard3.GetDistance Player <= 1000
		if Dark04Guard3.GetDetectionLevel Player == 3
			Dark04Guard3.StartCombat Player
			set Kill4 to 1
		endif
	endif
endif

if Kill5 == 0
	if Dark04Guard4.GetDistance Player <= 1000
		if Dark04Guard4.GetDetectionLevel Player == 3
			Dark04Guard4.StartCombat Player
			set Kill5 to 1
		endif
	endif
endif

if Kill6 == 0
	if Dark04Guard5.GetDistance Player <= 1000
		if Dark04Guard5.GetDetectionLevel Player == 3
			Dark04Guard5.StartCombat Player
			set Kill6 to 1
		endif
	endif
endif

if Kill7 == 0
	if CaptainMontrose.GetDistance Player <= 1000
		if CaptainMontrose.GetDetectionLevel Player == 3
			CaptainMontrose.StartCombat Player
			set Kill7 to 1
		endif
	endif
endif


		
End



Database last updated 11/02/2011
SCPT records last updated 10/31/2011