/////////////////////////////////////////////////////////////////////
// DOORS.S
/////////////////////////////////////////////////////////////////////

VIG SetUpDoors-Intro FALSE

	//////////////////////////////////////////////////////////
	// Set up doors and keys
	//////////////////////////////////////////////////////////

	// use > AddDoorKey <door> <objectid>

	AddDoorKey	dallis			allis_key
	AddDoorKey	guild_door		ashs_key
	AddDoorKey	guildtemp_2		crux_key

	AddDoorKey	dinf			asm_key
	
	//AddDoorKey	dalv			alvaris_key - not present, RTR used instead

	AddDoorKey	dmels_key		fay_key
	AddDoorKey	djake_cellar	jakes_key
	AddDoorKey	dpos			shadows_key
	AddDoorKey	dcart			mines_key


	// New Keys [23/11/99]
	AddDoorKey	nf_tdoor		tower_key
	AddDoorKey	ttop_7			ravcar_key
	AddDoorKey	voc!_bar		voc_key


	//////////////////////////////////////////////////////////
	// Set all stage 1 initial door states
	//////////////////////////////////////////////////////////

	SetDoorSpeedAll 300
	SetDoorSpeed guild_door 30

	// *** eriv	*** 
	IDoorOpen	dallis
	IDoorLocked	dhammer
    IDoorLocked deriv_southsq
    IDoorOpen   deriv_faith

	// *** faith *** 
	IDoorLocked	delric1
	IDoorLocked	delric2
	IDoorLocked	dalph
	IDoorLocked	dbart
	IDoorLocked	dmoor
	IDoorOpen	dfaith_nforest

	// *** faith1 *** 
	IDoorLocked	dbart_sewer2
	IDoorLocked	dbart_sewer1
	IDoorLocked	dbart_cellar

	// *** market ***
	IDoorOpen	dinn
	IDoorLocked	dinn2
	IDoorLocked	dmarket_emoors

	// *** market1 ***
//	IDoorLocked	dinn_cellar	// don't lock this
	IDoorLocked	dinn_sewer

	// *** southsq ***
	IDoorLocked	dchant
	IDoorLocked	dmel_cellar
	IDoorLocked	dmel_sewer
	IDoorLocked	dmel

	// *** nforest ***
	IDoorOpen	dandrus
	IDoorOpen	dshack
	IDoorLocked nf_tdoor
	
	// *** msewer ***
	IDoorLocked	dsewer
	IDoorLocked	barts_room
	IDoorLocked pointless
	IDoorLocked dbart2
	IDoorLocked dbart1_sewer


	// *** emoors ***
	IDoorLocked	dfarm_1
	IDoorLocked	dfarm_2
	IDoorLocked	dfarm_3
	IDoorLocked	dbarn_1
	IDoorLocked	dbarn_2
	IDoorLocked	dobelisk

	// *** jake ***
	IDoorLocked	djake
	IDoorOpen	djake1
	IDoorOpen	djake2
	IDoorOpen	djake3
	IDoorOpen	djake4
	IDoorOpen	djake5
	IDoorOpen	djake6
	IDoorOpen	djake7
	IDoorOpen	djake8
	IDoorLocked	djake_cellar

	// *** obelisk ***
	// NO DOORS

	// *** diamond ***
	IDoorLocked	dcart
	IDoorLocked	didol

	// *** voc1 ***
	IDoorLocked	voc!_bar
	IDoorLocked	voc1_rav
	IDoorLocked	voc1_jake

	// *** rockpass ***
	IDoorLocked	hrpass_1
	IDoorLocked	hrpass_2

	// *** ravcar ***
	IDoorLocked	rav_hrpass
	IDoorLocked	dpos

	// *** ravint1 ***
	IDoorClosed	rav_room1
	IDoorClosed	drav_manor

	// *** tert1 ***
	// NO DOORS

	// *** misc1 *** (POS)
	// NO DOORS

	// *** stemptop ***
	//IDoorLocked ttop_hidden
	IDoorClosed ttop_1
	IDoorClosed ttop_2
	IDoorClosed ttop_3
	IDoorClosed ttop_4
	IDoorClosed ttop_5
	IDoorClosed ttop_6
	IDoorLocked ttop_7

	// *** stemple ***
	// NO DOORS

	// *** revcamp ***
	// NO DOORS

	// *** barrowex ***
	// NO DOORS

	// *** barrowin ***
	// PILLARS - OTHERWISE NO DOORS

	//////////////////////////////////////////////////////////
	// Set all stage 2 initial door states
	//////////////////////////////////////////////////////////

	// *** constep ***

	// *** monex ***
	// NO DOORS

	// *** efens ***
	// NO DOORS

	// *** shadow ***
	IDoorClosed dmoon
	IDoorClosed darad
//	IDoorClosed djail_cellar	// this cellar is useless and misleading
	IDoorLocked djail_cellar
	IDoorClosed dash_guard
	IDoorClosed djail_exit
 
	// *** shadow1 ***
	IDoorClosed dcurt
	IDoorClosed dcand
	IDoorClosed dpowder

	// *** manorext ***
	IDoorClosed dlord_fr
	IDoorLocked dlord

	// *** manorint ***
	IDoorClosed dlib1
	IDoorClosed dbed_2
	IDoorClosed secdoor_1
	IDoorClosed dlib_2
	IDoorClosed dmeeting
	IDoorClosed dstore
	IDoorClosed dstore_1
	IDoorClosed dkitch_1
	IDoorClosed kitch_2
	
	// *** ash ***
	IDoorClosed dash_1
	IDoorClosed dash_2
	IDoorClosed dash_bed
	IDoorLocked dguild-temple
	IDoorLocked dnouse_51

	// *** guild ***
	IDoorClosed guildtemp_1
	IDoorLocked guildtemp_2
	IDoorLocked guild_door
	IDoorClosed guildtemp_3
	IDoorClosed guildtemp_4

	// *** moon ***
	//done on-map IDoorClosed dwhite_moon
	IDoorClosed dmoon
	IDoorClosed dchap
	IDoorClosed dchap_top
	IDoorLocked dchap_back
	IDoorClosed dchap_botR
	IDoorClosed dchap_botL
	IDoorClosed dgarden_MidR
	IDoorClosed dgarden_botR
	IDoorClosed dgarden_botL
	IDoorClosed dgarden_topL
	IDoorClosed dgarden_topR
	IDoorClosed dgarden_MidL
	IDoorClosed dmoonL_1
	IDoorClosed dmoonL_2
	IDoorClosed dmoonL_3
	IDoorClosed dmoonL_4
	IDoorClosed dmoonL_5
	IDoorClosed dmoonL_6
	IDoorClosed dmoonR_1
	IDoorClosed dmoonR_2
	IDoorClosed dmoonR_3

	// *** talen ***
	IDoorLocked dtalenin

	// *** shadpass ***
	//all done on-map
	//IDoorClosed dspass_1
	//IDoorClosed dspass_2
	//IDoorClosed dspass_3

	// *** blands ***
	IDoorLocked dblood

	// *** blood ***
	IDoorOpen cof_1
	IDoorOpen cof_2
	IDoorOpen cof_3

	// *** shdock ***
	IDoorOpen dhut

	// *** rainbow ***
	// NO DOORS

	// *** altomb4 ***
	// NO DOORS

	//////////////////////////////////////////////////////////
	// Set all stage 3 initial door states
	//////////////////////////////////////////////////////////

	// *** thard ***
	IDoorOpen dthard
	IDoorLocked dtpal_thard
	IDoorLocked dthard_door2
	IDoorClosed dthard_door

	// *** tpalace ***
	IDoorOpen dtpal_mid
	IDoorOpen dtpal_1
	IDoorOpen dtpal_2
	IDoorOpen dtpal_3
	IDoorOpen dtpal_4

	// *** dune ***
	// NO DOORS

	// *** well ***
	// NO DOORS

	//////////////////////////////////////////////////////////
	// Set all stage 4 initial door states
	//////////////////////////////////////////////////////////

	// *** mires2 ***
	// NO DOORS

	// *** gthor ***
	// NO DOORS

	// *** lilith ***
	// NO DOORS

	// *** emerald ***
	// NO DOORS

	// *** dhex1 ***
	IDoorLocked dhex_1
	IDoorLocked dhex_2

	// *** dhex2 ***
	// NO DOORS

	// *** wsoul ***
	IDoorLocked dWELL

	// *** wsoul1 ***
	IDoorLocked dWELL_1
	IDoorLocked dWELL_2
	IDoorLocked dWELL_3
	IDoorLocked dWELL_4
	

	//////////////////////////////////////////////////////////
	// Set all stage HADES initial door states
	//////////////////////////////////////////////////////////

	// *** chaos ***
	IDoorLocked dmels_key

	// *** hadesrim *** [was rim_1]
	IDoorClosed lost_door

	// *** mines ***
	IDoorLocked dinf
END

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

VIG SetUpDoors-MetAndrus FALSE

	// Open Madrigal shops and town gates
	/////////////////////////////////////

	// *** eriv	*** 
	IDoorOpen	dhammer
    IDoorOpen	deriv_southsq

	// *** faith *** 
	IDoorOpen	delric1
	IDoorClosed	delric2
	IDoorOpen	dalph
	IDoorOpen	dbart
	IDoorOpen	dmoor

	// *** market ***
	IDoorOpen	dinn
	IDoorOpen	dinn2
	IDoorOpen	dmarket_emoors

	// *** southsq ***
	IDoorOpen	dchant
	IDoorOpen	dmel

	// *** nforest ***
	IDoorOpen	dandrus

	// *** jake ***
	IDoorOpen	voc1_jake
	
END

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

VIG SetUpDoors-AwardedHexCompass FALSE

	// Open Access to Ravenscar

	// *** High rock pass ***
	//done in rockpass.s
	//IDoorOpen	hrpass1
	//IDoorOpen	hrpass2

	// *** voc1 ***
	IDoorOpen	voc1_rav

	// *** ravcar ***
	IDoorOpen	rav_hrpass

END

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