Oblivion Game Data

Select game:

Search:

Select a record type:

SE06DarkSeducerSCRIPT (0x00019ad8)

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

short hatePlayer		; set to 1 after player hits them during battle (when allied with other side)
ref combatRef

begin OnHit player
	; when the player hits me, all dark seducers hate the player (if allied to other side)
	if getstage SE06 >= 100 && getstagedone SE06 80 == 1
		player.setfactionrank SE06GoldenSaintFaction 0
		set hatePlayer to 1
	endif
end

begin OnDeath
	; count seducers killed
	set SE06.DeadSeducers to SE06.DeadSeducers + 1
	
	; all dead?
	if SE06.DeadSeducers >= SE06.TotalSeducers && getstage SE06 < 150
		setstage SE06 140
	endif
end

begin OnStartCombat
	; scripted "start combat" voice if fighting golden saints
	set combatRef to GetCombatTarget
	if combatRef.getInFaction SE06GoldenSaintFaction == 1
		if getRandomPercent <= 20
			sayTo combatRef SE06ShoutStartCombat
		endif
	endif
end

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