Oblivion Game Data

Select game:

Search:

Select a record type:

SE10DSMaleWarrior1Script (0x00055504)

  • Record Type: SCPT
  • Editor ID: SE10DSMaleWarrior1Script
  • Form ID: 0x00055504
  • Source File: Oblivion.esm.mod
  • Patch Status: FormID has not been modified.
Parameter Value
SCTX
ScriptName SE10DSMaleWarrior1Script
;
short DoOnce			;flag set for forcegreet
short Follow				;flag set for follow behavior package

Begin GameMode

	;enable when player passes through trigger zone
	;based on SE10.Reinforce var, which increments when followers die before this point

	if ( GetStage SE10 < 30 )

	if ( GetDisabled == 1 )
		if ( SE10PRTriggerRef.triggered == 1 )
			if ( SE10.Reinforce >= 1 )
				Enable

				;enable the other male warriors if the player needs more reinforcements
				if SE10SeducerMaleRef2.getDisabled == 1
					if SE10.Reinforce >= 2
						SE10SeducerMaleRef2.enable
						SE10SeducerMaleRef2.evp
					endif
				endif
				if SE10SeducerMaleRef3.getDisabled == 1
					if SE10.Reinforce >= 3
						SE10SeducerMaleRef3.enable
						SE10SeducerMaleRef3.evp
						if SE10SeducerMaleRef4.getDisabled == 1
							SE10SeducerMaleRef4.enable
							SE10SeducerMaleRef4.evp
						endif
					endif

				endif

				set doonce to 1

			endif
		endif
	endif
	
	endif

	;start conversation with the player when he gets close

	if ( doonce == 1 )
		if ( GetDistance Player < 400 )
			if ( GetCurrentAIPackage != 5 )
				StartConversation Player
				set doonce to 2
				EvaluatePackage
			endif
		endif
	endif

	


End


Begin OnActivate

	;keep player from activating him when "dead" during later stages of quest

	if ( SE10.killtime >= 1 )
		if ( GetStage SE10 >= 30 )
			if ( GetStage SE10 < 50 )
				if ( IsActionRef Player == 1 )
					return
				else
					Activate
				endif
			else
				Activate
			endif
		else
			Activate
		endif
	else
		Activate
	endif

End


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