Oblivion Game Data

Select game:

Search:

Select a record type:

SEMuurineScript (0x00019ec9)

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

short PrisonDistance		;flag set when Muurine is in the prison cell for SE05
short doonce
short MoveOnce
Float Timer
short SE05SpellTimer

begin OnDeath
	SETombstoneMuurineREF.enable
end

Begin OnActivate

	if SEHerdirRef.TargetRef == SEMuurineRef
		if IsActionRef Player == 1 
			return
		endif
	else
		Activate
	endif

End

Begin GameMode





	;kill her when she's hit by the spell at the end of SE05

	if ( IsSpellTarget SE05ShockSpell == 1 )
		if ( doonce == 0 )
			kill
			set doonce to 1
		endif
	endif

	;move her into the cage when she's moved to torture chamber

	if ( GetStage SE05 == 130 )
		if ( MoveOnce == 0 )
			if ( GetInCell SENSHouseofDementia == 1 )
				moveto SE05MuurineCageMarker
				SE05ChamberGate.SetOpenState 0
				SE05ChamberGate.lock 100
				set MoveOnce to 1
			endif
		endif
	endif

	If GetIsCurrentPackage SEMuurineCheer20x2 == 1
		If Timer <=0
			Say SERooftopCheer
			Set Timer to 7.1
			If GetDistance SECheerMuurineMarker <= 64
				PickIdle
			EndIf
		EndIf
	Endif

	If GetIsCurrentPackage SEMuurineFightTue20x2 == 1 || GetIsCurrentPackage SEMuurineFightWed20x2 == 1 || GetIsCurrentPackage SEMuurineFightFri20x2 == 1
		If Timer <= 0
			Say Hit
			Set Timer to 7.7
		EndIf
	EndIf

	If Timer > 0
		Set Timer to Timer - GetSecondsPassed
	EndIf
End

Begin OnPackageStart SEMuurineFightTue20x2
	AddItem WeapClub 1
	Set SECrime.RooftopFighting to 1
	If SECaldanaMonriusRef.GetIsCurrentPackage SECaldanaFightTue20x2 == 0
		SECaldanaMonriusRef.AddScriptPackage SECaldanaFightTue20x2								; make sure partner gets up at same time
	EndIf
End

Begin OnPackageChange SEMuurineFightTue20x2
	RemoveItem WeapClub 1
	Set SECrime.RooftopFighting to 0
End

Begin OnPackageStart SEMuurineFightWed20x2
	AddItem WeapClub 1
	Set SECrime.RooftopFighting to 1
	If SEMazaddhaRef.GetIsCurrentPackage SEMazaddaFightWed20x2 == 0
		SEMazaddhaRef.AddScriptPackage SEMazaddaFightWed20x2									; make sure partner gets up at same time
	EndIf
End

Begin OnPackageChange SEMuurineFightWed20x2
	RemoveItem WeapClub 1
	Set SECrime.RooftopFighting to 0
End

Begin OnPackageStart SEMuurineFightFri20x2
	AddItem WeapClub 1
	Set SECrime.RooftopFighting to 1
	If SECutterRef.GetIsCurrentPackage SECutterFightFri20x2 == 0
		SECutterRef.AddScriptPackage SECutterFightFri20x2													; make sure partner gets up at same time
	EndIf
End

Begin OnPackageChange SEMuurineFightFri20x2
	RemoveItem WeapClub 1
	Set SECrime.RooftopFighting to 0
End


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