/////////////////////////////////////////////////////////////////////
// EMERALD.S		-	The Emerald Stair, gateway to the dark hex
/////////////////////////////////////////////////////////////////////

SETUP

	IF !gt_PLACED_EMERALD
		PlaceC EMERALD_EVIL_1 p1
		PlaceC EMERALD_EVIL_2 p2
		PlaceC EMERALD_EVIL_3 p3
		PlaceC EMERALD_EVIL_4 p4
		PlaceC EMERALD_EVIL_5 p5
		PlaceC EMERALD_EVIL_6 p6
		PlaceC EMERALD_EVIL_7 p7
		PlaceC EMERALD_EVIL_8 p8

		Add gt_CUE_ORDERS
		Add gt_PLACED_EMERALD

	ENDIF

	IF !gg_EMERALD_MUSIC
		Add gg_EMERALD_MUSIC
		Playmusic rpg26.wav
	ENDIF

END

VIG TempSetup FALSE

	DisableTeleport EM_LI
	Set	gd_WEATHER_TYPE	0
	Set gd_WIND_TYPE	3
    RunS CueWeather

END

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

VIG Orders ONESEC && gt_CUE_ORDERS

	Remove gt_CUE_ORDERS
	
	Wander EMERALD_EVIL_1
	SwitchOnSightOfPlayer EMERALD_EVIL_1 AttackDemo2
	Wander EMERALD_EVIL_2
	SwitchOnSightOfPlayer EMERALD_EVIL_2 AttackDemo2
	Wander EMERALD_EVIL_3
	SwitchOnSightOfPlayer EMERALD_EVIL_3 AttackDemo2
	Wander EMERALD_EVIL_4
	SwitchOnSightOfPlayer EMERALD_EVIL_4 AttackDemo2
	Wander EMERALD_EVIL_5
	SwitchOnSightOfPlayer EMERALD_EVIL_5 AttackDemo2
	Wander EMERALD_EVIL_6
	SwitchOnSightOfPlayer EMERALD_EVIL_6 AttackDemo2
	Wander EMERALD_EVIL_7
	SwitchOnSightOfPlayer EMERALD_EVIL_7 AttackDemo2
	Wander EMERALD_EVIL_8
	SwitchOnSightOfPlayer EMERALD_EVIL_8 AttackDemo2

	RunS QPalFadeRPG

END

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