Oblivion Game Data

Select game:

Search:

Select a record type:

ErthorScript (0x0014c71d)

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

short test
short packagecomplete

Begin Gamemode

;Erthor talks to Adrienne when he returns and both NPCs are in the cell

if ( GetStage MG01Destruct >= 30 )
	if ( MG01Destruct.erthortalked == 0 )

		if ( Player.GetInCell SkingradMagesGuild == 1 )
			if ( Erthor01.GetinCell SkingradMagesGuild == 1 )
				if ( AdrienneBerene01.GetinCell SkingradMagesGuild == 1 )
					if ( GetIsCurrentPackage ErthorFindAdrienne == 0 )
						if ( test == 0 )
							set test to 1
							Erthor01.EvaluatePackage
						endif
					elseif ( GetIsCurrentPackage MG01ErthorTraveltoSkingrad == 1 )
						if ( test == 0 )
							set test to 1
							Erthor01.EvaluatePackage
						endif
					elseif ( GetIsCurrentPackage MG01ErthorFollowSulinus == 1 )
						if ( test == 0 )
							set test to 1
							Erthor01.EvaluatePackage
						endif
					endif
				endif
			endif
		endif

		if ( Player.GetinCell SkingradMagesGuild == 0 )
			if ( erthor01.GetinCell SkingradMagesGuild == 1 )
				if ( AdrienneBerene01.GetInCell SkingradMagesGuild == 1 )
					set MG01Destruct.erthortalked to 1
				endif
			endif
		endif

	endif

	if ( test < 2 )
		if ( Erthor01.GetDistance AdrienneBerene01 < 300 )
			if ( GetIsCurrentPackage ErthorFindAdrienne == 1 )
				set packagecomplete to 1
				set test to 2
				Erthor01.StartConversation AdrienneBerene01 MG01AdrienneConv
			endif
;contingency for player not being in Skingrad Mages Guild when conversation runs
			
			if ( Player.GetInCell SkingradMagesGuild == 0 )
				set MG01Destruct.erthortalked to 1
			elseif ( Player.GetInCell SkingradMagesGuildBasement == 1 )
				set MG01Destruct.erthortalked to 1
			elseif ( Player.GetInCell	SkingradMagesGuildLivingQuarters == 1 )
				set MG01Destruct.erthortalked to 1
			endif	
		endif
	endif
endif



End


Begin MenuMode

;Further contingency if player is waiting/resting when Erthor finishes his package to find Adrienne
if ( GetStage MG01Destruct >= 30 )
	if ( MG01Destruct.erthortalked == 0 )

		if ( Player.GetInCell SkingradMagesGuild == 1 )
			if ( Erthor01.GetinCell SkingradMagesGuild == 1 )
				if ( AdrienneBerene01.GetinCell SkingradMagesGuild == 1 )
					if ( GetIsCurrentPackage ErthorFindAdrienne == 0 )
						if ( test == 0 )
							set test to 1
							Erthor01.EvaluatePackage
						endif
					elseif ( GetIsCurrentPackage MG01ErthorTraveltoSkingrad == 1 )
						if ( test == 0 )
							set test to 1
							Erthor01.EvaluatePackage
						endif
					elseif ( GetIsCurrentPackage MG01ErthorFollowSulinus == 1 )
						if ( test == 0 )
							set test to 1
							Erthor01.EvaluatePackage
						endif
					endif
				endif
			endif
		endif
	endif
endif

if ( packagecomplete == 0 )
	if ( GetIsCurrentPackage ErthorFindAdrienne == 1 )
		set packagecomplete to 1
	endif
elseif ( packagecomplete == 1 )
	if ( GetIsCurrentPackage ErthorFindAdrienne == 0 )
		set MG01Destruct.erthortalked to 1
		set packagecomplete to -1
	endif
endif

End

Begin OnPackageDone ErthorFindAdrienne

if ( MG01Destruct.Erthortalked == 0 )
	set MG01Destruct.erthortalked to 1
endif

End

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