begintownscript;

variables;
short choice;

body;

beginstate 0; //INIT_STATE
	//intro dialog
	if(get_flag(5,0) == 0) {
	
		//let the party see the lab is intact
		force_instant_terrain_redraw();
		pause(15);
		
		reset_dialog();
		add_dialog_str(0,"Well, the lab is still standing. There are no signs of damage, and you're pretty certain that all of existence has not yet ended.",0);
		add_dialog_str(1,"You're also not getting the same foreboding feeling you had before when you first approached the building.",0);
		run_dialog(1);
		
		set_flag(5,0,1);
		}
	
	//regular setup
	set_crime_tolerance(1);
		
break;

beginstate 1; //EXIT_STATE
break;

beginstate 2; //START_STATE
	//Checking for the lead pc each turn... not necessary here
	//pc_counter = 0;
	//while(char_ok(pc_counter) == 0) {
	//	pc_counter = pc_counter + 1;
	//	}
	//lead_char = pc_counter;
break;

beginstate 10; //approach the door
	if(get_flag(5,1) == 1)
		end();
	
	reset_dialog();
	add_dialog_str(0,"Hm, this door is different from when you first saw it. It looks a lot sturdier, and the locks look very complex. There's also a sign on it.",0);
	add_dialog_str(1,"_Please leave approved deliveries by the door. Visitors are forbidden without Travel Requisition Form 63-A-E3. Researchers may identify themselves according to standard protocol._",20);
	add_dialog_str(2,"---Martha Ollingham, Director of Theoretical Magic",20);
	run_dialog(1);
	
	pause(3);
	reset_dialog();
	message_dialog("Well, this is different. Sadly, it looks like you won't be able to get inside to investigate things further.","");
	
	set_flag(5,1,1);
break;