Oblivion Game Data

Select game:

Search:

Select a record type:

DASanguineScript (0x0001c10f)

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

short target
short spellworking
short dinnertime
short nudebomb
short guardmove
short doonce1
short doonce2
short doonce3
short doonce4
short doonce5
short doperframe
short caroVAR
short spelldone
float fQuestDelayTime
short failed
short tryagain

Begin GameMode

if ( GetStage DASanguine >= 20 )
	if ( fQuestDelayTime == 0.0 )
		set fQuestDelayTime to 0.5
	endif
	if ( GetStage DASanguine <= 25 ) && ( GetStage DASanguine >=10 )

		if ( spellworking == 1 )
			player.RemoveAllItems DASanguineChestREF
			SetShowQuestItems 1
			set spellworking to 2
			;set fQuestDelayTime to 0.5
		endif
		;this section is to make sure that the table doesn't block the spell from hitting all the NPCs
		
		if ( nudebomb >=3 ) && ( nudebomb < 5 ) && ( failed == 0 ) && ( tryagain < 5 )
			if ( VlarimilOriusREF.IsSpellTarget DASanguineStark == 0 )
				LeyawiinDiningChairREF1.Cast DASanguineStark VlarimilOriusREF
			endif
			if ( TermanweREF.IsSpellTarget DASanguineStark == 0 )
				TsaviDiningChairRef.Cast DASanguineStark TermanweREF
			endif
			if ( BrittaInvelREF.IsSpellTarget DASanguineStark == 0 )
				HlidaraMothrilDiningChairRef.Cast DASanguineStark BrittaInvelREF
			endif
			if ( JarasInvelREF.IsSpellTarget DASanguineStark == 0 )
				OnstayaSundewDiningChairRef.Cast DASanguineStark JarasInvelREF
			endif
			if ( AlessiaCaroREF.IsSpellTarget DASanguineStark == 0 )
				MariusCaroDiningChairRef.Cast DASanguineStark AlessiaCaroREF
			endif
			set tryagain to ( tryagain + 1 )
		endif
		
		if ( nudebomb >= 1 ) && ( nudebomb < 5 ) && ( GetStage DASanguine < 100 )
			if ( failed == 0 ) && ( player.GetInCell LeyawiinCastleCountyHall == 0 )
				set failed to 1
			endif
			if ( player.GetInCell LeyawiinCastleDungeon == 0 ) && ( failed == 1 )
				SetStage DASanguine 105
				DASanguineChestREF.RemoveAllItems Player
				SetShowQuestItems 0
				SanguineGuardREF.disable
			endif
		endif

		if ( nudebomb >= 5 ) && ( GetStage DASanguine < 30 )
			SetStage DASanguine 30
		endif

		set doperframe to 0

		if ( VlarimilOriusREF.IsSpellTarget DASanguineStark == 1 ) && ( doonce1 == 0 ) && ( doperframe == 0 )
			set nudebomb to ( nudebomb + 1 )
			set doonce1 to 1
			set doperframe to 1
			VlarimilOriusREF.RemoveAllItems
		endif

		if ( TermanweREF.IsSpellTarget DASanguineStark == 1 ) && ( doonce2 == 0 ) && ( doperframe == 0 )
			set nudebomb to ( nudebomb + 1 )
			set doonce2 to 1
			set doperframe to 1
			TermanweREF.RemoveAllItems
		endif

		if ( BrittaInvelREF.IsSpellTarget DASanguineStark == 1 ) && ( doonce3 == 0 ) && ( doperframe == 0 )
			set nudebomb to ( nudebomb + 1 )
			set doonce3 to 1
			set doperframe to 1
			BrittaInvelREF.RemoveAllItems
		endif

		if ( JarasInvelREF.IsSpellTarget DASanguineStark == 1 ) && ( doonce4 == 0 ) && ( doperframe == 0 )
			set nudebomb to ( nudebomb + 1 )
			set doonce4 to 1
			set doperframe to 1
			JarasInvelREF.RemoveAllItems
		endif

		if ( AlessiaCaroREF.IsSpellTarget DASanguineStark == 1 ) && ( doonce5 == 0 ) && ( doperframe == 0 )
			set nudebomb to ( nudebomb + 1 )
			set doonce5 to 1
			set doperframe to 1
			set caroVAR to 1
			AlessiaCaroREF.RemoveAllItems DASanguineChest2
		endif

	endif
endif

if ( GetStage DASanguine >= 30 )
	if ( spelldone == 1 )	
		if ( player.GetInCell Leyawiin == 0 )
			SetShowQuestItems 0
			set spelldone to 2
			set fQuestDelayTime to 0.0
		endif
	endif
	if ( SanguineGuardREF.GetDisabled == 0 )
		if ( player.GetInCell LeyawiinCastle == 0 )
			SanguineGuardREF.Disable
			;set fQuestDelayTime to 0.0
		endif
	endif
		
endif

End

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