begintownscript;

variables;
int choice;

body;

beginstate INIT_STATE;
break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
break;

beginstate 10;
	reset_dialog();
	
	if (get_flag(0, 1) )
		add_dialog_str(0, "You have killed the prize.", 0);
	else
		add_dialog_str(0, "You have not killed the prize.", 0);
	
	add_dialog_str(1, "Exit?", 0);
	add_dialog_choice(0, "Yes.");
	add_dialog_choice(1, "No.");
	choice = run_dialog(1);
	
	if (choice == 1)
		end_scenario(2);
	else
		block_entry(1);
break;

beginstate 11;
	if (get_flag(0, 0) != 1) {
		set_flag(0, 0, 1);
		place_monster(14, 8, 250, 1);
		print_str_color("The prize appears.", 4);
	}
break;
