// OUTDOOR SECTION SCRIPT
//    Section: X = 0, Y = 0: Near Vasskolis

beginoutdoorscript;

variables;

int choice,i,j,k;
string dlgstr;

body;

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

beginstate START_STATE;
// Starting state of the section, called every turn the party 
// stands inside this section until you change the state.
break;

beginstate 10;
if (get_skill_total(18) < 23) {
	message_dialog("You find some strange-looking plants. Unfortunately, you don't know enough about Nature Lore to know what they are or how they might be used.","");
	end();
	}
	
if (get_flag(211,0) == 0) {
	reset_dialog();
	add_dialog_str(0,"You find a patch of Mandrake! Your knowledge of Nature Lore extends to how to pick it so that it will keep its vital parts that are useful in potions. Do you wish to pick it?",0);
	add_dialog_choice(0,"No. (Leave it alone.)");
	add_dialog_choice(1,"Yes. (Pick it.)");
	if (run_dialog(1) == 2) {
		set_flag(211,0,reward_give(219));
		reward_give(219);
		}
	}
else
	message_dialog("Mandrake grows back slowly, and this patch has not yet grown back.","");
break;

beginstate 11;
if (get_flag(211,1) == 0) {
	message_dialog("Here, in this fertile corner of the cave, a wide variety of strange mushrooms grow. Some of them look as though they have been picked recently, although you can't immediately tell what any of them are good for.","Strange. It may be that the homeland has some useful fungi that are not found in Avernum, and you would have no way of knowing how any of them are useful. You can do nothing here.");
	set_flag(211,1,1);
	}
else
	message_dialog("You find the strange mushrooms again. You still have nothing that you can do with them.","");
break;

beginstate 12;
if (get_flag(211,2) == 0) {
	message_dialog("In this lightly forested area, you find the bones of a few animals that died some time ago. You can't see any animals nearby, but this find suggests that some do live here.","This may be what the residents of the nearby city feed on.");
	set_flag(211,2,1);
	}
break;

beginstate 13;
	message_dialog("There is a very small mine here. You look around a little, but other than some rocks, you find nothing.","");
break;