beginoutdoorscript;

variables;

int choice;

body;

beginstate INIT_STATE;
        // This state called whenever this section is loaded into memory.
break;

beginstate START_STATE;

break;

beginstate 10;
        //print_str_color("You think the portion of the river just to the north is shallow enough to be waded through.",0);
        print_str_color("You think you can wade through the water to the north.",0);
break;

beginstate 11;
        //print_str_color("You think the portion of the river just to the north is shallow enough to be waded through.",0);
        print_str_color("You think you can wade through the water to the south.",0);
break;

beginstate 12;
        if (get_flag(0,12) == 0) {
                reset_dialog();
                add_dialog_str(0,"You find a large pillar in the middle of the grasslands, which is covered with ornate writing, which you don't recognize at all. Some civilization must have created it, but you have no idea which.",0);
                add_dialog_str(1,"Near the base of the pillar is a large patch of herbs, some of which looks like it would be useful in alchemy.",0);
                add_dialog_choice(0,"Take.");
                add_dialog_choice(1,"Leave.");
                choice = run_dialog(0);
                        if (choice == 1) {
                                set_flag(0,12,2);
                                reward_give(216);
                                end();
                         }
                        if (choice == 2)
                                end();
        }
        if (get_flag(0,12) == 1) {
                reset_dialog();
                add_dialog_str(0,"You find a large pillar in the middle of the grasslands, which is covered with ornate writing, which you don't recognize at all. Some civilization must have created it, but you have no idea which.",0);
                add_dialog_str(1,"There is a large patch of herbs at the pillar's base, but none of them is the right age for use in alchemy.",0);
                run_dialog(0);
        }
        if (get_flag(0,12) == 2) {
                set_flag(0,12,1);
        }
break;

beginstate 13;
        if (get_flag(2,4) == 0) {
                reset_dialog();
                add_dialog_str(0,"This used to be a fairly well-off town. From what you can tell, somebody shot multiple heavy blasts of ice into it, which destroyed most of it. A thorough investigation of the rubble reveals that some of the blasts were launched from the air.",0);
                add_dialog_str(1,"You also determine that troglodytes lived in the town before it was destroyed. Everything they had was either destroyed or looted in the attack, and you don't find anything of value. There is no evidence of who was responsible for the destruction.",0);
                run_dialog(1);
                set_flag(2,4,1);
        }
break;