Oblivion Game Data

Select game:

Search:

Select a record type:

NDSirBerichSCRIPT (0xKN000d0c)

  • Record Type: SCPT
  • Editor ID: NDSirBerichSCRIPT
  • Form ID: 0xKN000d0c
  • Source File: Knights.esp.mod
  • Patch Status: FormID has not been modified.
Parameter Value
SCTX
scn NDSirBerichSCRIPT

short SpokeToPlayer	; set to 1 when spoke to player
short EventCount		; disable process
float timer

begin OnLoad
	setghost 1
end

; Sir Berich disables himself if he is still around after the other ghosts leave
begin gamemode
	if getDisabled == 1
		return
	endif

	if getstage ND10Fin >= 15 && SpokeToPlayer == 1
		if ( EventCount == 0 )
			set Timer to 5
			set EventCount to 1
		endif

		set Timer to ( Timer - GetSecondsPassed )

		if ( Timer <= 4 )
			if ( EventCount == 1)
				ND10FinSirBerichMarker.pme SHLD
				set EventCount to 2
			elseif ( EventCount == 2)
				set EventCount to 3
			elseif ( EventCount == 3)
				set EventCount to 1
			endif
		endif

		if ( Timer <= 0 )
			disable
		endif
	endif
end

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