Oblivion Game Data

Select game:

Search:

Select a record type:

SECaldanaMonriusScript (0x00080d0f)

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

Float Timer

float	PickDrunkIdleTimer		;used to pickIdle so she picks an idle that makes her look drunk

short gotSkooma					;set in SECaldanaMonriusSkoomaYes topic (the player gives her skooma). It's a condtion on goodbye and a skooma "victory dance" package
short gotSkooma2					;set in SECaldanaMonriusSkoomaYes topic , need two variables, one for pick idle and one for goodbye (this one is for the goodbye)

; She is a member of the Duelists society that meets on the Rooftop and stages mock fights
; When her fighting package starts, add a weapon to guarantee she has one. Remove it when she is done.
; Set a variable to say she is fighting, which is used in her idles and packages.


Begin OnActivate

	if SEHerdirRef.TargetRef == SECaldanaMonriusRef
		if IsActionRef Player == 1 
			return
		endif
	else
		Activate
	endif

End


Begin OnPackageStart SECaldanaFightTue20x2
	AddItem WeapIronDagger 1
	Set SECrime.RooftopFighting to 1
	If SEMuurineRef.GetIsCurrentPackage SEMuurineFightTue20x2 == 0
		SEMuurineRef.AddScriptPackage SEMuurineFightTue20x2									; make sure partner gets up at same time
	EndIf
End

Begin OnPackageChange SECaldanaFightTue20x2
	RemoveItem WeapIronDagger 1
	Set SECrime.RooftopFighting to 0
End

Begin OnPackageStart SECaldanaFightAfterSE05Wed20x2
	AddItem WeapIronDagger 1
	Set SECrime.RooftopFighting to 1
	If SECutterRef.GetIsCurrentPackage SECutterFightAfterSE05Wed20x2 == 0
		SECutterRef.AddScriptPackage	SECutterFightAfterSE05Wed20x2									; make sure partner gets up at same time
	EndIf
End

Begin OnPackageChange SECaldanaFightAfterSE05Wed20x2
	RemoveItem WeapIronDagger 1
	Set SECrime.RooftopFighting to 0
End

Begin OnPackageStart SECaldanaFightThu20x2
	AddItem WeapIronDagger 1
	Set SECrime.RooftopFighting to 1
	If SECutterRef.GetIsCurrentPackage SECutterFightThu20x2 == 0
		SECutterRef.AddScriptPackage	SECutterFightThu20x2									; make sure partner gets up at same time
	EndIf
End

Begin OnPackageChange SECaldanaFightThu20x2
	RemoveItem WeapIronDagger 1
	Set SECrime.RooftopFighting to 0
End

Begin OnPackageStart SECaldanaFightAfterSE05Fri20x2
	AddItem WeapIronDagger 1
	Set SECrime.RooftopFighting to 1
	If SEUshnarGroShadborgobRef.GetIsCurrentPackage SEUshnarFightAfterSE05Fri20x2 == 0
		SEUshnarGroShadborgobRef.AddScriptPackage	SEUshnarFightAfterSE05Fri20x2									; make sure partner gets up at same time
	EndIf
End

Begin OnPackageChange SECaldanaFightAfterSE05Fri20x2
	RemoveItem WeapIronDagger 1
	Set SECrime.RooftopFighting to 0
End

Begin OnPackageStart SECaldanaFightSat20x2
	AddItem WeapIronDagger 1
	Set SECrime.RooftopFighting to 1
	If SEMazaddhaRef.GetIsCurrentPackage SEMazaddaFightSat20x2 == 0
		SEMazaddhaRef.AddScriptPackage	SEMazaddaFightSat20x2									; make sure partner gets up at same time
	EndIf
End

Begin OnPackageChange SECaldanaFightSat20x2
	RemoveItem WeapIronDagger 1
	Set SECrime.RooftopFighting to 0
End


Begin GameMode

	if gotSkooma == 1
		pickIdle		;play a little victory cheer idle
		set gotSkooma to 0
	endif

	If GetIsCurrentPackage SECaldanaCheer20x2 == 1
		If Timer <=0
			Say SERooftopCheer										; if she is running the cheer packag, have her say something every once in a while
			Set Timer to 10.2
			If GetDistance SECheerCaldanaMarker <= 64
				PickIdle													; play an idle if she is close to the action
			EndIf
		EndIf
	Endif

	If GetIsCurrentPackage SECaldanaFightTue20x2 == 1 || GetIsCurrentPackage SECaldanaFightThu20x2 == 1 || GetIsCurrentPackage SECaldanaFightSat20x2 == 1
		If Timer <= 0
			Say Hit						; if she if fighting, she grunts every now and then.
			Set Timer to 6.5
		EndIf
	EndIf
	
	If Timer > 0
		Set Timer to Timer - GetSecondsPassed
	EndIf

	;make her look drunk
	if GetDistance SERooftopClub > 768 && GetSitting == 0
		if PickDrunkIdleTimer <= 0
			if isIdlePlaying == 0			
				pickIdle
				set PickDrunkIdleTimer to 8
			endif
		else
			set PickDrunkIdleTimer to PickDrunkIdleTimer  - getSecondsPassed
		endif		

	endif

End

Begin OnDeath
	SETombstoneCaldanaMonriusRef.Enable
End

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