// OUTDOOR SECTION SCRIPT
//    Section: X = 1, Y = 10: The River

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_flag(230,0) == 0) {
	set_flag(230,0,1);
	message_dialog("Having passed the waterfalls, now, you look to the land you're approaching, and you see a perfect spot for the expedition to stop. At least, it looks perfect from a distance: a peninsula just to the southwest.","You have to inspect it up close before you can be sure, though.");
	}
break;

beginstate 11;
if (get_skill_total(16) < 21) {
	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(230,1) == 0) {
	reset_dialog();
	add_dialog_str(0,"You find a patch of Spiritual Herbs! Your knowledge of Nature Lore extends to how to pick them so that they will keep their vital parts that are useful in potions. Do you wish to pick them?",0);
	add_dialog_choice(0,"No. (Leave them alone.)");
	add_dialog_choice(1,"Yes. (Pick them.)");
	if (run_dialog(1) == 2) {
		set_flag(230,1,reward_give(215));
		reward_give(215);
		}
	}
else
	message_dialog("Spiritual Herbs grow back slowly, and these have not yet grown back.","");
break;

beginstate 12;
if (get_skill_total(16) < 21) {
	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(230,2) == 0) {
	reset_dialog();
	add_dialog_str(0,"You find a patch of Energetic Herbs! Your knowledge of Nature Lore extends to how to pick them so that they will keep their vital parts that are useful in potions. Do you wish to pick them?",0);
	add_dialog_choice(0,"No. (Leave them alone.)");
	add_dialog_choice(1,"Yes. (Pick them.)");
	if (run_dialog(1) == 2) {
		set_flag(230,2,reward_give(216));
		reward_give(216);
		}
	}
else
	message_dialog("Energetic Herbs grow back slowly, and these have not yet grown back.","");
break;