Oblivion Game Data

Select game:

Search:

Select a record type:

SEJayredIceVeinsScript (0x00012069)

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

;most of this script is for use with SE02

short idleFlag					;used in idle manager conditions
float sayLength				;used to store duration of say command and checked in if loop so that they don't overlap
short consultSam				;0 = not set; 1 = consult, 2 = consulted ---  Sam is his imaginary friend, this flag is set in dialog topic which has a goodbye, and then he "consults" with his imaginary friend

;Condition variables for SE02 packages
short LeadToGardens
short EscortedPlayerToGardens
short FindBones
short congratulatePlayer
short ArrowMakingStartDay	
short ArrowMakingFinishHour
short FollowWaitToggle 		;0 = unset, 1 = follow, 2 = wait


Begin GameMode

	;if he is following the player, make him assume sneak mode with the player
	if GetIsCurrentPackage SE02JayredFollowPlayer == 1 || GetIsCurrentPackage SE02JayredFightGatekeeper == 1
		if IsInCombat == 0
			if Player.IsSneaking == 1
				setForceSneak 1
			else
				setForceSneak 0
			endif
		else
			setForceSneak 0

		endif

	elseif getForceSneak == 1
		setForceSneak 0
	
	endif

	if leadToGardens == 1
		if EscortedPlayerToGardens == 0
			if GetInCell XPGardens == 1
				set EscortedPlayerToGardens to 1
				set LeadToGardens to 0
				set FindBones to 1
				EVP
			endif
		endif
	endif


	;Jayred says something about the the gate to the Garden courtyard being locked
	if getStage SE02 == 60
		if SE02GardenCourtyardGateRef.getLocked == 1
			if getDistance SE02GardenCourtyardGateRef < 512
				if sayLength <= 0
					set sayLength to sayTo player SE02JayredSayUnlockGate 1
					set sayLength to sayLength + 5 		;pad some pause between repeated says
				else
					set sayLength to sayLength - getSecondsPassed
				endif
			endif
		endif	
	endif




End			;GameMode



Begin OnPackageDone SE02JayredFindBones
	say SE02JayredSayFoundBones
	setstage SE02 70
	set FindBones to 0
End 		;OnPackageDone

Begin OnPackageStart SE02JayredFollowPlayer
	SetFactionRank SE02LikeThePlayerFaction 0	;put him in a faction that likes the player so he will fight the Gatekeeper with the Player
End					;OnPackageStart SE02JayredFollowPlayer

Begin OnPackageChange SE02JayredFollowPlayer
	SetFactionRank SE02LikeThePlayerFaction -1	;take him out of the like the player faction
End					;OnPackageChange SE02JayredFollowPlayer

Begin OnPackageStart SE02JayredFightGatekeeper
	SetFactionRank SE02LikeThePlayerFaction 0	;put him in a faction that likes the player so he will fight the Gatekeeper with the Player
End					;OnPackageStart SE02JayredFollowPlayer

Begin OnPackageChange SE02JayredFightGatekeeper
	SetFactionRank SE02LikeThePlayerFaction -1	;take him out of the like the player faction
End	

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