// TOWN SCRIPT
//    Town 45: Fort Emerald


begintownscript;

variables;

int i,j,k,r1,choice;


body;

beginstate INIT_STATE;
	
	set_name(6,"Silverio");
	set_name(7,"Hodgson");
	set_name(8,"Matthias");
	set_name(9,"Liaison Randall");
	set_name(10,"Captain Scarlet");
	set_name(11,"Moe");
	set_name(12,"Slith Prisoner");
	set_name(13,"Eleanor");

break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
break;

beginstate 10;
	if (get_terrain(26,37) == 28) {
		flip_terrain(26,37);
	message_dialog("When the guards see that you're human, they open the portcullis to let you through.","");
		}
break;

beginstate 11; 
	if (get_terrain(26,8) == 28) {
		flip_terrain(26,8);
	message_dialog("When the guards see that you're human, they open the portcullis to let you through.","");
		}
break;


//There is a pedestal in the center of this small room, surrounded by kneeling mats for meditation. Mounted on the pedestal is the largest emerald you've ever seen. It glows from within with a strange light.
//As you meditate, the glow of the emerald has a strange energizing effect on you. Your spell points are restored! You stand up, alert and refreshed.
