/////////////////////////////////////////////////////////////////////
// DHEX1.S		-	The Dark Hex entrance
/////////////////////////////////////////////////////////////////////

SETUP

	IF !gt_PLACED_DHEX1
		PlaceC DHEX_EVIL_01 p01
		PlaceC DHEX_EVIL_02 p02
		PlaceC DHEX_EVIL_03 p03
		PlaceC DHEX_EVIL_04 p04
		PlaceC DHEX_EVIL_05 p05
		PlaceC DHEX_EVIL_06 p06
		PlaceC DHEX_EVIL_07 p07
		PlaceC DHEX_EVIL_08 p08
		PlaceC DHEX_EVIL_09 p09
		PlaceC DHEX_EVIL_10 p10
		PlaceC EARTH_MASTER pEARTH
		PlaceC AIR_MASTER pAIR
		PlaceC FIRE_MASTER pFIRE
		PlaceC WATER_MASTER pWATER
		PlaceC SPIRIT_MASTER pSPIRIT

		Add gt_ORDERS
		Add gt_PLACED_DHEX1
	ENDIF

END

VIG TempSetup FALSE

	SetWeather 0 0 0 0 0 0 0 0

	AddBigFire 11778 23027
	AddBigFire  9478 21515
	AddBigFire  9491 16895
	AddBigFire 11770 15375
	AddBigFire 14332 15366
	AddBigFire 16620 16883
	AddBigFire 16634 21502
	AddBigFire 14323 23036
	AddBigFire 14347 17399
	AddBigFire 11766 17390
	AddBigFire 13069 17935


	FX_Torch	12160 18304 1175
	FX_Torch	12160 20096 1175
	FX_Torch	13952 20096 1175
	FX_Torch	13952 18304 1175
	FX_Torch	14464 21632 1175
	FX_Torch	11648 21632 1175
	FX_Torch	11008 15360 1175
	FX_Torch	15104 15360 1175





END

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

VIG Orders gt_ORDERS

	Remove gt_ORDERS

	Wander DHEX_EVIL_01
	Wander DHEX_EVIL_02
	Wander DHEX_EVIL_03
	Wander DHEX_EVIL_04
	Wander DHEX_EVIL_05
	Wander DHEX_EVIL_06
	Wander DHEX_EVIL_07
	Wander DHEX_EVIL_08
	Wander DHEX_EVIL_09
	Wander DHEX_EVIL_10

	SwitchOnSightOfPlayer DHEX_EVIL_01 AttackDemo2
	SwitchOnSightOfPlayer DHEX_EVIL_02 AttackDemo2
	SwitchOnSightOfPlayer DHEX_EVIL_03 AttackDemo2
	SwitchOnSightOfPlayer DHEX_EVIL_04 AttackDemo2
	SwitchOnSightOfPlayer DHEX_EVIL_05 AttackDemo2
	SwitchOnSightOfPlayer DHEX_EVIL_06 AttackDemo2
	SwitchOnSightOfPlayer DHEX_EVIL_07 AttackDemo2
	SwitchOnSightOfPlayer DHEX_EVIL_08 AttackDemo2
	SwitchOnSightOfPlayer DHEX_EVIL_09 AttackDemo2
	SwitchOnSightOfPlayer DHEX_EVIL_10 AttackDemo2

	StaticMeleeAttackBLands EARTH_MASTER
	StaticMeleeAttackBLands AIR_MASTER
	StaticMeleeAttackBLands FIRE_MASTER
	StaticMeleeAttackBLands WATER_MASTER
	StaticMeleeAttackBLands SPIRIT_MASTER

END

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

VIG BastardBastardMcBastard FIVESEC && !gt_DH1

	SWITCH RAND-5
		CASE 0
			GiveSightOfPlayerTo EARTH_MASTER
		CASE 1
			GiveSightOfPlayerTo AIR_MASTER
		CASE 2
			GiveSightOfPlayerTo FIRE_MASTER
		CASE 3
			GiveSightOfPlayerTo WATER_MASTER
		CASE 4
			GiveSightOfPlayerTo SPIRIT_MASTER
	ENDSWITCH

END

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

VIG AllDeadOpenDoors FIVESEC && !gt_DH1 && ISDEAD-EARTH_MASTER && ISDEAD-AIR_MASTER && ISDEAD-FIRE_MASTER && ISDEAD-WATER_MASTER && ISDEAD-SPIRIT_MASTER

	Add gt_DH1

	IDoorClosed		dHEX_1
	SetDoorSpeed	dHEX_1 50
	RDoorOpen		dHEX_1
	IDoorClosed		dHEX_2
	SetDoorSpeed	dHEX_2 50
	RDoorOpen		dHEX_2

END

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