Oblivion Game Data

Select game:

Search:

Select a record type:

NDAreldurSCRIPT (0xKN000d5a)

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

short JoinedOrder
short	DoOnce


; 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 NDAreldurToPriory
	if GetInFaction NDKnightsoftheNine == 0
		set ND00.KnightCount to ND00.KnightCount + 1
		; turn him into Sir Areldur
		SetActorFullName "Sir Areldur"
		SetFactionRank NDKnightsoftheNine 0
		; no longer essential
		SetEssential NDAreldur 0
		SetNoRumors 1
		; no torch!
		removeItem Torch02 5
		; 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



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