// TOWN SCRIPT
//    Town 33: Foul Cavern

// This is the special encounter script for this town.
// The states INIT_STATE, EXIT_STATE, and START_STATE have
// meanings that are described in the documenation. States you write
// yourself should be numbered from 10-100.

begintownscript;

variables;

int i,j,k,r1,choice;
int u;

body;

beginstate INIT_STATE;

	set_name(27,"Ghost");

break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
break;

beginstate 10;
	reset_dialog();
		add_dialog_str(0,"You inspect this strange pillar and notice that it has a small button set into the right side.",0);
		add_dialog_str(1,"It is small and stone, so it was very hard to notice it, but your keen adventurer's senses saved the day.",0);
	add_dialog_choice(0,"Leave the button alone.");
	add_dialog_choice(1,"Press it.");
	choice = run_dialog(0);
	if (choice == 2) {
	message_dialog("You hear the sound of stone grinding on stone to the west.","");
	swap_terrain(17,11,0,290);
	}
break;

