beginoutdoorscript;

variables;

body;

beginstate 0; //INIT_STATE
break;

beginstate 1; //EXIT_STATE
break;

beginstate 2; //START_STATE
break;

beginstate 10; //waiting for the boat that doesn't come

	if(get_flag(50,0) == 1)
		end();

	reset_dialog();
	add_dialog_str(0,"From here, you can barely make out the deck of the ship, but you're fairly sure you can see figures moving around. Hopefully, they've seen you.",0);
	add_dialog_str(1,"In most situations like this (that you've heard of) the ship sends out a smaller boat to collect passengers. However, after waiting for the better part of an hour, it seems clear that they aren't sending anything.",0);
	add_dialog_str(2,"It looks like you'll have to swim out to the boat.",0);
	run_dialog(1);
	set_flag(50,0,1);

break;

beginstate 11; //swimming

	if(get_flag(51,0) == 1)
		end();

	reset_dialog();
	add_dialog_str(0,"You can't help but feel a little strange as you swim out into the cove. In all your time adventuring (which admittedly isn't very much), you've never heard of anyone swimming out to meet a strange ship.",0);
	add_dialog_str(1,"Still, it's your best chance to get off this godforsaken rock, so you keep flailing out towards the ship.",0);
	run_dialog(1);
	set_flag(51,0,1);

break;