begintownscript;

variables;

int i,j,k,r1,choice;

body;

beginstate INIT_STATE;
        //code called when entering cave
break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
        //code called every turn
break;

beginstate 10;
        move_to_new_town(3,8,36);
break;

beginstate 12;
        change_outdoor_location(2,0,4,42);
        set_flag(0,11,1);
        //space near eyebeast aerie
break;

beginstate 13;
        change_outdoor_location(2,1,15,23);
        //outdoor section south of eyebeast aerie
        set_flag(0,11,0);
break;

beginstate 14;
        if (get_flag(0,11) == 0) {
                reset_dialog();
                add_dialog_str(0,"As you walk down this passage, you suddenly run into a magic barrier. After investigating it briefly, you decide that you have no way of bringing it down from here.",0);
                run_dialog(1);
                block_entry(1);
        }
break;