Oblivion Game Data

Select game:

Search:

Select a record type:

SE10DeadSeducerScript (0x0001b03a)

  • Record Type: SCPT
  • Editor ID: SE10DeadSeducerScript
  • Form ID: 0x0001b03a
  • Source File: Oblivion.esm.mod
  • Patch Status: FormID has not been modified.
Parameter Value
SCTX
ScriptName SE10DeadSeducerScript
;
short dead
short pray
short shader


Begin OnActivate

	;keep player from activating when "dead"

	if ( Dead == 1 )
		if ( IsActionRef Player == 1 )
			return
		else
			Activate
		endif
	else
		Activate
	endif

End


Begin GameMode

	;kill ref and start shader effect

	if ( shader == 0 )
		PlayMagicShaderVisuals SE10DeadWarriorShader
		set shader to 1
	endif


	if ( dead == 0 )
		kill
		set dead to 1
	endif

	;resurrect when wellspring is restored (several blocks based on quest stage)
	
	if ( GetStageDone SE10 49 == 1 )
		if ( dead == 1 )
			Resurrect 1
			StopMagicShaderVisuals SE10DeadWarriorShader
			set dead to -1
		endif
	endif

	if ( GetStageDone SE10 50 == 1 )
		if ( dead == 1 )
			Resurrect 1
			StopMagicShaderVisuals SE10DeadWarriorShader
			set dead to -1
		endif
	endif

	if ( GetStageDone SE10 54 == 1 )
		if ( dead == 1 )
			Resurrect 1
			StopMagicShaderVisuals SE10DeadWarriorShader
			set dead to -1
		endif
	endif

	if ( GetStageDone SE10 55 == 1 )
		if ( dead == 1 )
			Resurrect 1
			StopMagicShaderVisuals SE10DeadWarriorShader
			set dead to -1
		endif
	endif

;scripting for idle animations
	if ( GetInCell XPBrellach05 == 1 )
		if ( pray == 0 )
			set pray to 1
		elseif ( Pray == 1 )
			if ( GetCurrentAIPackage == SE10GoldenSaintPray2x12 )
				if ( GetDistance SE10BrellachFountainRef <= 350 )
					pickidle
					set Pray to 2
				endif
			endif
		elseif ( Pray == 2 )
			if ( GetCurrentAIPackage != SE10GoldenSaintPray2x12 )
				set Pray to 1
			elseif ( GetDistance SE10BrellachFountainRef <= 350 )
				set Pray to 1
			endif
		endif
	endif

End

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