// OUTDOOR SECTION SCRIPT
//    Section: X = 1, Y = 5: Lava Ocean

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) < 19) {
	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(225,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(225,0,reward_give(219));
		reward_give(219);
		reward_give(219);
		}
	}
else
	message_dialog("Mandrake grows back slowly, and this patch has not yet grown back.","");
break;