Oblivion Game Data

Select game:

Search:

Select a record type:

AltarofZenithar (0x00066cdf)

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

short doonce
short DayofLastUse
ref target

Begin OnActivate

if IsActionRef player == 1

	If Player.GetCrimeGold > 0 || GetPCInfamy > GetPCFame
		MessageBox "Zenithar hates the thief and lawbreaker!"
	elseif FameZenithar == 0
		MessageBox "Make a pilgrimage to a Wayshrine of Zenithar, and henceforth receive a blessing at Zenithar's holy altars."
	elseif FameZenithar > 0
		if GetDayofWeek == DayofLastUse
			MessageBox "You've already been blessed this day."
		else
			MessageBox "You work for the glory of Zenithar!"
			Cast AltarZenithar Player
			Set DayofLastUse to GetDayofWeek
		endif
	endif

else
	
	set target to GetActionRef
	Cast AltarAkatosh target

endif

end

begin gamemode

if doonce == 0											;days are numbered 0-6 - prevents first visit on 0 day and being told you've used it today
	set DayofLastUse to 10
	set doonce to 1
endif

end

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