/////////////////////////////////////////////////////////////////////
// STEMPLE.S
/////////////////////////////////////////////////////////////////////

SETUP

	IF !gt_PLACED_BISHOP
		Add gt_PLACED_BISHOP

		//old start position in front of steps/lectern
		//PlaceC BISHOP pTEL1

		//new start position on top of steps/in front lectern
		PlaceC BISHOP pBISH_UPPER

		PlaceC		SB_SKEL_1	pSKEL1 mcap
		PlaceC		SB_SKEL_2	pSKEL2 mcap
		PlaceC		SB_SKEL_3	pSKEL3 mcap
		PlaceC		SB_SKEL_4	pSKEL4 mcap
		PlaceC		SB_SKEL_5	pSKEL5 mcap
		PlaceC		SB_SKEL_6	pSKEL6 mcap
		PlaceC		SB_SKEL_7	pSKEL7 mcap

		FreezeC		SB_SKEL_1
		FreezeC		SB_SKEL_2
		FreezeC		SB_SKEL_3
		FreezeC		SB_SKEL_4
		FreezeC		SB_SKEL_5
		FreezeC		SB_SKEL_6
		FreezeC		SB_SKEL_7
	ENDIF

	IF !gg_BEEN_TO_TEMPLE_LOWER
		Add gg_BEEN_TO_TEMPLE_LOWER
		PlayMusic rpg22.wav
	ENDIF

END

VIG TempSetup FALSE

	DisableTeleport SB_BOTTOM_IN

	IF gt_GRAB_TOME
		SwapObj hades_easel easel
	ENDIF
    SetWeather  0 0 0 0 0 0 0 0

	CachePortrait BISHMORT.BIN

END

/////////////////////////////////////////////////////////////////////

VIG SeePlayer TENSEC && !f_BISHOP_DEAD && gt_MORTAN_ATTACKS

	GiveSightOfPlayerTo SB_SKEL_1
	GiveSightOfPlayerTo SB_SKEL_2
	GiveSightOfPlayerTo SB_SKEL_3
	GiveSightOfPlayerTo SB_SKEL_4
	GiveSightOfPlayerTo SB_SKEL_5
	GiveSightOfPlayerTo SB_SKEL_6
	GiveSightOfPlayerTo SB_SKEL_7
	IF DISTFROM-P-BISHOP-13
		GiveSightOfPlayerTo BISHOP
	ENDIF

END

/////////////////////////////////////////////////////////////////////

VIG BishopMortanAttacks ONESEC && !gt_MORTAN_ATTACKS && (DAMAGED-BISHOP || INAREA-P-NEAR_MORTAN || DISTFROM-P-BISHOP-15)

	Add gt_MORTAN_ATTACKS
	Widescreen TRUE
	playmusic rpg32.wav
StartRecord
	//Engage P BISHOP 4000
	//3000
	//2560
	camnlock 90
	campan pTEL1
	UUComplete P

	LookAtTurn	BISHOP		SB_SKEL_1
	UUComplete	BISHOP	
	Capture		BISHOP		cM_CAST_SPELL20_MISC

	Wait 500

	FX_Sprinkle		BISHOP
	FX_GreenFire	SB_SKEL_1
	UnFreezeC		SB_SKEL_1

	Wait 100

	FX_Sprinkle		BISHOP
	FX_GreenFire	SB_SKEL_2
	UnFreezeC		SB_SKEL_2

	Wait 300

	FX_Sprinkle		BISHOP
	FX_GreenFire	SB_SKEL_3
	UnFreezeC		SB_SKEL_3

	Wait 150

	FX_Sprinkle		BISHOP
	FX_GreenFire	SB_SKEL_4
	UnFreezeC		SB_SKEL_4

	Wait 300

	FX_Sprinkle		BISHOP
	FX_GreenFire	SB_SKEL_5
	UnFreezeC		SB_SKEL_5

	Wait 100

	FX_Sprinkle		BISHOP
	FX_GreenFire	SB_SKEL_6
	UnFreezeC		SB_SKEL_6

	Wait 200

	FX_Sprinkle		BISHOP
	FX_GreenFire	SB_SKEL_7
	UnFreezeC		SB_SKEL_7

	GiveSightOfPlayerTo SB_SKEL_1
	GiveSightOfPlayerTo SB_SKEL_2
	GiveSightOfPlayerTo SB_SKEL_3
	GiveSightOfPlayerTo SB_SKEL_4
	GiveSightOfPlayerTo SB_SKEL_5
	GiveSightOfPlayerTo SB_SKEL_6
	GiveSightOfPlayerTo SB_SKEL_7
	GiveSightOfPlayerTo BISHOP

	Engage		SB_SKEL_1	P 1024
	AddControl	SB_SKEL_1	AttackDemo2
	Engage		SB_SKEL_2	P 1024
	AddControl	SB_SKEL_2	AttackDemo2
	Engage		SB_SKEL_3	P 1024
	AddControl	SB_SKEL_3	AttackDemo2
	Engage		SB_SKEL_4	P 1024
	AddControl	SB_SKEL_4	AttackDemo2
	Engage		SB_SKEL_5	P 1024
	AddControl	SB_SKEL_5	AttackDemo2
	Engage		SB_SKEL_6	P 1024
	AddControl	SB_SKEL_6	AttackDemo2
	Engage		SB_SKEL_7	P 1024
	AddControl	SB_SKEL_7	AttackDemo2

	AttackDemo2 BISHOP
	PlayMusic rpg23.wav

	Wait 2500
	campan P
	Widescreen FALSE
StopRecord

END

/////////////////////////////////////////////////////////////////////

VIG GrabTome HALFSEC && !gt_GRAB_TOME && POS-P-hades_tome

	Add gt_GRAB_TOME
	SwapObj hades_easel easel
	DestroyHexCompass pBISH_UPPER

END

/////////////////////////////////////////////////////////////////////

VIG BishopDead FIVESEC && gt_MORTAN_ATTACKS && !f_BISHOP_DEAD && ISDEAD-BISHOP 

	Add f_BISHOP_DEAD
	QLRemove ql014

	//no more ghost
	Add gt_MEET_EL_SHADE

END

/////////////////////////////////////////////////////////////////////

VIG DR_BishopMortan MSG-DR_BISHOP

	IF !gt_DR_BISHOP
		Add gt_DR_BISHOP

		Widescreen TRUE

		//"My spirit has at last given up the aged flesh...the dark veil is lifted...Tome and Staff are now yours."
		Say bm016a

		ResetChoice

		WHILE !MenuExit
			ClearChoices

			//Tome
//			AddChoice 1 txbm01		// OPTION DELETED BECAUSE THE VO IS COMPLETELY WRONG

			//Staff
			AddChoice 2 txbm02

			IF co_THEHEX
				//The Hex
				AddChoice 3 tx0025
			ENDIF

			//Leave
			AddChoice 0 tx0003

			GetChoice BISHOP

			SWITCH Choice
//				CASE 1
//					//Tome
//
//					//"The Tome...led to my corruption...I believed I could control...without a Hex..."
//					Say bm0017
//
//					Add co_THEHEX
				CASE 2
					//Staff

					//"...entrusted to me by Galzarion...can unlock the Hex..."
					Say bm0018

					Add co_THEHEX
				CASE 3
					//The Hex

					//"The greatest Hex is that of Harbinger...east of here..."
					Say bm0019
				CASE 0
					//Leave

					//"...thank you for releasing me. I go to the Well...I did not betray the trust of the Warlocks..."
					Say bm0020
			ENDSWITCH
		ENDWHILE
		AwardEP xp_MORTAN_THANKS

		Widescreen FALSE
	ELSE
		RunS GenericDR
	ENDIF

END

/////////////////////////////////////////////////////////////////////

VIG StartFestival ONESEC && !gt_FESTIVAL_PREP && f_BISHOP_DEAD && POS-P-lore_staff

	Add gt_FESTIVAL_PREP
	Add mj_FOUND_TOME
	AwardEP xp_FOUND_TOME
	SetCharSet	Faith	FS2

END

/////////////////////////////////////////////////////////////////////

VIG TeleportEffect FIVESEC
	FX_WhiteFireGlow pTELE_EFFECT
END

/////////////////////////////////////////////////////////////////////

VIG TeleAppear gg_TELE_INVIS
	Remove gg_TELE_INVIS
	FX_Visible P
END

/////////////////////////////////////////////////////////////////////

VIG Tele4 INAREA-P-Tele4
	FX_Invisible P
	StopC P
	Wait 2000
	PostMsg t_ST_BOTTOM_OUT
	Add gg_TELE_INVIS
END

/////////////////////////////////////////////////////////////////////
