Oblivion Game Data

Select game:

Search:

Select a record type:

SE32Fanatic6Script (0x00052f58)

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

Short SwingWeapon					; Flag to tell the idle manager which idle to play
Short KillHloval						; Set to 1 if attempts to kill Hloval

Begin OnLoad
	SetGhost 1							; No combat allowed
End

Begin GameMode
	If IsWeaponOut == 0
		If GetDead == 0
			SetAlert 1
		EndIf
	EndIf
End

Begin OnActivate 							
	; prevent activation
End

Begin OnPackageChange SE32Travel6
	If SE32.InBailey == 1
		Say SE32FanaticYell															; shout a random combat line
		PickIdle																			; attack anim if SwingWeapon = 1
		Set SwingWeapon to 0														; Disallows swinging weapon idle
		Set SE32.Defender2Dead to 1												; Fanatic has swung
	EndIf
End

Begin OnPackageChange SE32TravelHloval01
	If SE32.InBailey == 1
		SayTo SE32HlovalDrethRef SE32FanaticYell
		Set SwingWeapon to 1
		PickIdle
		SE32HlovalDrethRef.Kill
		Set KillHloval to 1
	EndIf
End

Begin OnPackageChange SE32TravelExit
	If SE32.InBailey == 1
		Set SE32.Fanatic6Dead to 1								; Fanatic has exited room, or died
		MoveTo SE32Fanatic6Away
		Set KillHloval to 0
	EndIf
End

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