Oblivion Game Data

Select game:

Search:

Select a record type:

AncontarScript (0x00030018)

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

; QUESTS:
; MS47

float timer
short count

begin OnDeath
	if getstagedone ms47 42 == 0
		additem MS47ReverseInvisibilityScroll 1
	elseif player.getitemcount MS47ReverseInvisibilityScroll == 0 && getstage MS47 < 50
		setstage MS47 70
	endif
end

begin gamemode

	if timer > 0
		set timer to timer - getsecondspassed
	else
		if getstage ms47 == 20 && count < 3
			if count < 2 && getdistance player < 1000
;				message "DEBUG: MS47 Ancotar speaking, count=%.0f", count
				set timer to sayto player GREETING
				set timer to timer + 20		; 20 seconds between his speaking
				set count to count + 1
			endif				
			if count == 2
				evaluatepackage
			endif
		endif
	endif
end

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