Oblivion Game Data

Select game:

Search:

Select a record type:

SE13JyggylagSCRIPT (0x0001564d)

  • Record Type: SCPT
  • Editor ID: SE13JyggylagSCRIPT
  • Form ID: 0x0001564d
  • Source File: Oblivion.esm.mod
  • Patch Status: FormID has not been modified.
Parameter Value
SCTX
scn SE13JyggylagSCRIPT

float fadeTimer			; used to fade him out when he dies
float alpha				; used to fade him out
short	fadeStage		; ditto
float timer				; used for voice

begin OnDeath
	; trigger quest stage when J dies
	setstage SE13 100
	set fadeStage to 1
end

begin OnHit
	if getRandomPercent <= 33 && getav health > 15 && timer <= 0
		set timer to SE13BossMarker.Say SE13JyggalagVoice 1 SEJyggalagVoice 1
	endif
end

begin OnStartCombat player
	set timer to SE13BossMarker.Say SE13JyggalagVoice 1 SEJyggalagVoice 1
end

begin gamemode
	if timer > 0
		set timer to timer - GetSecondsPassed
	endif

	;this chunk fades him out after summon
	if ( fadeStage == 1 )
		Set alpha to 0.9
		Set fadeTimer to 4
		SetActorAlpha alpha
		set fadeStage to 2
	endif

	if ( fadeStage == 2 )
		if ( fadeTimer > 0 )
			Set fadeTimer to ( fadeTimer - GetSecondsPassed )
			Set alpha to ( alpha - .01 )
			SetActorAlpha alpha
		elseif ( fadeTimer <= 0 )
			Set alpha to 0
			Set fadeStage to 3
			Set fadeTimer to 0
			disable
		endif
	endif

end

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