Oblivion Game Data

Select game:

Search:

Select a record type:

NDBrellinSCRIPT (0xKN000d36)

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

short JoinedOrder			; set to 1 after joins order
short SpokeToPlayer		; set to 1 after asking to join order
short	DoOnce
short Pray

float PrayerTimer

; clear follower variables if I'm the follower when I die
begin OnDeath
	if GetSelf == ND00.FollowerRef
		set ND00.FollowerRef to 0
		set ND00.Following to 0
		set ND00.FollowerClear to 1
	endif		

	if getstage ND10 >= 20 && getstage ND10 < 50
		set ND10.KnightsDead to ND10.KnightsDead + 1
		if ( ND00.KnightCount - ND10.KnightsDead ) <= 3
			set ND10.KnightFollow to 1
		endif	
	endif

end


begin OnPackageEnd NDBrellinToPriory
	if GetInFaction NDKnightsoftheNine == 0
		set ND00.KnightCount to ND00.KnightCount + 1
		SetActorFullName "Sir Brellin"
		; no longer essential
		SetEssential NDBrellin 0
		SetFactionRank NDKnightsoftheNine 0
		; knight equipment
		additem NDKnightsCuirass 1
		additem NDKnightsShield 1
		additem ChainmailBoots 1
		additem ChainmailGauntlets 1
		additem ChainmailGreaves 1
		additem ChainmailHelmet 1
		additem LL0NPCWeaponLongswordLvl100 1
		additem LL0NPCWeaponBowLvl100 1
		additem Arrow3Silver 5
		equipitem NDKnightsCuirass
		equipitem NDKnightsShield 
		equipitem ChainmailBoots 
		equipitem ChainmailGauntlets 
		equipitem ChainmailGreaves 
		equipitem ChainmailHelmet 
	endif
end

BEGIN OnActivate

	if ( ND10.TimeStopped == 1 ) && ( Player.GetInCell NDGarlasMalatar02a == 1 )
		message "The time stop effect prevents you from interacting with the Knights."
	else
			activate
	endif

END

begin OnStartCombat player
	return
end

begin OnStartCombat
	Say NDKnightsStartCombat
end

Begin GameMode

	if ( GetIsCurrentPackage NDAvitaPray9x3 == 1  )
		if ( GetDistance NDPrioryChapelPrayerMarker1 < 50 )
			if ( Pray == 0 )
				Set Pray to 1
				SetAlert 1
				set PrayerTimer to 0.5

			elseif ( Pray == 1 )
				if ( PrayerTimer <= 0 )
					Look NDPrioryChapelAltar
					PickIdle
					Set Pray to 2
				else
					set PrayerTimer to ( PrayerTimer - GetSecondsPassed )
				endif
			endif
		elseif ( Pray == 1 )
			SetAlert 0
			set Pray to 0
		endif
	endif

End


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